@@ -24,7 +24,10 @@ table.button table td {
2424 < tr >
2525 < th >
2626 < center >
27- <%= render partial : "layouts/decidim/mailer_logo.html" , locals : { organization : organization } %>
27+ <%=
28+ self . class . view_paths = [ Rails . root . join ( 'app/views' ) , *self . class . view_paths ]
29+ render partial : "layouts/decidim/mailer_logo.html" , locals : { organization : organization }
30+ %>
2831 </ center >
2932 </ th >
3033 </ tr >
@@ -34,9 +37,10 @@ table.button table td {
3437 < table >
3538 < tr >
3639 < th >
37- <% if organization . official_img_header . attached? %>
40+ <%# if organization.official_img_header.attached? %>
41+ <% if organization . highlighted_content_banner_image . attached? %>
3842 <%= link_to organization . official_url do %>
39- <%= image_tag organization . attached_uploader ( :official_img_header ) . url ( host : organization . host ) , alt : "" , style : "max-height: 50px" , class : "float-right" %>
43+ <%= image_tag organization . attached_uploader ( :highlighted_content_banner_image ) . url , alt : "" , style : "max-height: 50px" , class : "float-right" %>
4044 <% end %>
4145 <% end %>
4246 </ th >
@@ -119,9 +123,9 @@ table.button table td {
119123 < th class ="small-12 first columns cityhall-bar ">
120124 < div class ="decidim-logo " style ="float: right; text-align: right; padding-right: 16px ">
121125 <% if @custom_url_for_mail_root . present? %>
122- <%= link_to organization . name . html_safe , @custom_url_for_mail_root %>
126+ <%= link_to translated_attribute ( organization . name ) . html_safe , @custom_url_for_mail_root %>
123127 <% else %>
124- <%= link_to organization . name . html_safe , decidim . root_url ( host : organization . host ) %>
128+ <%= link_to translated_attribute ( organization . name ) . html_safe , decidim . root_url ( host : organization . host ) %>
125129 <% end %>
126130 </ div >
127131 </ th >
0 commit comments