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
|
2012-03-26 11:11:02 +02:00
|
|
|
(most recent)
|
2012-02-28 21:59:36 +01:00
|
|
|
|
|
|
|
%strong.right
|
|
|
|
= link_to projects_path do
|
|
|
|
Projects list →
|
|
|
|
%hr
|
2012-04-07 22:13:18 +02:00
|
|
|
.dashboard_block
|
|
|
|
.row
|
|
|
|
.span4.right
|
|
|
|
%div.lborder.ipadded
|
|
|
|
%h3
|
|
|
|
= pluralize current_user.projects.count, "project", "projects"
|
|
|
|
- if current_user.can_create_project?
|
|
|
|
%hr
|
|
|
|
%div
|
|
|
|
You can create up to
|
|
|
|
= current_user.projects_limit
|
|
|
|
projects. Click on button below to add a new one
|
|
|
|
.link_holder
|
|
|
|
%br
|
|
|
|
= link_to new_project_path, :class => "btn" do
|
|
|
|
New Project »
|
|
|
|
- else
|
|
|
|
%hr
|
|
|
|
%div
|
|
|
|
You've reached project limit for your account.
|
|
|
|
You cannot create new projects.
|
|
|
|
.link_holder
|
|
|
|
%br
|
|
|
|
= link_to profile_path, :class => "btn" do
|
|
|
|
Your Profile »
|
2012-04-10 07:51:08 +02:00
|
|
|
.span8.left= render "dashboard/projects_feed", :projects => @active_projects
|
2012-04-07 22:13:18 +02:00
|
|
|
- if @last_push && @last_push.valid_push?
|
|
|
|
.padded.prepend-top-20
|
|
|
|
%h5
|
|
|
|
%small Latest push was to the #{@last_push.ref_name} #{@last_push.ref_type} of #{@last_push.project.name}:
|
|
|
|
%ul.unstyled= render @last_push
|
2012-02-28 21:59:36 +01:00
|
|
|
|
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-03-26 11:11:02 +02:00
|
|
|
%small (authored or assigned to you)
|
2012-02-28 21:59:36 +01:00
|
|
|
%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
|
2012-04-07 22:13:18 +02:00
|
|
|
.dashboard_block= render "dashboard/merge_requests_feed"
|
2012-02-28 21:59:36 +01:00
|
|
|
|
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-03-26 11:11:02 +02:00
|
|
|
%small (assigned to you)
|
2012-02-28 21:59:36 +01:00
|
|
|
%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
|
2012-04-07 22:13:18 +02:00
|
|
|
.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
|
2012-04-07 22:13:18 +02:00
|
|
|
.dashboard_block= render @events
|