2014-01-21 04:51:49 +00:00
|
|
|
-set_meta_tags title: title_object(@repository)
|
2012-05-02 10:18:07 +01:00
|
|
|
= render 'submenu'
|
|
|
|
= render 'sidebar'
|
2012-03-13 15:05:33 +00:00
|
|
|
|
2012-09-07 18:59:34 +01:00
|
|
|
%h3 #{t("layout.repositories.about")} #{@repository.name}
|
2012-03-13 15:05:33 +00:00
|
|
|
|
2012-04-02 16:43:59 +01:00
|
|
|
%p= @repository.description
|
2012-03-13 15:05:33 +00:00
|
|
|
|
2012-09-07 18:59:34 +01:00
|
|
|
.buttons_block
|
|
|
|
- if can? :update, @repository
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to image_tag("code.png", alt: t("layout.edit")) + " " + t("layout.edit"), edit_platform_repository_path(@platform, @repository), class: "button"
|
2012-09-07 18:59:34 +01:00
|
|
|
- if can? :destroy, @repository
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to image_tag("x.png", alt: t("layout.delete")) + " " + t("layout.delete"), platform_repository_path(@platform, @repository), method: "delete", class: "button", confirm: t("layout.repositories.confirm_delete")
|
2012-03-13 15:05:33 +00:00
|
|
|
%br
|
|
|
|
%br
|
|
|
|
%h3.fix= t("layout.projects.list_header")
|
2012-03-15 22:56:12 +00:00
|
|
|
- if can? :add_project, @repository
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to t("layout.projects.add"), add_project_platform_repository_path(@platform, @repository), class: 'button'
|
2013-11-12 12:04:40 +00:00
|
|
|
- if can? :remove_project, @repository
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to t("layout.repositories.mass_delete"), remove_project_platform_repository_path(@platform, @repository), class: 'button'
|
2012-03-13 15:05:33 +00:00
|
|
|
|
2012-06-20 14:21:32 +01:00
|
|
|
= render 'proj_list'
|