2012-03-11 23:08:50 +00:00
|
|
|
- act = action_name.to_sym
|
|
|
|
- contr = controller_name.to_sym
|
|
|
|
|
|
|
|
- content_for :sidebar do
|
|
|
|
%aside
|
|
|
|
.admin-preferences
|
2012-03-20 16:24:18 +00:00
|
|
|
%nav
|
|
|
|
%ul
|
|
|
|
%li{:class => (act == :show && contr == :platforms) ? 'active' : ''}
|
|
|
|
= link_to t("layout.platforms.about"), platform_path(@platform)
|
|
|
|
%li{:class => (contr == :repositories) ? 'active' : ''}
|
|
|
|
= link_to t("layout.repositories.list_header"), platform_repositories_path(@platform)
|
|
|
|
- if can? :read, @platform.products.build
|
|
|
|
%li{:class => (contr == :products) ? 'active' : ''}
|
|
|
|
= link_to t("layout.products.list_header"), platform_products_path(@platform)
|
|
|
|
- if can? :update, @platform
|
|
|
|
%li{:class => (act == :edit && contr == :platforms) ? 'active' : nil}
|
|
|
|
= link_to t("platform_menu.settings"), edit_platform_path(@platform)
|
|
|
|
- if can? :members, @platform
|
|
|
|
%li{:class => (act == :members && contr == :platforms) ? 'active' : nil}
|
|
|
|
= link_to t("layout.platforms.members"), members_platform_path(@platform)
|
|
|
|
-#- if current_user.owner_of? @platform or current_user.admin?
|
|
|
|
%li{:class => (act == :index && contr == :private_users) ? 'active' : ''}
|
|
|
|
= link_to t("layout.platforms.private_users"), platform_private_users_path(@platform)
|
2012-03-11 23:08:50 +00:00
|
|
|
-#.block.notice
|
2011-10-17 15:27:07 +01:00
|
|
|
%h3= t("layout.groups.members")
|
|
|
|
.content
|
|
|
|
- @platform.members.uniq.each do |member|
|
2011-10-20 18:01:01 +01:00
|
|
|
%p= link_to member.name + "", user_path(member)
|