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

22 lines
613 B
Plaintext
Raw Normal View History

2012-01-27 23:51:02 +01:00
%aside.projects
- if current_user.can_create_project?
2012-02-12 12:15:41 +01:00
.widget
2012-01-27 23:51:02 +01:00
You can create at least
= current_user.projects_limit
projects. Click on button to add a new one
2012-02-12 12:15:41 +01:00
%hr
= link_to new_project_path, :class => "btn small" do
New Project »
2012-02-11 18:56:18 +01:00
- if current_user.is_admin?
2012-02-12 12:15:41 +01:00
.widget
2012-02-11 18:56:18 +01:00
You have administrator privilegies. You can configure application following this button:
2012-02-12 12:15:41 +01:00
%hr
= link_to admin_root_path, :class => "btn small", :title => "Admin" do
Visit Admin Area »
2012-01-27 23:51:02 +01:00
2012-01-29 20:30:03 +01:00
- if current_user.projects.count > 0
2012-02-12 12:15:41 +01:00
= render "widgets/recent_projects"
2012-01-27 23:51:02 +01:00