2012-02-28 21:59:36 +01:00
|
|
|
- if current_user.require_ssh_key?
|
2012-03-05 23:29:40 +01:00
|
|
|
.alert-message.block-message.error
|
2012-02-28 21:59:36 +01:00
|
|
|
%p
|
|
|
|
You wont be able to pull/push project code unless you
|
|
|
|
= link_to new_key_path, :class => "vlink" do
|
|
|
|
add new key
|
|
|
|
to your profile
|
|
|
|
|
|
|
|
%div.dashboard_category
|
|
|
|
%h3
|
2012-03-01 21:43:04 +01:00
|
|
|
%span.ico.projects
|
2012-03-01 19:40:32 +01:00
|
|
|
= link_to "Projects" , "#projects", :id => "projects"
|
2012-02-28 21:59:36 +01:00
|
|
|
%small
|
|
|
|
( most recent )
|
|
|
|
|
|
|
|
%strong.right
|
|
|
|
= link_to projects_path do
|
|
|
|
Projects list →
|
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.dashboard_block
|
|
|
|
.row
|
2012-03-16 00:14:39 +01:00
|
|
|
.span10= render "dashboard/projects_feed", :projects => @active_projects
|
2012-03-07 09:16:43 +01:00
|
|
|
.span4.right
|
2012-02-28 21:59:36 +01:00
|
|
|
- if current_user.can_create_project?
|
|
|
|
.alert-message.block-message.warning
|
|
|
|
You can create up to
|
|
|
|
= current_user.projects_limit
|
|
|
|
projects. Click on link below to add a new one
|
|
|
|
.link_holder
|
|
|
|
= link_to new_project_path, :class => "" do
|
|
|
|
New Project »
|
|
|
|
|
|
|
|
|
2012-03-05 23:29:40 +01:00
|
|
|
- if @merge_requests.any?
|
2012-02-28 21:59:36 +01:00
|
|
|
%div.dashboard_category
|
|
|
|
%h3
|
2012-03-01 19:40:32 +01:00
|
|
|
= link_to "Merge Requests" , "#merge_requests", :id => "merge_requests"
|
|
|
|
|
2012-02-28 21:59:36 +01:00
|
|
|
%small ( authored or assigned to you )
|
|
|
|
%strong.right
|
|
|
|
= link_to dashboard_merge_requests_path do
|
2012-03-12 13:15:48 +01:00
|
|
|
Visit merge requests page →
|
2012-02-28 21:59:36 +01:00
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.dashboard_block= render "dashboard/merge_requests_feed"
|
|
|
|
|
2012-03-05 23:29:40 +01:00
|
|
|
- if @issues.any?
|
2012-02-28 21:59:36 +01:00
|
|
|
%div.dashboard_category
|
|
|
|
%h3
|
2012-03-01 19:40:32 +01:00
|
|
|
= link_to "Issues" , "#issues", :id => "issues"
|
2012-02-28 21:59:36 +01:00
|
|
|
%small ( assigned to you )
|
|
|
|
%strong.right
|
2012-03-03 10:23:03 +01:00
|
|
|
= link_to dashboard_issues_path do
|
2012-03-12 13:15:48 +01:00
|
|
|
Visit issues page →
|
2012-02-28 21:59:36 +01:00
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.dashboard_block= render "dashboard/issues_feed"
|
2012-02-29 21:38:24 +01:00
|
|
|
|
2012-03-05 23:29:40 +01:00
|
|
|
- if @events.any?
|
2012-02-29 21:38:24 +01:00
|
|
|
%div.dashboard_category
|
|
|
|
%h3
|
2012-03-01 21:43:04 +01:00
|
|
|
%span.ico.activities
|
2012-03-01 19:40:32 +01:00
|
|
|
= link_to "Activities" , "#activities", :id => "activities"
|
2012-02-29 21:38:24 +01:00
|
|
|
|
|
|
|
%hr
|
|
|
|
.row
|
2012-03-19 21:52:16 +01:00
|
|
|
.dashboard_block= render @events
|