diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-22 08:07:05 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-22 08:07:05 +0100 |
commit | d22670542b1dd0b2fd1b60368215e982e244183e (patch) | |
tree | 88d43d52573d99945bdf6bb4930568ecc1e05fee /app | |
parent | c66bdfc2ce7880d9bc1a8d8ae426f294bfbc800d (diff) | |
download | govuk-mini-environment-admin-d22670542b1dd0b2fd1b60368215e982e244183e.tar govuk-mini-environment-admin-d22670542b1dd0b2fd1b60368215e982e244183e.tar.gz |
Remove the button from the mini environment index page
Instead make the entire panel a link.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/mini_environments/index.html.erb | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/app/views/mini_environments/index.html.erb b/app/views/mini_environments/index.html.erb index afbeebe..1be938e 100644 --- a/app/views/mini_environments/index.html.erb +++ b/app/views/mini_environments/index.html.erb @@ -34,35 +34,33 @@ License along with the GOV.UK Mini Environment Admin. If not, see <% MiniEnvironment.all.each do |mini_environment| %> <% status = mini_environment.status %> - <div class="panel panel-default"> - <div class="panel-heading"> - <div class="row"> - <div class="col-md-8"> - <h2><%= mini_environment.name %></h2> - </div> - <div class="col-md-2"> - <% if status[:running] %> - <div class="alert alert-success text-center" - role="alert" - style="margin-bottom: 0px;"> - Mini environment running - </div> - <% else %> - <div class="alert alert-warning text-center" - role="alert" - style="margin-bottom: 0px;"> - Mini environment down - </div> - <% end %> - </div> - <div class="col-md-2"> - <a class="btn btn-lg btn-primary pull-right" role="button" href="<%= mini_environment_path mini_environment %>"> - Show details - </a> + <a href="<%= mini_environment_path mini_environment %>"> + <div class="panel panel-default"> + <div class="panel-heading"> + + <div class="row"> + <div class="col-md-10"> + <h2><%= mini_environment.name %></h2> + </div> + <div class="col-md-2"> + <% if status[:running] %> + <div class="alert alert-success text-center" + role="alert" + style="margin-bottom: 0px;"> + Mini environment running + </div> + <% else %> + <div class="alert alert-warning text-center" + role="alert" + style="margin-bottom: 0px;"> + Mini environment down + </div> + <% end %> + </div> </div> </div> </div> - </div> + </a> <% end %> <h1>Other mini environments</h1> |