Sha256: 1228e03bfb5a032fdd07c63768704798c4659be2aa114754bbda72d148d379b8

Contents?: true

Size: 1.72 KB

Versions: 9

Compression:

Stored size: 1.72 KB

Contents

<% content_for :page_header do %>
  <h1><span class="fa fa-user"></span> <%= t('hyrax.admin.users.index.title') %></h1>
<% end %>

<div class="panel panel-default users-listing">
  <div class="panel-heading">
      <%= t('hyrax.admin.users.index.describe_users_html', count: @presenter.user_count) %>
  </div>

  <div class="panel-body">
    <div class="table-responsive">
      <table class="table table-striped datatable">
        <thead>
          <tr>
            <th></th>
            <th><%= t('.id_label') %></th>
            <th><%= t('.role_label') %></th>
            <th><%= t('.access_label') %></th>
          </tr>
        </thead>
        <tbody>
          <% @presenter.users.each do |user| %>
            <tr>
              <td><%= link_to hyrax.profile_path(user) do %>
                    <%= image_tag(user.avatar.url(:thumb), width: 30) if user.avatar.file %>
                  <% end %>
              </td>
              <br>
              <td><%= link_to user.email, hyrax.profile_path(user) %></td>
              <td><% roles = @presenter.user_roles(user) %>
                  <ul><% roles.each do |role| %>
                    <li><%= role %></li>
                    <% end %>
                  </ul>
              </td>
              <td>
                <%# in the case that a user is created who never signs in, this is necessary %>
                <relative-time datetime="<%= @presenter.last_accessed(user).getutc.iso8601 %>" title="<%= @presenter.last_accessed(user).to_formatted_s(:standard) %>">
                  <%= @presenter.last_accessed(user).to_formatted_s(:long_ordinal) %>
                </relative-time>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/admin/users/index.html.erb
hyrax-1.1.0 app/views/hyrax/admin/users/index.html.erb
hyrax-1.0.5 app/views/hyrax/admin/users/index.html.erb
hyrax-1.0.4 app/views/hyrax/admin/users/index.html.erb
hyrax-1.0.3 app/views/hyrax/admin/users/index.html.erb
hyrax-1.0.2 app/views/hyrax/admin/users/index.html.erb
hyrax-1.0.1 app/views/hyrax/admin/users/index.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/admin/users/index.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/admin/users/index.html.erb