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
|
|
|
|
%ul
|
|
|
|
%li{:class => (act == :show && contr == :platforms) ? 'active' : ''}
|
|
|
|
= link_to t("layout.platforms.about"), platform_path(@platform)
|
2012-03-13 15:05:33 +00:00
|
|
|
%li{:class => (contr == :repositories) ? 'active' : ''}
|
2012-03-11 23:08:50 +00:00
|
|
|
= link_to t("layout.repositories.list_header"), platform_repositories_path(@platform)
|
2012-03-14 23:25:58 +00:00
|
|
|
- if can? :read, @platform.products.build
|
|
|
|
%li{:class => (contr == :products) ? 'active' : ''}
|
|
|
|
= link_to t("layout.products.list_header"), platform_products_path(@platform)
|
2012-03-12 00:07:18 +00:00
|
|
|
-#- if current_user.owner_of? @platform or current_user.admin?
|
|
|
|
%li{:class => (act == :index && contr == :private_users) ? 'active' : ''}
|
2012-03-11 23:08:50 +00:00
|
|
|
= link_to t("layout.platforms.private_users"), platform_private_users_path(@platform)
|
|
|
|
-#.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)
|