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

16 lines
699 B
Plaintext
Raw Normal View History

- content_for :sidebar do
2011-10-30 22:59:03 +00:00
- act = action_name.to_sym
- contr = controller_name.to_sym
2012-03-31 14:18:22 +01:00
.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)