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
|
2012-02-18 13:12:48 +01:00
|
|
|
= 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:
|
2012-02-18 14:59:01 +01:00
|
|
|
= current_user.assigned_issues.opened.count
|
2012-02-18 13:12:48 +01:00
|
|
|
%br
|
|
|
|
- if @project.merge_requests_enabled
|
|
|
|
Assigned merge request:
|
2012-02-18 14:59:01 +01:00
|
|
|
= current_user.assigned_merge_requests.opened.count
|
2012-02-18 13:12:48 +01:00
|
|
|
%br
|
|
|
|
Your merge requests:
|
2012-02-18 14:59:01 +01:00
|
|
|
= current_user.assigned_merge_requests.opened.count
|
2012-02-18 13:12:48 +01:00
|
|
|
.link_holder
|
|
|
|
= link_to project_team_member_path(@project, member), :title => current_user.name do
|
|
|
|
= "Access: #{member.project_access_human} »"
|
2012-02-05 20:26:04 +01:00
|
|
|
|
|
|
|
|
2012-02-18 13:12:48 +01:00
|
|
|
|
|
|
|
-#- if can? current_user, :write_project, @project
|
|
|
|
.widget
|
2012-02-06 18:40:32 +01:00
|
|
|
- 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 »
|
2012-02-05 20:26:04 +01:00
|
|
|
|