aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/mini_environments/index.html.erb50
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>