rosa-build/app/views/platforms/repositories/show.html.slim

25 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2015-02-27 22:33:13 +00:00
- title = title_object(@repository)
- set_meta_tags title: title
2016-05-22 13:25:00 +01:00
= render 'submenu'
2016-05-22 13:25:00 +01:00
.row
.col-md-9
= render 'proj_list', repository: @repository
.col-md-3
rd-widget
rd-widget-header title=(t("layout.repositories.about") + " " + @repository.name)
rd-widget-body
p= @repository.description
- if policy(@repository).update? || policy(@repository).destroy? || policy(@repository).remove_project? || policy(@repository).add_project?
rd-widget-footer
- if policy(@repository).update?
a.btn.btn-primary href=edit_platform_repository_path(@platform, @repository)
= t("layout.edit")
|  
- if policy(@repository).manage_projects?
a.btn.btn-primary href=manage_projects_platform_repository_path(@platform, @repository)
= t('layout.projects.manage_projects')
|  
- if policy(@repository).destroy?
= link_to t('layout.delete'), platform_repository_path(@platform, @repository), method: 'delete', class: 'btn btn-danger', data: { confirm: t("layout.repositories.confirm_delete") }