Sha256: 2e28c713d3b475f6d2d449cb9b6b68a20529fb71ac1301f24f6acbf026718dc8

Contents?: true

Size: 1.72 KB

Versions: 1

Compression:

Stored size: 1.72 KB

Contents

<% if @show_blank_slate %>
  <div class="jumbotron text-center">
    <span class="mega-octicon octicon-plus"></span>
    <span class="mega-octicon octicon-list-unordered"></span>
    <span class="mega-octicon octicon-zap"></span>
    <% if Flipper::UI.configuration.fun %>
      <h4>But I've got a blank space baby...</h4>
      <p>And I'll flip your features.</p>
      <div class="embed-responsive embed-responsive-16by9">
        <iframe class="embed-responsive-item" width="560" height="315" src="https://www.youtube.com/embed/e-ORhEE9VVg" frameborder="0" allowfullscreen></iframe>
      </div>
    <% else %>
      <h4>There aren't any features to configure.</h4>
      <p>
        Check the <a href="https://github.com/jnunemaker/flipper#examples">examples</a> to
        learn how to add one.
      </p>
    <% end %>
  </div>
<% else %>
  <div class="card">
    <h4 class="card-header">Features</h4>
    <table class="table">
      <thead>
        <tr class="d-flex">
          <th class="col-1">
            <span class="octicon octicon-squirrel"></span>
          </th>
          <th class="col">Feature</th>
          <th class="col">Enabled Gates</th>
        </tr>
      </thead>
      <tbody>
        <% @features.each do |feature| %>
          <tr class="d-flex">
            <td class="col-1">
              <span class="octicon octicon-squirrel <%= feature.color_class %>"></span>
            </td>
            <td class="col">
              <a href="<%= "#{script_name}/features/#{feature.key}" %>">
                <%= feature.key %></a>
            </td>
            <td class="col">
              <%= feature.pretty_enabled_gate_names %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flipper-ui-0.17.1 lib/flipper/ui/views/features.erb