2018-03-29 12:06:49 +00:00
|
|
|
- breadcrumb_title _("Details")
|
2020-06-22 12:08:47 +00:00
|
|
|
- page_title _("Details")
|
2018-03-23 15:00:27 +00:00
|
|
|
|
2020-10-29 15:09:12 +00:00
|
|
|
%h2.gl-display-flex
|
|
|
|
.gl-display-flex.gl-align-items-center.gl-justify-content-center
|
|
|
|
= sprite_icon('warning-solid', size: 24, css_class: 'gl-mr-2')
|
|
|
|
= _('No repository')
|
2014-11-29 22:49:51 +00:00
|
|
|
|
|
|
|
%p.slead
|
2017-06-07 20:13:44 +00:00
|
|
|
#{ _('The repository for this project does not exist.') }
|
2014-11-29 22:49:51 +00:00
|
|
|
%br
|
2017-06-07 20:13:44 +00:00
|
|
|
#{ _('This means you can not push code until you create an empty repository or import existing one.') }
|
2014-11-29 22:49:51 +00:00
|
|
|
%hr
|
|
|
|
|
|
|
|
.no-repo-actions
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to project_repository_path(@project), method: :post, class: 'btn btn-primary' do
|
2018-03-27 11:43:34 +00:00
|
|
|
#{ _('Create empty repository') }
|
2014-11-29 22:49:51 +00:00
|
|
|
|
2020-07-17 09:09:43 +00:00
|
|
|
%strong.gl-ml-3.gl-mr-3 or
|
2014-11-29 22:49:51 +00:00
|
|
|
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to new_project_import_path(@project), class: 'btn' do
|
2017-06-07 20:13:44 +00:00
|
|
|
#{ _('Import repository') }
|
2014-11-29 22:49:51 +00:00
|
|
|
|
|
|
|
- if can? current_user, :remove_project, @project
|
|
|
|
.prepend-top-20
|
2020-10-09 12:09:07 +00:00
|
|
|
= link_to _('Delete project'), project_path(@project), data: { confirm: remove_project_message(@project)}, method: :delete, class: "gl-button btn btn-danger btn-danger-secondary float-right"
|