2012-03-22 00:42:56 +00:00
|
|
|
- content_for :sidebar do
|
2011-10-30 22:59:03 +00:00
|
|
|
|
2012-03-22 00:42:56 +00:00
|
|
|
- act = action_name.to_sym
|
|
|
|
- contr = controller_name.to_sym
|
|
|
|
|
|
|
|
%aside
|
|
|
|
.admin-preferences
|
|
|
|
%ul
|
|
|
|
- if can? :edit, @project
|
|
|
|
%li{:class => (act == :edit && contr == :projects) ? 'active' : ''}
|
|
|
|
= link_to t("layout.projects.edit"), edit_project_path(@project)
|
|
|
|
%li{:class => (act == :sections && contr == :projects) ? 'active' : ''}
|
|
|
|
= link_to t("layout.projects.sections"), sections_project_path(@project)
|
|
|
|
- if can? :manage_collaborators, @project
|
|
|
|
%li{:class => (act == :edit && contr == :collaborators) ? 'active' : ''}
|
|
|
|
= link_to t("layout.projects.edit_collaborators"), edit_project_collaborators_path(@project)
|