Added dashboard page. Projects page not root from now

This commit is contained in:
Dmitriy Zaporozhets 2012-02-28 22:59:36 +02:00
parent 34e1580184
commit 376bec26de
16 changed files with 141 additions and 39 deletions

View file

@ -1,4 +1,4 @@
- @projects.in_groups_of(2, false) do |projects|
- @projects.in_groups_of(3, false) do |projects|
.row
- projects.each_with_index do |project, i|
%div.project_tile

View file

@ -1,6 +1,10 @@
%h3
Projects
%small= "( #{current_user.projects.count} )"
- if current_user.can_create_project?
%span.right
= link_to new_project_path, :class => "btn small" do
New Project
%hr
- unless @projects.empty?
%div.content_list= render "tile"