Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-21 01:29:49 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-21 01:57:46 +0400
commit01db264ffcaaa5579c63b1d33f97d446cc726c3e (patch)
tree945bd427ec007ccab767e1a135154c9ae4a6570c /app/views/admin/groups
parent72abe9f679043a1ac566f60109b21cadace204d7 (diff)
Factor choose group avatar button
Diffstat (limited to 'app/views/admin/groups')
-rw-r--r--app/views/admin/groups/_form.html.haml8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/admin/groups/_form.html.haml b/app/views/admin/groups/_form.html.haml
index c56863ce274..37ce68adc3a 100644
--- a/app/views/admin/groups/_form.html.haml
+++ b/app/views/admin/groups/_form.html.haml
@@ -16,13 +16,7 @@
.form-group.group-description-holder
= f.label :avatar, "Group avatar", class: 'control-label'
.col-sm-10
- %a.choose-btn.btn.btn-small.js-choose-group-avatar-button
- %i.fa.fa-paperclip
- %span Choose File ...
- &nbsp;
- %span.file_name.js-avatar-filename File name...
- = f.file_field :avatar, class: "js-group-avatar-input hidden"
- .light The maximum file size allowed is 100KB.
+ = render 'shared/choose_group_avatar_button', f: f
- if @group.new_record?
.form-group