2020-11-19 01:09:07 -05:00
|
|
|
- page_title _('No repository')
|
|
|
|
- @skip_current_level_breadcrumb = true
|
2018-03-23 11:00:27 -04:00
|
|
|
|
2020-10-29 11:09:12 -04: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 17:49:51 -05:00
|
|
|
|
|
|
|
%p.slead
|
2017-06-07 16:13:44 -04:00
|
|
|
#{ _('The repository for this project does not exist.') }
|
2014-11-29 17:49:51 -05:00
|
|
|
%br
|
2017-06-07 16:13:44 -04:00
|
|
|
#{ _('This means you can not push code until you create an empty repository or import existing one.') }
|
2014-11-29 17:49:51 -05:00
|
|
|
%hr
|
|
|
|
|
|
|
|
.no-repo-actions
|
2021-02-10 07:09:45 -05:00
|
|
|
= link_to project_repository_path(@project), method: :post, class: 'btn gl-button btn-confirm' do
|
2018-03-27 07:43:34 -04:00
|
|
|
#{ _('Create empty repository') }
|
2014-11-29 17:49:51 -05:00
|
|
|
|
2020-07-17 05:09:43 -04:00
|
|
|
%strong.gl-ml-3.gl-mr-3 or
|
2014-11-29 17:49:51 -05:00
|
|
|
|
2021-02-10 07:09:45 -05:00
|
|
|
= link_to new_project_import_path(@project), class: 'btn gl-button btn-default' do
|
2017-06-07 16:13:44 -04:00
|
|
|
#{ _('Import repository') }
|
2014-11-29 17:49:51 -05:00
|
|
|
|
|
|
|
- if can? current_user, :remove_project, @project
|
|
|
|
.prepend-top-20
|
2021-02-10 07:09:45 -05:00
|
|
|
= link_to _('Delete project'), project_path(@project), data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn gl-button btn-danger float-right"
|