Sha256: 469e7f70818a619d4a3cf0a3746dab790f489670969538c09998cba0c0b69e66

Contents?: true

Size: 879 Bytes

Versions: 2

Compression:

Stored size: 879 Bytes

Contents

<h1>Feature Gates</h1>

<section class="gates">
  <h3>Opened Gates</h3>
  <% if @opened_gates.any? %>
    <ul>
      <% @opened_gates.each do |gate| %>
        <li>
          <%= gate.name %>&nbsp;
          <%= link_to 'Close', gated_feature_path(gate, gated: true), method: :put, data: { confirm: "Shutting down #{gate.name}, are you sure?" } %>
        </li>
      <% end %>
    </ul>
  <% else %>
    <em>No opened gates</em>
  <% end %>
</section>

<hr>

<section class="gates">
  <h3>Closed Gates</h3>
  <% if @closed_gates.any? %>
    <ul>
      <% @closed_gates.each do |gate| %>
        <li>
          <%= gate.name %>
          <%= link_to 'Open', gated_feature_path(gate, gated: false), method: :put, data: { confirm: "Deploying #{gate.name}, are you sure?" } %>
        </li>
      <% end %>
    </ul>
  <% else %>
    <em>No closed gates</em>
  <% end %>
</section>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
feature_gate-0.1.3 app/views/feature_gate/gated_features/index.html.erb
feature_gate-0.1.2 app/views/feature_gate/gated_features/index.html.erb