about summary refs log tree commit diff
path: root/app/views/settings/profiles/show.html.haml
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-04-20 18:25:18 +0200
committerGitHub <noreply@github.com>2020-04-20 18:25:18 +0200
commit60f8a63a76f7c866b5338c33a8b897ba022368ca (patch)
treeb816c0e92ade09712e9bcce29716e762f38769c1 /app/views/settings/profiles/show.html.haml
parentd5530827c984238f93100ee737ed209d61e316c0 (diff)
parent221ea4787fe0caf0f8a3238ab95e97aaac8fe360 (diff)
Merge pull request #1320 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/views/settings/profiles/show.html.haml')
-rw-r--r--app/views/settings/profiles/show.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/settings/profiles/show.html.haml b/app/views/settings/profiles/show.html.haml
index 7413be1db..841c01fd7 100644
--- a/app/views/settings/profiles/show.html.haml
+++ b/app/views/settings/profiles/show.html.haml
@@ -17,9 +17,9 @@
       = render 'application/card', account: @account
 
     .fields-row__column.fields-group.fields-row__column-6
-      = f.input :header, wrapper: :with_label, input_html: { accept: AccountHeader::IMAGE_MIME_TYPES.join(',') }, hint: t('simple_form.hints.defaults.header', dimensions: '1500x500', size: number_to_human_size(AccountHeader::LIMIT))
+      = f.input :header, wrapper: :with_label, input_html: { accept: AccountHeader::IMAGE_MIME_TYPES.join(',') }, hint: picture_hint(t('simple_form.hints.defaults.header', dimensions: '1500x500', size: number_to_human_size(AccountHeader::LIMIT)), @account.header)
 
-      = f.input :avatar, wrapper: :with_label, input_html: { accept: AccountAvatar::IMAGE_MIME_TYPES.join(',') }, hint: t('simple_form.hints.defaults.avatar', dimensions: '400x400', size: number_to_human_size(AccountAvatar::LIMIT))
+      = f.input :avatar, wrapper: :with_label, input_html: { accept: AccountAvatar::IMAGE_MIME_TYPES.join(',') }, hint: picture_hint(t('simple_form.hints.defaults.avatar', dimensions: '400x400', size: number_to_human_size(AccountAvatar::LIMIT)), @account.avatar)
 
   %hr.spacer/