summaryrefslogtreecommitdiff
path: root/app/views/dashboard/_sidebar.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-12-08 22:17:53 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-12-08 22:17:53 +0200
commitcd779e56e1ce799fc6ec25dc2fbc8a3e0f775ee8 (patch)
treeb10daacc88ec915f7f61e43a2b38701c4722daa2 /app/views/dashboard/_sidebar.html.haml
parent4107f2cc2e6d0b93208573f4873305ba0ef4c5de (diff)
downloadgitlab-ce-cd779e56e1ce799fc6ec25dc2fbc8a3e0f775ee8.tar.gz
dashboard v1
Diffstat (limited to 'app/views/dashboard/_sidebar.html.haml')
-rw-r--r--app/views/dashboard/_sidebar.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/dashboard/_sidebar.html.haml b/app/views/dashboard/_sidebar.html.haml
new file mode 100644
index 00000000000..337c1541a3e
--- /dev/null
+++ b/app/views/dashboard/_sidebar.html.haml
@@ -0,0 +1,15 @@
+%aside
+ %h4
+ - if current_user.can_create_project?
+ %a.button-small.button-green{:href => new_project_path} New Project
+ Your Projects
+ %ol.project-list
+ - @projects.each do |project|
+ %li
+ %a{:href => project_path(project)}
+ %span.arrow →
+ %span.project-name= project.name
+ %span.time
+ %strong Last activity:
+ = project.last_activity_date ? time_ago_in_words(project.last_activity_date) + " ago" : "Never"
+