Commit b2df61d85ab295a9ba4585f667537a9afc3efc6a
1 parent
9902f1af
Exists in
master
and in
4 other branches
Fix 500 error on admin project if empty
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
app/roles/repository.rb
app/views/admin/projects/show.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | %i.icon-edit | 5 | %i.icon-edit |
6 | Edit | 6 | Edit |
7 | 7 | ||
8 | -- if !@admin_project.has_post_receive_file? && @admin_project.commit | 8 | +- if !@admin_project.has_post_receive_file? && @admin_project.has_commits? |
9 | %br | 9 | %br |
10 | .alert.alert-error | 10 | .alert.alert-error |
11 | %span | 11 | %span |