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