Sha256: 2a9978e56dd2177c9a84fcf9ce1944c659d0c52699f3958a842e1d394f968135
Contents?: true
Size: 1.69 KB
Versions: 7
Compression:
Stored size: 1.69 KB
Contents
<h1>Feature Gates</h1> <section class="gates"> <h3>Opened Gates</h3> <% if @opened_gates.any? %> <table> <tr> <th>Gate name</th> <th>Action</th> </tr> <% @opened_gates.each do |gate| %> <tr> <td><%= gate.name %></td> <td><%= link_to 'Close', gated_feature_path(gate, gated: true), method: :put, data: { confirm: "Shutting down #{gate.name}, are you sure?" } %></td> </tr> <% end %> </table> <% else %> <em>No opened gates</em> <% end %> </section> <section class="gates"> <h3>Closed Gates</h3> <% if @closed_gates.any? %> <table> <tr> <th>Gate name</th> <th>Action</th> </tr> <% @closed_gates.each do |gate| %> <tr> <td><%= gate.name %></td> <td><%= link_to 'Open', gated_feature_path(gate, gated: false), method: :put, data: { confirm: "Deploying #{gate.name}, are you sure?" } %></td> </tr> <% end %> </table> <% else %> <em>No closed gates</em> <% end %> </section> <hr> <section class="gates"> <h3>Stale Gates</h3> <% if @stale_gates.any? %> <table> <tr> <th>Gate name</th> <th>Status</th> <th>Last updated at</th> <th>Action</th> </tr> <% @stale_gates.each do |gate| %> <tr> <td><%= gate.name %></td> <td><%= gate.status %></td> <td><%= gate.updated_at.strftime('%F') %></td> <td><%= link_to 'Destroy', gated_feature_path(gate), method: :delete, data: { confirm: "Destroying #{gate.name}, are you sure?" } %></td> </tr> <% end %> </table> <% else %> <em>No stale gates</em> <% end %> </section>
Version data entries
7 entries across 7 versions & 1 rubygems