gitlabhq/app/views/widgets/_project_member.html.haml

29 lines
972 B
Plaintext
Raw Normal View History

2012-02-05 20:26:04 +01:00
- member = @project.team_member_by_id(current_user.id)
.widget
.media-grid
%li
= link_to project_team_member_path(@project, member), :title => current_user.name do
= image_tag gravatar_icon(current_user.email, 90), :class => "thumbnail"
.row
.span4
%h4
= truncate(current_user.name, :lenght => 24)
- if @project.owner == current_user
%span.label Project Owner
.span3
%span.label= member.project_access_human
- if can? current_user, :write_project, @project
- if @project.issues_enabled && @project.merge_requests_enabled
%hr
.span3
%p You have access to create new issue or merge request.
%div
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "" do
New Issue »
%div
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "" do
New Merge Request »
2012-02-05 20:26:04 +01:00