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

51 lines
1.6 KiB
Plaintext
Raw Normal View History

2011-10-30 22:59:03 +00:00
.block.notice
%h3= t("layout.projects.members")
.content
%p
%b
= "#{t("layout.projects.collaborators")}:"
%ul
- @project.collaborators.each do |user|
%li
- if can? :read, user
2011-10-30 22:59:03 +00:00
= link_to user.name, user_path(user)
- else
= user.name
- if (@project.owner == user)
= '(' + t("layout.owner") + ')'
2011-12-05 12:32:18 +00:00
/%br
-# if can? :update, @project
2011-12-05 12:32:18 +00:00
%p
%b
= "#{t("layout.projects.groups")}:"
%ul
- @project.groups.each do |group|
%li
= link_to group.name, group_path(group)
- if (@project.owner == group)
= '(' + t("layout.owner") + ')'
%br
= link_to t("layout.projects.edit_collaborators"), edit_project_collaborators_path(@project) if can? :manage_collaborators, @project
2011-10-30 22:59:03 +00:00
/ %p
/ %b
/ = "#{t("layout.projects.groups")}:"
/ %ul
/ - @project.groups.each do |group|
/ %li
/ = link_to group.name, group_path(group)
/ - if (@project.owner == group)
/ = '(' + t("layout.owner") + ')'
/ %br
/ = link_to t("layout.projects.add_groups"), '#' #add_collaborators_project_path(@project)
2011-10-30 22:59:03 +00:00
/ .block.notice
/ %h3= t("layout.platforms.current_platform_header")
/ .content
/ %p= link_to @platform.name, platform_path(@platform)
/
/ .block.notice
/ %h3= t("layout.repositories.current_repository_header")
/ .content
/ %p= link_to @repository.name + repository_name_postfix(@platform), platform_repository_path(@platform, @repository)