Sha256: 6e9675b8f64bfa91a3e03f87cf13fc250d29a1cfe9205daa96c77266cbfe4833

Contents?: true

Size: 944 Bytes

Versions: 24

Compression:

Stored size: 944 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>

  <% if display_manage_links? %>

  <td class="action-links" style="width:10%">
    <%= link_to raw("<i class=\"linecons-pencil\"></i> Edit Role"), edit_link, :remote=>true, class: "edit" if role.can_be_edited? and display_edit_links? %>
    
    <%= 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 role.can_be_deleted? and display_delete_links? %>
  </td>

  <% end %>

</tr>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
usman-0.3.33 app/views/usman/roles/_row.html.erb
usman-0.3.32 app/views/usman/roles/_row.html.erb
usman-0.3.31 app/views/usman/roles/_row.html.erb
usman-0.3.30 app/views/usman/roles/_row.html.erb
usman-0.3.29 app/views/usman/roles/_row.html.erb
usman-0.3.28 app/views/usman/roles/_row.html.erb
usman-0.3.27 app/views/usman/roles/_row.html.erb
usman-0.3.26 app/views/usman/roles/_row.html.erb
usman-0.3.25 app/views/usman/roles/_row.html.erb
usman-0.3.24 app/views/usman/roles/_row.html.erb
usman-0.3.23 app/views/usman/roles/_row.html.erb
usman-0.3.22 app/views/usman/roles/_row.html.erb
usman-0.3.21 app/views/usman/roles/_row.html.erb
usman-0.3.20 app/views/usman/roles/_row.html.erb
usman-0.3.19 app/views/usman/roles/_row.html.erb
usman-0.3.18 app/views/usman/roles/_row.html.erb
usman-0.3.17 app/views/usman/roles/_row.html.erb
usman-0.3.16 app/views/usman/roles/_row.html.erb
usman-0.3.15 app/views/usman/roles/_row.html.erb
usman-0.3.14 app/views/usman/roles/_row.html.erb