37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
- title = title_object(@repository)
|
|
- set_meta_tags title: title
|
|
- set_meta_tags og: { title: title,
|
|
description: truncate(@repository.description, length: 255) }
|
|
- set_meta_tags twitter: { title: title,
|
|
description: truncate(@repository.description, length: 200) }
|
|
= render 'submenu'
|
|
|
|
.container.col-md-offset-2.col-md-8
|
|
.row
|
|
h3
|
|
= t("layout.repositories.about")
|
|
|
|
|
i
|
|
= @repository.name
|
|
|
|
p= @repository.description
|
|
.row
|
|
- if policy(@repository).update?
|
|
a.btn.btn-primary href=edit_platform_repository_path(@platform, @repository)
|
|
= t("layout.edit")
|
|
|
|
|
- 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") }
|
|
.row
|
|
hr
|
|
h3= t("layout.projects.list_header")
|
|
- if policy(@repository).update?
|
|
a.btn.btn-primary href=add_project_platform_repository_path(@platform, @repository)
|
|
= t('layout.projects.add')
|
|
|
|
|
a.btn.btn-primary href=remove_project_platform_repository_path(@platform, @repository)
|
|
= t('layout.repositories.mass_delete')
|
|
.row
|
|
hr
|
|
= render 'proj_list'
|