Sha256: 2dfeb1779859e290e3be0952076718e6c5722e4b13fe06bdbbc3c8216e51430e

Contents?: true

Size: 907 Bytes

Versions: 21

Compression:

Stored size: 907 Bytes

Contents

<% edit_link = edit_role_path(id: role.id) %>
<% delete_link = role_path(id: role.id) %>

<tr id="tr_role_<%= role.id %>">

  <th scope="row" style="text-align: center;">
    <% if i < 0 %>
      <i class="fa fa-check text-success"></i>
    <% else %>
      <%= i + 1 + (@per_page.to_i * (@current_page.to_i - 1)) %>
    <% end %>
  </th>

  <td class="role-name"><%= link_to role.name, role_path(role), remote: true %></td>

  <td class="action-links" style="width:10%">

    <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit Role"), edit_link, :remote=>true, class: "edit" if @current_user.super_admin? and role.can_be_edited? %>

    <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" if @current_user.super_admin? and role.can_be_deleted? %>

  </td>

</tr>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
usman-0.3.9 app/views/usman/roles/_row.html.erb
usman-0.3.8 app/views/usman/roles/_row.html.erb
usman-0.3.7 app/views/usman/roles/_row.html.erb
usman-0.3.6 app/views/usman/roles/_row.html.erb
usman-0.3.5 app/views/usman/roles/_row.html.erb
usman-0.3.4 app/views/usman/roles/_row.html.erb
usman-0.3.3 app/views/usman/roles/_row.html.erb
usman-0.3.2 app/views/usman/roles/_row.html.erb
usman-0.3.1 app/views/usman/roles/_row.html.erb
usman-0.3.0 app/views/usman/roles/_row.html.erb
usman-0.2.11 app/views/usman/roles/_row.html.erb
usman-0.2.10 app/views/usman/roles/_row.html.erb
usman-0.2.9 app/views/usman/roles/_row.html.erb
usman-0.2.8 app/views/usman/roles/_row.html.erb
usman-0.2.7 app/views/usman/roles/_row.html.erb
usman-0.2.6 app/views/usman/roles/_row.html.erb
usman-0.2.5 app/views/usman/roles/_row.html.erb
usman-0.2.3 app/views/usman/roles/_row.html.erb
usman-0.2.2 app/views/usman/roles/_row.html.erb
usman-0.2.1 app/views/usman/roles/_row.html.erb