projects list on dashboard with commit links

This commit is contained in:
Dmitriy Zaporozhets 2012-04-07 23:13:18 +03:00
parent 2fa4aadb8f
commit 88974b500f
3 changed files with 49 additions and 54 deletions

View file

@ -10,4 +10,5 @@
.right
%small
%strong= link_to "Browse Code »", tree_project_ref_path(project, project.root_ref), :class => "vlink"
%strong= link_to "Browse Code »", tree_project_ref_path(project, project.root_ref), :class => "neib gray"
%strong= link_to "Commits »", project_commits_path(project), :class => "gray"

View file

@ -17,38 +17,37 @@
= link_to projects_path do
Projects list →
%hr
.row
.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 »
.span10.left= render "dashboard/projects_feed", :projects => @active_projects
- 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
.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 »
.span12.left= render "dashboard/projects_feed", :projects => @active_projects
- 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
- if @merge_requests.any?
%div.dashboard_category
@ -60,8 +59,7 @@
= link_to dashboard_merge_requests_path do
Visit merge requests page →
%hr
.row
.dashboard_block= render "dashboard/merge_requests_feed"
.dashboard_block= render "dashboard/merge_requests_feed"
- if @issues.any?
%div.dashboard_category
@ -72,8 +70,7 @@
= link_to dashboard_issues_path do
Visit issues page →
%hr
.row
.dashboard_block= render "dashboard/issues_feed"
.dashboard_block= render "dashboard/issues_feed"
- if @events.any?
%div.dashboard_category
@ -82,5 +79,4 @@
= link_to "Activities" , "#activities", :id => "activities"
%hr
.row
.dashboard_block= render @events
.dashboard_block= render @events