Skip to content

Commit

Permalink
Use custom CSS on newsletter layout too
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Oct 28, 2024
1 parent cbe4cfb commit 3bda356
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions app/views/layouts/decidim/newsletter_base.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<%= stylesheet_pack_tag "decidim_barcelona_email" %>
</head>

<body <%= @preview ? "class=preview" : nil %>>
<!-- <style> -->
<table class="body">
<% if content_for?(:see_on_website) %>
<table class="container">
<th class="small-12 first columns headnote float-right">
<%= yield(:see_on_website) %>
</th>
</table>
<% end %>
<tr>
<td class="float-center" align="center" valign="top">
<center>
<%= yield %>
<% if content_for?(:note) or content_for?(:unsubscribe) %>
<table class="container">
<tr>
<td>
<table class="row">
<th class="expander"></th>
<th class="small-12 first last columns footnote">
<center>
<%= yield(:note) if content_for?(:note) %>
<%= yield(:unsubscribe) if content_for?(:unsubscribe) %>
</center>
</th>
</table>
</td>
</tr>
</table>
<% end %>
</center>
</td>
</tr>
</table>
</body>
</html>
1 change: 1 addition & 0 deletions spec/lib/overrides_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"/app/permissions/decidim/permissions.rb" => "36a9c31bbf17685e80acff49f6e9b0ca", # ephemeral participation overrides
"/app/views/decidim/shared/_login_modal.html.erb" => "a29d4fcebe8c689044e3c15f6144f3d1", # ephemeral participation overrides
"/app/views/layouts/decidim/mailer.html.erb" => "4e308c82acd8b1dac405ff71963d8743",
"/app/views/layouts/decidim/newsletter_base.html.erb" => "44095c3df64a4fea34f46b61bb840b31",
"/app/views/layouts/decidim/footer/_main_links.html.erb" => "e35f39aa247534377219915b1632e354", # ephemeral participation overrides
"/app/views/layouts/decidim/header/_main_links_dropdown.html.erb" => "a369664c2bb36cbd2b10d90d9a7469cf", # ephemeral participation overrides
"/app/cells/decidim/content_blocks/last_activity_cell.rb" => "22355fa93da7c8776e7e7f56a5b207f7",
Expand Down

0 comments on commit 3bda356

Please sign in to comment.