Sha256: 8f529274e6ef6dd6c9c59c8102e0adc92da5cec69c38f80f753cf6047a49a0b9

Contents?: true

Size: 795 Bytes

Versions: 11

Compression:

Stored size: 795 Bytes

Contents

<%= content_tag :table, id: :wobauth_role_authorities, role: :wobauth_datatable,
    class: "table table-sm table-bordered dataTable" do %>
 <thead> 
  <tr>
    <th><%= t('attributes.user') %></th>
    <th><%= t('attributes.authorizable_type') %></th>
    <th><%= t('attributes.authorized_for') %></th>
    <th><%= t('attributes.authorized_for_type') %></th>
  </tr>
 </thead>
 <tbody>
<% authorities.valid(Date.today).each do |authority| %>
  <%= content_tag_for(:tr, authority) do %>
    <td><%= link_to authority.authorizable, polymorphic_path([wobauth, authority.authorizable]) %></td>
    <td><%= authority.authorizable_type %></td>
    <td><%= authorized_for_link(authority.authorized_for) %></td>
    <td><%= authority.authorized_for_type %></td>
  <% end %>
<% end %>
</tbody>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wobauth-5.1.1 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-5.1.0 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-5.0.2 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-5.0.1 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-5.0.0 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-4.0.0 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-3.4.8 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-3.4.7 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-3.4.6 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-3.4.5 app/views/wobauth/roles/_role_authorities.html.erb
wobauth-3.4.4 app/views/wobauth/roles/_role_authorities.html.erb