gitlab-org--gitlab-foss/app/views/projects/no_repo.html.haml

26 lines
812 B
Text
Raw Normal View History

- breadcrumb_title _("Details")
- page_title _("Details")
2018-03-23 11:00:27 -04:00
%h2
%i.fa.fa-warning
2017-06-07 16:13:44 -04:00
#{ _('No repository') }
%p.slead
2017-06-07 16:13:44 -04:00
#{ _('The repository for this project does not exist.') }
%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.') }
%hr
.no-repo-actions
= link_to project_repository_path(@project), method: :post, class: 'btn btn-primary' do
2018-03-27 07:43:34 -04:00
#{ _('Create empty repository') }
%strong.gl-ml-3.gl-mr-3 or
= link_to new_project_import_path(@project), class: 'btn' do
2017-06-07 16:13:44 -04:00
#{ _('Import repository') }
- if can? current_user, :remove_project, @project
.prepend-top-20
= link_to _('Delete project'), project_path(@project), data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-inverted btn-remove float-right"