summaryrefslogtreecommitdiff
path: root/app/views/team_members
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-05-24 09:23:25 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-05-24 09:23:52 +0300
commitddc7568fec59aa7a068116f692804504d9aa1a1d (patch)
treee38dd9bbb4aa77be5aab80cff4a37afa69f9c5b9 /app/views/team_members
parentdb78a63eb16109e08c6f861c6fafc6dc124eb181 (diff)
downloadgitlab-ce-ddc7568fec59aa7a068116f692804504d9aa1a1d.tar.gz
Milestone show, Team index: Better UI
Diffstat (limited to 'app/views/team_members')
-rw-r--r--app/views/team_members/_show.html.haml25
1 files changed, 14 insertions, 11 deletions
diff --git a/app/views/team_members/_show.html.haml b/app/views/team_members/_show.html.haml
index 00d06601668..1213a9816dc 100644
--- a/app/views/team_members/_show.html.haml
+++ b/app/views/team_members/_show.html.haml
@@ -1,17 +1,20 @@
- user = member.user
- allow_admin = can? current_user, :admin_project, @project
-%li{:id => dom_id(member), :class => "team_member_row wll"}
- .row
- .span8
- = link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
- = image_tag gravatar_icon(user.email, 40), :class => "avatar"
- %strong= truncate(user.name, :lenght => 40)
- %div.cgray= user.email
-
- .span3
- = form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|
- = f.select :project_access, options_for_select(UsersProject.access_roles, member.project_access), {}, :class => "medium project-access-select", :disabled => !allow_admin
+%tr{:id => dom_id(member), :class => "team_member_row"}
+ %td
+ .right
- if @project.owner == user
%span.label Project Owner
- if user.blocked
%span.label Blocked
+
+ = link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
+ = image_tag gravatar_icon(user.email, 40), :class => "avatar"
+ = link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
+ %strong= truncate(user.name, :lenght => 40)
+ %br
+ %div.cgray= user.email
+
+ %td
+ = form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|
+ = f.select :project_access, options_for_select(UsersProject.access_roles, member.project_access), {}, :class => "medium project-access-select", :disabled => !allow_admin