Sha256: 2ffc9f24517727ca20d391b4b151349d51cb0ba8c890faea5757fc9a006631b7

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

<div id="search" class="row">
<%= render :partial => 'search_form' %>
<h1><%= t('sufia.product_name') %> Users</h1>
</div>
<div id="Data">
    <table class="table table-striped"> 
        <thead> 
            <tr> 
                <th>Avatar</th> 
                <th class="sorts"><i id="name" class="<%=params[:sort].blank? ? 'icon-caret-up' : params[:sort]== "name desc" ? 'icon-caret-down' : params[:sort]== "name" ? 'icon-caret-up' : ''%>"/>User Name</th> 
                <th class="sorts"><i id="login" class="<%=params[:sort]== "login desc" ? 'icon-caret-down' : params[:sort]== "login" ? 'icon-caret-up' : ''%>"/>User Id</th> 
                <th class="sorts"><i id="department" class="<%=params[:sort]== "department desc" ? 'icon-caret-down' : params[:sort]== "department" ? 'icon-caret-up' : ''%>"/>Department</th>
                <th>Files Deposited</th> 
            </tr> 
        </thead> 
        <tbody> 
            <% @users.each do |user| %> 
                <tr class="<%= cycle("","zebra") %>"> 
                   <td><a href="<%= sufia.profile_path(user) %>" class="btn btn-small " ><%= image_tag user.avatar.url(:thumb), :width => 30 %></a></td> 
                   <td ><a href="<%= sufia.profile_path(user) %>"  ><%= user.name %><a></td> 
                   <td><a href="<%= sufia.profile_path(user) %>"  ><%= user.user_key %><a></td>
                   <td><%= user.department %> </td> 
                   <td><%= number_of_deposits(user) %> </td>
                </tr> 
             <% end %> 
        </tbody> 
    </table> 
    <div class="pager">
      <%= paginate @users,  :theme => 'blacklight'%>
    </div>
</div> 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sufia-3.7.0 app/views/users/index.html.erb
sufia-3.6.1 app/views/users/index.html.erb
sufia-3.6.0 app/views/users/index.html.erb