]> cat aescling's git repositories - mastodon.git/commitdiff
Change mailer image url (#6279)
authormayaeh <mayaeh@marimo-net.org>
Wed, 17 Jan 2018 11:41:24 +0000 (20:41 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 17 Jan 2018 11:41:24 +0000 (12:41 +0100)
* Change image URL in mailer to full path

* Add application_mailer.view_profile localization.

app/views/notification_mailer/favourite.html.haml
app/views/notification_mailer/follow.html.haml
app/views/notification_mailer/follow_request.html.haml
app/views/notification_mailer/mention.html.haml
app/views/notification_mailer/reblog.html.haml
config/locales/en.yml

index 6cbc552faa8c00db738834c27bc7303ea8c2f61d..f26b08b18e8fb54cb1cb2204e5fc5d449cfd76aa 100644 (file)
@@ -17,7 +17,7 @@
                                 %tbody
                                   %tr
                                     %td
-                                      = image_tag asset_pack_path('icon_grade.svg')
+                                      = image_tag full_pack_url('icon_grade.svg'), alt:''
 
                               %h1= t 'notification_mailer.favourite.title'
                               %p.lead= t('notification_mailer.favourite.body', name: @account.acct)
index d1ae18ea96e1fb41213b62865cd5e1d5663539eb..1290e2bc4140d996e777c9d7e93e51246a42cebb 100644 (file)
@@ -17,7 +17,7 @@
                                 %tbody
                                   %tr
                                     %td
-                                      = image_tag asset_pack_path('icon_person_add.svg')
+                                      = image_tag full_pack_url('icon_person_add.svg'), alt: ''
 
                               %h1= t 'notification_mailer.follow.title'
                               %p.lead= t('notification_mailer.follow.body', name: @account.acct)
index ce5f578b1183b515e1bf3337c88e26ddb9903f4b..41efeafaf6a56a1af4d9fcb1747b527978acdd5b 100644 (file)
@@ -17,7 +17,7 @@
                                 %tbody
                                   %tr
                                     %td
-                                      = image_tag asset_pack_path('icon_person_add.svg')
+                                      = image_tag full_pack_url('icon_person_add.svg'), alt: ''
 
                               %h1= t 'notification_mailer.follow_request.title'
                               %p.lead= t('notification_mailer.follow_request.body', name: @account.acct)
index 9ecbe8550d61665996948b00fa8be33cfefb1b70..619c580ce74c0410922c1bf063468e39df004b2f 100644 (file)
@@ -17,7 +17,7 @@
                                 %tbody
                                   %tr
                                     %td
-                                      = image_tag asset_pack_path('icon_reply.svg')
+                                      = image_tag full_pack_url('icon_reply.svg'), alt: ''
 
                               %h1= t 'notification_mailer.mention.title'
                               %p.lead= t('notification_mailer.mention.body', name: @status.account.acct)
index 895e903ea59ca901c2247bfb192401a53b046b9c..61c6ee6be8c6a18ea122730e5acf89a7e4ece972 100644 (file)
@@ -17,7 +17,7 @@
                                 %tbody
                                   %tr
                                     %td
-                                      = image_tag asset_pack_path('icon_cached.svg')
+                                      = image_tag full_pack_url('icon_cached.svg'), alt: ''
 
                               %h1= t 'notification_mailer.reblog.title'
                               %p.lead= t('notification_mailer.reblog.body', name: @account.acct)
index 7b9a1f15d2e38a75f2c7b9a05a287c11d6d1b510..f23f35a8975c745ca114c4027547f9b9dce6da77 100644 (file)
@@ -343,6 +343,7 @@ en:
     settings: 'Change e-mail preferences: %{link}'
     signature: Mastodon notifications from %{instance}
     view: 'View:'
+    view_profile: View Profile
     view_status: View status
   applications:
     created: Application successfully created