Remove button for empty repo. Last push on dashboard. Better notes count indicator for issues

This commit is contained in:
Dmitriy Zaporozhets 2012-03-22 22:28:02 +02:00
parent 6f2c193204
commit 81da8e46f2
7 changed files with 40 additions and 24 deletions

View file

@ -3,7 +3,7 @@
= link_to project do
%h4
%span.ico.project
= project.name
= truncate project.name, :length => 30
%small
last activity at
= project.last_activity_date.stamp("Aug 25, 2011")

View file

@ -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