gitlabhq/app/views/layouts/_projects_side.html.haml
2012-02-26 21:38:45 +02:00

22 lines
622 B
Plaintext

%aside.projects
- if current_user.can_create_project?
.widget
You can create up to
= current_user.projects_limit
projects. Click on link below to add a new one
.link_holder
= link_to new_project_path, :class => "" do
New Project »
- if current_user.is_admin?
.widget
You have administrator privilegies. You can configure application following this button:
.link_holder
= link_to admin_root_path, :class => "", :title => "Admin" do
Visit Admin Area »
- if current_user.projects.count > 0
= render "widgets/recent_projects"