rosa-build/app/views/projects/base/_sidebar.html.haml

16 lines
695 B
Plaintext

- content_for :sidebar do
- act = action_name.to_sym
- contr = controller_name.to_sym
.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 == :index && contr == :collaborators) ? 'active' : ''}
= link_to t("layout.projects.edit_collaborators"), project_collaborators_path(@project)