gitlabhq/app/views/layouts/_projects_side.html.haml
Dmitriy Zaporozhets ec01fa29fb styled top panel
2012-02-12 13:15:41 +02:00

22 lines
613 B
Plaintext

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