Sha256: e0c380b18f2a2137723b8be735037d2ffbbda4bf57242f51eb8d95ee540e7862
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
<h1>Toggles</h1> <table class="toggles-list"> <thead> <tr> <th>Toggle</th> <th>Active</th> <th>Description</th> <th>Actions</th> </tr> </thead> <% @toggles.each do |toggle| %> <tbody> <tr> <td><%= toggle.name %></td> <td><%= toggle.active %></td> <td><%= toggle.description %></td> <td> <ul class="toggle-actions"> <% if toggle.active %> <li><%= link_to('Inactivate', chirrin_chirrion_admin.inactivate_toggle_path(toggle.name), { method: :put, id: "inactivate_#{toggle.name}", data: { confirm: 'Do you really want to inactivate this toggle?' } }) %></li> <% else %> <li><%= link_to('Activate', chirrin_chirrion_admin.activate_toggle_path(toggle.name), { method: :put, id: "activate_#{toggle.name}", data: { confirm: 'Do you really want to activate this toggle?' } }) %></li> <% end %> <li><%= link_to('Remove', chirrin_chirrion_admin.toggle_path(toggle.name), { method: :delete, id: "remove_#{toggle.name}", data: { confirm: 'Do you really want to remove this toggle?' } }) %></li> </ul> </td> </tr> </tbody> <% end %> </table> <div class='toggles-navigation'> <%= link_to('New Toggle', chirrin_chirrion_admin.new_toggle_path) %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chirrin-chirrion-admin-0.0.1 | app/views/chirrin_chirrion_admin/toggles/index.html.erb |