Added dashboard page. Projects page not root from now
This commit is contained in:
parent
34e1580184
commit
376bec26de
16 changed files with 141 additions and 39 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue