Sha256: f8c9edd66d57250f7afedfe5156eb66ef0214b3c588c53070b4f67aa8a4a13f3
Contents?: true
Size: 1.36 KB
Versions: 5
Compression:
Stored size: 1.36 KB
Contents
<% content_for :title, t(:groups) -%> <h1 class="title"><%= content_for :title %></h1> <a class="button is-primary" href="<%= new_group_path %>"> <span class="icon"> <i class="fa fa-group"></i> </span> <span><%= t(:create_a_new_group) %></span> </a> <table class="table"> <tr> <th></th> <th><%= t :name %></th> <th></th> </tr> <% @groups.each do |group| -%> <tr class="<%= cycle('even', 'odd') %>"> <% if group.admins_group? -%> <td> <span class="icon is-small"> <i class="fa fa-group"></i> </span> </td> <td class="group_name disabled"><%= group.name %></td> <td></td> <% else -%> <td> <span class="icon is-small"> <i class="fa fa-group"></i> </span> </td> <td class="group_name"><%= group.name %></td> <td> <%= link_to '<span class="icon is-small"><i class="fa fa-edit"></i></span>'.html_safe, edit_group_path(group), :title => t(:edit) %> <%= link_to '<span class="icon is-small"><i class="fa fa-remove"></i></span>'.html_safe, group_path(group), :method => :delete, :data => {:confirm => t(:are_you_sure)}, :title => t(:delete_item) %> </td> <% end -%> </tr> <% end -%> </table>
Version data entries
5 entries across 5 versions & 1 rubygems