BigW Consortium Gitlab

no_repo.html.haml 760 Bytes
Newer Older
1 2
%h2
  %i.fa.fa-warning
3
  #{ _('No repository') }
4 5

%p.slead
6
  #{ _('The repository for this project does not exist.') }
7
  %br
8
  #{ _('This means you can not push code until you create an empty repository or import existing one.') }
9 10 11
%hr

.no-repo-actions
12
  = link_to project_repository_path(@project), method: :post, class: 'btn btn-primary' do
13
    #{ _('Create empty bare repository') }
14 15 16

  %strong.prepend-left-10.append-right-10 or

17
  = link_to new_project_import_path(@project), class: 'btn' do
18
    #{ _('Import repository') }
19 20 21

- if can? current_user, :remove_project, @project
  .prepend-top-20
22
    = link_to _('Remove project'), project_path(@project), data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-remove pull-right"