Commit fc43c4e7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Restyle admin/user page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 87e0fe6f
......@@ -8,7 +8,8 @@ class Admin::UsersController < Admin::ApplicationController
end
def show
@projects = user.authorized_projects
@personal_projects = user.personal_projects
@joined_projects = user.projects.joined(@user)
end
def new
......
This diff is collapsed.
.panel.panel-default
.panel-heading Personal projects
%ul.well-list
- @projects.each do |project|
- projects.each do |project|
%li
= link_to_project project
......@@ -13,12 +13,14 @@
%br
%small member since #{@user.created_at.stamp("Nov 12, 2031")}
.clearfix
%h4 Groups:
= render 'groups', groups: @groups
%hr
- if @groups.any?
%h4 Groups:
= render 'groups', groups: @groups
%hr
%h4 User Activity:
= render @events
.col-md-4
= render 'profile', user: @user
- if @projects.present?
= render 'projects'
= render 'projects', projects: @projects
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment