Project.repository should never be nil so you can call repository.exists? or repository.empty?
Also specify separate project factory for project with filled repo
This commit is contained in:
parent
49b024f5f5
commit
541d899410
13 changed files with 51 additions and 54 deletions
|
@ -4,7 +4,7 @@
|
|||
.form-horizontal= render "shared/clone_panel"
|
||||
.span4.pull-right
|
||||
.pull-right
|
||||
- unless @project.empty_repo?
|
||||
- if @project.empty_repo?
|
||||
- if can? current_user, :download_code, @project
|
||||
= link_to archive_project_repository_path(@project), class: "btn-small btn grouped" do
|
||||
%i.icon-download-alt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue