Sha256: e617db56bd80e36315451882fce02807df85c9d29c6253604c45900d70012193
Contents?: true
Size: 1.42 KB
Versions: 5
Compression:
Stored size: 1.42 KB
Contents
<%= render 'cally/shared/header' %> <%= render 'cally/shared/messages' %> <div class="row"> <div class="col-md-4 col-md-offset-4"> <div class="padded-mobile"> <h1 class="centered">Users</h1> <% @users.each do |user| %> <div class="row user-overview <%= 'admin' if user.admin %>"> <div class="col-md-4"> <div><%= sanitize user.username %></div> </div> <!-- end username and admin //--> <div class="col-md-4"> Last Logged in: <%= user.last_logged_in_time.to_s(:omw_long) %> </div> <!-- end last logged in time user //--> <div class="col-md-4"> <% if !is_first_user?(user) && is_admin? && !user.admin %> <%= link_to 'admin', toggle_admin_path(user), method: :post %> | <% elsif !is_first_user?(user) && is_admin? && user.admin %> <%= link_to 'revoke admin', toggle_admin_path(user), method: :post %> | <% end %> <% if !is_first_user?(user) && is_admin? %> <%= link_to 'Delete', user_path(user), method: :delete %> <% end %> </div> <!-- end user actions //--> </div> <!-- end row user //--> <% end %> </div> <!-- end padded-mobile //--> </div> <!-- end col-md-4 outer //--> </div> <!-- end row outer //--> <div class="centered custom-pagination"><ul><%= will_paginate @users, container: false %></ul></div>
Version data entries
5 entries across 5 versions & 1 rubygems