Separate web page for projects without repository
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
674cbe939c
commit
a8df4ee9e2
1 changed files with 22 additions and 0 deletions
22
app/views/projects/no_repo.html.haml
Normal file
22
app/views/projects/no_repo.html.haml
Normal file
|
@ -0,0 +1,22 @@
|
|||
%h2
|
||||
%i.fa.fa-warning
|
||||
No repository
|
||||
|
||||
%p.slead
|
||||
The repository for this project does not exist.
|
||||
%br
|
||||
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
|
||||
Create empty bare repository
|
||||
|
||||
%strong.prepend-left-10.append-right-10 or
|
||||
|
||||
= link_to new_project_import_path(@project), class: 'btn' do
|
||||
Import repository
|
||||
|
||||
- if can? current_user, :remove_project, @project
|
||||
.prepend-top-20
|
||||
= link_to 'Remove project', @project, data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-remove pull-right"
|
Loading…
Reference in a new issue