Events improved & refactored. Dashboard pollished

This commit is contained in:
Dmitriy Zaporozhets 2012-04-02 00:24:45 +03:00
parent 3ac9c3ad7f
commit 00dc34e192
11 changed files with 139 additions and 126 deletions

View file

@ -1,11 +1,13 @@
- projects.first(5).each do |project|
%div.dash_project_item
= link_to project do
%h4
%h4
= link_to project, :class => "project_link" do
%span.ico.project
= truncate project.name, :length => 30
= truncate project.name, :length => 24
%small
last activity at
= project.last_activity_date.stamp("Aug 25, 2011")
.right
%small
last activity at
= project.last_activity_date.stamp("Aug 25, 2011")
%span.right.arrow
→
%strong= link_to "Browse Code »", tree_project_ref_path(project, project.root_ref), :class => "vlink"

View file

@ -21,8 +21,8 @@
.dashboard_block
.row
.span4.right
%div.borders.ipadded
%h1
%div.lborder.ipadded
%h3
= pluralize current_user.projects.count, "project", "projects"
- if current_user.can_create_project?
%hr