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

25 lines
1.1 KiB
Plaintext

- title = title_object(@repository)
- set_meta_tags title: title
= render 'submenu'
.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") }