gitlabhq/app/views/widgets/_recent_projects.html.haml

12 lines
311 B
Plaintext
Raw Normal View History

2012-02-05 20:26:04 +01:00
- if current_user.projects.count > 0
%div.widget
%h4
Recent Projects:
%ul
- current_user.projects.order("id DESC").limit(5).each do |project|
%li
= link_to project_path(project) do
= project.name
2012-02-18 13:12:48 +01:00
.link_holder
= link_to "Projects » ", projects_path