gitlabhq/app/views/team_members/show.html.haml

69 lines
1.7 KiB
Plaintext
Raw Normal View History

2011-12-15 23:41:46 +01:00
- allow_admin = can? current_user, :admin_project, @project
- user = @team_member.user
2012-02-18 13:12:48 +01:00
2012-03-24 00:01:36 +01:00
.row
.span8
.profile_avatar_holder
= image_tag gravatar_icon(user.email, 90), :class => "styled_image"
%h3
= user.name
%br
%small
= user.email
%br
.back_link
%br
= link_to team_project_path(@project), :class => "" do
← To team list
2011-12-15 23:41:46 +01:00
2012-03-24 00:01:36 +01:00
.span8.right
%div
%div
%h5.cgray
Member since:
%span.right
= @team_member.created_at.stamp("Aug 21, 2011")
%h5.cgray
Project Access:
%small (#{link_to "read more", help_permissions_path, :class => "vlink"})
%span.right
= form_for(@team_member, :as => :team_member, :url => project_team_member_path(@project, @team_member)) do |f|
= f.select :project_access, options_for_select(Project.access_options, @team_member.project_access), {}, :class => "project-access-select", :disabled => !allow_admin
2011-12-15 23:41:46 +01:00
2012-03-24 00:01:36 +01:00
%div.prepend-top-20
2011-12-15 23:41:46 +01:00
- unless user.skype.empty?
2012-03-24 00:01:36 +01:00
%p
%b Skype:
= user.skype
2011-12-15 23:41:46 +01:00
- unless user.linkedin.empty?
2012-03-24 00:01:36 +01:00
%p
%b LinkedIn:
= user.linkedin
2011-12-15 23:41:46 +01:00
- unless user.twitter.empty?
2012-03-24 00:01:36 +01:00
%p
%b Twitter:
= user.twitter
- unless user.bio.empty?
%p
%b Bio:
= user.bio
= render user.recent_events.limit(3)
2011-12-15 23:41:46 +01:00
- if can? current_user, :admin_project, @project
2012-01-28 10:54:11 +01:00
.actions
= link_to 'Remove from team', project_team_member_path(:project_id => @project, :id => @team_member.id), :confirm => 'Are you sure?', :method => :delete, :class => "btn danger"
2011-12-15 23:41:46 +01:00
:javascript
$(function(){
$('.repo-access-select, .project-access-select').live("change", function() {
$(this.form).submit();
});
})