aboutsummaryrefslogtreecommitdiff
path: root/app/views/govuk_guix/revisions/show.html.erb
blob: a25cd3125d1a7d17aa21fb680277945cfcbc3f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<a href="<%= setup_path %>" class="btn btn-lg btn-primary pull-right">
  Back to Setup
</a>


<h1>Revision: <%= @revision.commit_hash %></h1>

<div class="row">
  <div class="col-md-8">
    <h2>Store path</h2>
    <pre><%= @revision.store_path %></pre>
  </div>
</div>

<% if @revision.mini_environments.any? %>
  <h2>There <%= @revision.mini_environments.count == 1 ? 'is' : 'are' %> <%= pluralize(@revision.mini_environments.count, 'mini environment') %> using this revision</h2>

  <div class="row">
    <div class="col-md-8">
      <div class="list-group">
        <% @revision.mini_environments.each do |mini_environment| %>
          <a href="<%= mini_environment_path(mini_environment) %>"
             class="list-group-item">
            <%= mini_environment.name %>
          </a>
        <% end %>
      </div>
    </div>
  </div>
<% else %>
  <h2>There are no mini environments using this revision</h2>
<% end %>