2012-01-27 23:51:02 +01:00
|
|
|
%aside.projects
|
|
|
|
- if current_user.can_create_project?
|
2012-02-11 22:22:33 +01:00
|
|
|
.alert-message.block-message
|
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-11 18:56:18 +01:00
|
|
|
.alert-actions
|
|
|
|
= link_to new_project_path, :class => "btn small" do
|
|
|
|
New Project »
|
|
|
|
|
|
|
|
- if current_user.is_admin?
|
2012-02-11 22:22:33 +01:00
|
|
|
.alert-message.block-message
|
2012-02-11 18:56:18 +01:00
|
|
|
You have administrator privilegies. You can configure application following this button:
|
|
|
|
.alert-actions
|
|
|
|
= 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
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
|