summaryrefslogtreecommitdiff
path: root/app/views/projects/edit.html.haml
diff options
context:
space:
mode:
authorHannes Rosenögger <123haynes@gmail.com>2015-01-19 21:37:20 +0100
committerHannes Rosenögger <123haynes@gmail.com>2015-01-24 18:51:16 +0100
commit70c44a0da2bdeead90a99fe79e7c047d38b8ca5c (patch)
treed72df8e0b92754d5dd2e629a09d55695808e36d2 /app/views/projects/edit.html.haml
parent42bac7f9f27b0e8fb113e452fc2106882262172d (diff)
downloadgitlab-ce-70c44a0da2bdeead90a99fe79e7c047d38b8ca5c.tar.gz
Fix tests, merge conflicts, some minor issues and make the project avatar feature mergable
Diffstat (limited to 'app/views/projects/edit.html.haml')
-rw-r--r--app/views/projects/edit.html.haml7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml
index fc6499de3e2..28de1a778a7 100644
--- a/app/views/projects/edit.html.haml
+++ b/app/views/projects/edit.html.haml
@@ -87,7 +87,10 @@
.form-group
.col-sm-2
.col-sm-10
- = project_icon(@project.to_param, alt: '', class: 'avatar s160', only_uploaded: true)
+ - if @project.avatar?
+ = project_icon(@project.to_param, alt: '', class: 'avatar s160')
+ - else
+ = project_icon(@project.to_param, alt: '', class: 'avatar s160', only_uploaded: true)
%p.light
- if @project.avatar_in_git
Project avatar in repository: #{ @project.avatar_in_git }
@@ -102,7 +105,7 @@
&nbsp;
%span.file_name.js-avatar-filename File name...
= f.file_field :avatar, class: "js-project-avatar-input hidden"
- .light The maximum file size allowed is 100KB.
+ .light The maximum file size allowed is 200KB.
- if @project.avatar?
%hr
= link_to 'Remove avatar', project_avatar_path(@project), data: { confirm: "Project avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-small remove-avatar"