40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
- 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, 60), :class => "thumbnail", :width => 60
|
|
%h4
|
|
Hi,
|
|
= truncate current_user.first_name, :lenght => 24
|
|
!
|
|
%p
|
|
- if @project.issues_enabled
|
|
Assigned issues:
|
|
= current_user.assigned_issues.count
|
|
%br
|
|
- if @project.merge_requests_enabled
|
|
Assigned merge request:
|
|
= current_user.assigned_merge_requests.count
|
|
%br
|
|
Your merge requests:
|
|
= current_user.assigned_merge_requests.count
|
|
.link_holder
|
|
= link_to project_team_member_path(@project, member), :title => current_user.name do
|
|
= "Access: #{member.project_access_human} »"
|
|
|
|
|
|
|
|
-#- if can? current_user, :write_project, @project
|
|
.widget
|
|
- if @project.issues_enabled && @project.merge_requests_enabled
|
|
.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 »
|
|
|