gitlabhq/app/views/layouts/_projects_side.html.haml

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-01-27 23:51:02 +01:00
%aside.projects
- if current_user.can_create_project?
.alert-message.block-message.info
You can create at least
= current_user.projects_limit
projects. Click on button to add a new one
= link_to new_project_path, :class => "btn small" do
New Project
2012-01-29 20:30:03 +01:00
- if current_user.projects.count > 0
%div.entry
%h5
Recent Projects:
%ul
- current_user.projects.order("id DESC").limit(5).each do |project|
%li
= link_to project_path(project) do
= project.name
= link_to "More » ", projects_path
2012-01-27 23:51:02 +01:00
2012-01-29 20:30:03 +01:00
-#%h5
-#Your Issues:
-#%ul
-#- current_user.assigned_issues.order("id DESC").limit(5).each do |issue|
-#%li
-#= link_to project_issue_path(issue.project, issue) do
-#= truncate issue.title
2012-01-27 23:51:02 +01:00
2012-01-29 20:30:03 +01:00
-#%h5
-#Your Merge Requests:
-#%ul
-#- current_user.assigned_merge_requests.order("id DESC").limit(5).each do |issue|
-#%li
-#= link_to project_merge_request_path(issue.project, issue) do
-#= truncate issue.title
2012-01-27 23:51:02 +01:00