diff --git a/app/views/users/admin_index.html.erb b/app/views/users/admin_index.html.erb new file mode 100644 index 0000000..829245f --- /dev/null +++ b/app/views/users/admin_index.html.erb @@ -0,0 +1,57 @@ +<%= stylesheet_link_tag "admin" %> + +
| <%= t('org_admin.user_full_name') %> | +<%= t('org_admin.user_name') %> | +<%= t('org_admin.last_logged_in') %> | +<%= t('org_admin.how_many_plans') %> | + <% if current_user.organisation.token_permission_types.count > 0 %> +<%= t('org_admin.api_privleges') %> | + <% end %> +
|---|---|---|---|---|
| + <% if !user_id.user.name.nil? then%> + <%= user_id.user.name %> + <% end %> + | ++ <%= user_id.user.email %> + | ++ <% if !user_id.user.last_sign_in_at.nil? then%> + <%= l user_id.user.last_sign_in_at.to_date, :formats => :short %> + <% end %> + | ++ <% if !user_id.user.project_groups.nil? then%> + <%= user_id.user.project_groups.count %> + <% end %> + | + <% if current_user.organisation.token_permission_types.count > 0 %> ++ <%= check_box_tag "user_ids[]", user_id, user_id.user.api_token !="" %> + | + <% end %> +