diff options
author | Johann Pardanaud <pardanaud.j@gmail.com> | 2016-02-17 18:35:16 +0100 |
---|---|---|
committer | Johann Pardanaud <pardanaud.j@gmail.com> | 2016-02-17 18:35:16 +0100 |
commit | bf6aa15512cc6d31be320204fbc3c115bfd11b1b (patch) | |
tree | caa9b9df87b31afc6ff144efac7045a6e4dd7386 /app/views/profiles/show.html.haml | |
parent | fb6d7df347016726d84155d18b6d6f406d0121e9 (diff) | |
download | gitlab-ce-bf6aa15512cc6d31be320204fbc3c115bfd11b1b.tar.gz |
Improve avatar cropping internals, based on suggestions made by @rspeicher on !2773
Diffstat (limited to 'app/views/profiles/show.html.haml')
-rw-r--r-- | app/views/profiles/show.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml index 6686c037b60..04f738c2759 100644 --- a/app/views/profiles/show.html.haml +++ b/app/views/profiles/show.html.haml @@ -88,7 +88,7 @@ %i.fa.fa-paperclip %span Choose File ... - %span.file_name.js-avatar-filename{:'data-label' => 'File name...'} File name... + %span.file_name.js-avatar-filename File name... = f.file_field :avatar, class: "js-user-avatar-input hidden" = f.hidden_field :avatar_crop_x = f.hidden_field :avatar_crop_y @@ -107,7 +107,7 @@ .modal-dialog .modal-content .modal-header - %button.close{:type => "button", :'data-dismiss' => "modal"} + %button.close{type: 'button', data: {dismiss: 'modal'}} %span × %h4.modal-title |