diff options
Diffstat (limited to 'app/views/dashboard/index.html.haml')
-rw-r--r-- | app/views/dashboard/index.html.haml | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/app/views/dashboard/index.html.haml b/app/views/dashboard/index.html.haml index b20fafca75c..39b05d0c6ea 100644 --- a/app/views/dashboard/index.html.haml +++ b/app/views/dashboard/index.html.haml @@ -20,17 +20,26 @@ .row .dashboard_block .row - .span10= render "dashboard/projects_feed", :projects => @active_projects - .span4.right - - 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 » - + .span4 + %div.prettyprint.ipadded + %h1 + = 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 » + .span10.right= render "dashboard/projects_feed", :projects => @active_projects + - if @last_push + .ui-box.padded.prepend-top-20 + %h5 + %small Latest push was to the #{@last_push.branch_name} branch of #{@last_push.project.name}: + %ul.unstyled= render @last_push - if @merge_requests.any? %div.dashboard_category |