diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-23 00:28:02 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-23 00:28:02 +0400 |
commit | 81da8e46f24913ccf42d3e2644962cbcbc0f9c2e (patch) | |
tree | 682ef5480670bc40599dfd44ccdb877e9ba876f8 /app/views/dashboard/index.html.haml | |
parent | 6f2c19320464c928e3dae0373a7af315bf5fb043 (diff) |
Remove button for empty repo. Last push on dashboard. Better notes count indicator for issues
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 |