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

41 lines
1.3 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 current_user.can_perform? 'users', 'show'
= link_to user.name, user_path(user)
- else
= user.name
- if (@project.owner == user)
= '(' + t("layout.owner") + ')'
%br
2011-10-31 21:55:56 +00:00
- if current_user.can_perform? 'collaborators', 'edit', @project
2011-10-30 22:59:03 +00:00
= link_to t("layout.projects.edit_collaborators"), edit_project_collaborators_path(@project)
%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)
/ .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)