OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
* Reduce width of the footer element b letting the text wrap. Thus iOS doesn't zoom out of the content in order to make everything visible at once * Some smaller design changes
Henriette Dargeca9ca073ed18
diff --git a/app/helpers/mail_notification_helper.rb b/app/helpers/mail_notification_helper.rbindex f032d466674..8d5b37a7c8d 100644--- a/app/helpers/mail_notification_helper.rb+++ b/app/helpers/mail_notification_helper.rb@@ -75,7 +75,8 @@ module MailNotificationHelperdef placeholder_table_styles(options = {})default_options = {- style: 'table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:Helvetica;' << (options[:style].present? ? options.delete(:style) : ''),+ style: 'table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:Helvetica;' <<+ (options[:style].present? ? options.delete(:style) : ''),cellspacing: "0",cellpadding: "0"}diff --git a/app/views/digest_mailer/work_packages.html.erb b/app/views/digest_mailer/work_packages.html.erbindex e2186c22906..cc00d112332 100644--- a/app/views/digest_mailer/work_packages.html.erb+++ b/app/views/digest_mailer/work_packages.html.erb@@ -1,3 +1,9 @@+<table <%= placeholder_table_styles %>>+ <tr>+ <%= placeholder_cell('20px') %>+ </tr>+</table>+<table <%= placeholder_table_styles(width:'100%',style: 'width:100%;max-width:700px;margin-left:auto;margin-right:auto') %>><tr><td>@@ -41,32 +47,34 @@<table <%= placeholder_table_styles(width:'100%',style: 'width:100%;') %>><tr><td>- <table>- <tr>- <td>- <span style="font-size:14px;">- <% number_of_overflowing_work_packages = @aggregated_notifications.length - DigestMailer::MAX_SHOWN_WORK_PACKAGES %>- <% count = number_of_overflowing_work_packages === 1 ? 'one' : 'other' %>- <%= I18n.t(:"mail.digests.work_packages.more_to_see.#{count}", count: number_of_overflowing_work_packages) %>- </span>- </td>- <%= placeholder_cell('10px', true) %>- <td>- <a- target="_blank"- style="background-color: #D1E5F5;- padding: 8px 12px;- color: #1A67A3;- border: 1px solid #1A67A3;- border-radius: 16px;- text-decoration: none;- font-size:14px;- white-space: nowrap;">- <%= I18n.t(:'mail.digests.work_packages.see_all') %>- </a>- </td>- </tr>- </table>+ <% if @aggregated_notifications.length > DigestMailer::MAX_SHOWN_WORK_PACKAGES %>+ <table>+ <tr>+ <td>+ <span style="font-size:14px;">+ <% number_of_overflowing_work_packages = @aggregated_notifications.length - DigestMailer::MAX_SHOWN_WORK_PACKAGES %>+ <% count = number_of_overflowing_work_packages === 1 ? 'one' : 'other' %>+ <%= I18n.t(:"mail.digests.work_packages.more_to_see.#{count}", count: number_of_overflowing_work_packages) %>+ </span>+ </td>+ <%= placeholder_cell('10px', true) %>+ <td>+ <a href="<%= notifications_center_url %>"+ target="_blank"+ style="background-color: #D1E5F5;+ padding: 8px 12px;+ color: #1A67A3;+ border: 1px solid #1A67A3;+ border-radius: 16px;+ text-decoration: none;+ font-size:14px;+ white-space: nowrap;">+ <%= I18n.t(:'mail.digests.work_packages.see_all') %>+ </a>+ </td>+ </tr>+ </table>+ <% end %></td></tr></table>diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erbindex 20ac8ad8361..7fad74a781d 100644--- a/app/views/layouts/mailer.html.erb+++ b/app/views/layouts/mailer.html.erb@@ -71,6 +71,9 @@ See COPYRIGHT and LICENSE files for more details..footer {font-size: 0.8em;font-style: italic;+ max-width: 700px;+ margin-left: auto;+ margin-right: auto;}a.user-mention:before {content: '@';@@ -82,11 +85,23 @@ See COPYRIGHT and LICENSE files for more details.<meta name="viewport" content="initial-scale=1.0"></head><body style="padding: 0">- <span class="header"><%= OpenProject::TextFormatting::Renderer.format_text(Setting.localized_emails_header) %></span>+ <table class="header">+ <tr>+ <td>+ <%= OpenProject::TextFormatting::Renderer.format_text(Setting.localized_emails_header) %>+ </td>+ </tr>+ </table><%= call_hook(:view_layouts_mailer_html_before_content, self.assigns) %><%= yield %><%= call_hook(:view_layouts_mailer_html_after_content, self.assigns) %><hr />- <span class="footer"><%= OpenProject::TextFormatting::Renderer.format_text(Setting.localized_emails_footer) %></span>+ <table class="footer">+ <tr>+ <td>+ <%= OpenProject::TextFormatting::Renderer.format_text(Setting.localized_emails_footer) %>+ </td>+ </tr>+ </table></body></html>diff --git a/app/views/mailer/_notification_mailer_header.html.erb b/app/views/mailer/_notification_mailer_header.html.erbindex 9bb952ed7cc..637c3aefd69 100644--- a/app/views/mailer/_notification_mailer_header.html.erb+++ b/app/views/mailer/_notification_mailer_header.html.erb@@ -41,10 +41,10 @@</table></td><%= placeholder_cell('16px', true) %>- <td>+ <td style="vertical-align: top;"><table <%= placeholder_table_styles %>><tr>- <td style="width: 96px; height: 96px; vertical-align: top;">+ <td style="width: 96px; height: 96px;"><%= logo_tag({ alt: "#{Setting.app_title} #{I18n.t(:'mail.logo_alt_text')}", style: "height: 96px;max-width: 240px;"}) %></td></tr>diff --git a/app/views/mailer/_notification_row.html.erb b/app/views/mailer/_notification_row.html.erbindex c39849d3897..80c9fa46320 100644--- a/app/views/mailer/_notification_row.html.erb+++ b/app/views/mailer/_notification_row.html.erb@@ -57,7 +57,7 @@</tr><tr><%= placeholder_cell('12px', true) %>- <%= placeholder_cell('12px') %>+ <%= placeholder_cell('16px') %><%= placeholder_cell('12px', true) %></tr><tr>