Sha256: ff8f36b3c4402bf04c9c0cf870fc8f0c8e6a7d818dec0ff2178fbe7b91a3509e
Contents?: true
Size: 1.52 KB
Versions: 6
Compression:
Stored size: 1.52 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> </tr> <% @stale_gates.each do |gate| %> <tr> <td><%= gate.name %></td> <td><%= gate.status %></td> <td><%= gate.updated_at.strftime('%F') %></td> </tr> <% end %> </table> <% else %> <em>No stale gates</em> <% end %> </section>
Version data entries
6 entries across 6 versions & 1 rubygems