2015-02-27 22:33:13 +00:00
|
|
|
- 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) }
|
2014-10-28 23:04:45 +00:00
|
|
|
= render 'submenu'
|
|
|
|
|
2014-10-29 21:18:49 +00:00
|
|
|
.container.col-md-offset-2.col-md-8
|
2014-10-28 23:04:45 +00:00
|
|
|
.row
|
|
|
|
h3
|
|
|
|
= t("layout.repositories.about")
|
|
|
|
|
|
|
|
|
i
|
|
|
|
= @repository.name
|
|
|
|
|
|
|
|
p= @repository.description
|
|
|
|
.row
|
2015-03-14 22:10:04 +00:00
|
|
|
- if policy(@repository).update?
|
2014-10-28 23:04:45 +00:00
|
|
|
a.btn.btn-primary href=edit_platform_repository_path(@platform, @repository)
|
|
|
|
= t("layout.edit")
|
|
|
|
|
|
2015-03-14 22:10:04 +00:00
|
|
|
- if policy(@repository).destroy?
|
2014-10-28 23:04:45 +00:00
|
|
|
= 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")
|
2015-03-18 22:02:38 +00:00
|
|
|
- if policy(@repository).add_project?
|
2014-10-28 23:04:45 +00:00
|
|
|
a.btn.btn-primary href=add_project_platform_repository_path(@platform, @repository)
|
|
|
|
= t('layout.projects.add')
|
|
|
|
|
|
2015-03-18 22:02:38 +00:00
|
|
|
- if policy(@repository).remove_project?
|
2014-10-28 23:04:45 +00:00
|
|
|
a.btn.btn-primary href=remove_project_platform_repository_path(@platform, @repository)
|
|
|
|
= t('layout.repositories.mass_delete')
|
|
|
|
.row
|
|
|
|
hr
|
|
|
|
= render 'proj_list'
|