diff --git a/app/assets/stylesheets/base.scss b/app/assets/stylesheets/base.scss index deb61fa2680..02396037cad 100644 --- a/app/assets/stylesheets/base.scss +++ b/app/assets/stylesheets/base.scss @@ -581,6 +581,7 @@ body > header, .menu { margin-bottom: 0; + padding-left: $line-height / 2; } } @@ -3144,6 +3145,10 @@ a { } } +.read-notifications { + margin-top: rem-calc(-12); +} + // 13. Custom // ------------------------------ diff --git a/app/views/mailer/budget_investment_created.html.erb b/app/views/mailer/budget_investment_created.html.erb index 7c0c1c8e664..3741fd7917a 100644 --- a/app/views/mailer/budget_investment_created.html.erb +++ b/app/views/mailer/budget_investment_created.html.erb @@ -5,9 +5,7 @@

- <%= sanitize( - t("mailers.budget_investment_created.intro", author: @investment.author.name) - ) %> + <%= sanitize(t("mailers.budget_investment_created.hi", author: @investment.author.name)) %>

@@ -43,6 +41,6 @@

- <%= t("mailers.budget_investment_created.sincerely") %> + <%= t("mailers.sincerely") %>

diff --git a/app/views/mailer/budget_investment_selected.html.erb b/app/views/mailer/budget_investment_selected.html.erb index 6ac50608134..76c25fb7669 100644 --- a/app/views/mailer/budget_investment_selected.html.erb +++ b/app/views/mailer/budget_investment_selected.html.erb @@ -5,7 +5,7 @@

- <%= t("mailers.budget_investment_selected.hi") %> + <%= sanitize(t("mailers.budget_investment_selected.hi", author: @investment.author.name)) %>

@@ -29,6 +29,6 @@

- <%= t("mailers.budget_investment_selected.sincerely") %> + <%= t("mailers.sincerely") %>

diff --git a/app/views/mailer/budget_investment_unfeasible.html.erb b/app/views/mailer/budget_investment_unfeasible.html.erb index 4448616726c..3384f207313 100644 --- a/app/views/mailer/budget_investment_unfeasible.html.erb +++ b/app/views/mailer/budget_investment_unfeasible.html.erb @@ -5,7 +5,7 @@

- <%= t("mailers.budget_investment_unfeasible.hi") %> + <%= sanitize(t("mailers.budget_investment_unfeasible.hi", author: @investment.author.name)) %>

@@ -29,6 +29,6 @@

- <%= t("mailers.budget_investment_unfeasible.sincerely") %> + <%= t("mailers.sincerely") %>

diff --git a/app/views/mailer/budget_investment_unselected.html.erb b/app/views/mailer/budget_investment_unselected.html.erb index c04da727244..07cd0f2403d 100644 --- a/app/views/mailer/budget_investment_unselected.html.erb +++ b/app/views/mailer/budget_investment_unselected.html.erb @@ -5,7 +5,7 @@

- <%= t("mailers.budget_investment_unselected.hi") %> + <%= sanitize(t("mailers.budget_investment_unselected.hi", author: @investment.author.name)) %>

@@ -13,6 +13,6 @@

- <%= t("mailers.budget_investment_unselected.sincerely") %> + <%= t("mailers.sincerely") %>

diff --git a/app/views/mailer/comment.html.erb b/app/views/mailer/comment.html.erb index 3121e2ce36c..2ffca618871 100644 --- a/app/views/mailer/comment.html.erb +++ b/app/views/mailer/comment.html.erb @@ -31,4 +31,8 @@ attributes: %w[href style] ) %>

+ +

+ <%= t("mailers.sincerely") %> +

diff --git a/app/views/mailer/direct_message_for_receiver.html.erb b/app/views/mailer/direct_message_for_receiver.html.erb index fa26d072757..b4235b27f36 100644 --- a/app/views/mailer/direct_message_for_receiver.html.erb +++ b/app/views/mailer/direct_message_for_receiver.html.erb @@ -3,6 +3,10 @@ <%= @direct_message.title %> +

+ <%= sanitize(t("mailers.direct_message_for_receiver.hi", receiver: @direct_message.receiver.name)) %> +

+
<%= mailer_simple_format(@direct_message.body) %>
@@ -33,4 +37,8 @@ attributes: %w[href style] ) %>

+ +

+ <%= t("mailers.sincerely") %> +

diff --git a/app/views/mailer/direct_message_for_sender.html.erb b/app/views/mailer/direct_message_for_sender.html.erb index f5bdbdaed24..52041901e0c 100644 --- a/app/views/mailer/direct_message_for_sender.html.erb +++ b/app/views/mailer/direct_message_for_sender.html.erb @@ -4,6 +4,10 @@ <%= t("mailers.direct_message_for_sender.title") %> +

+ <%= sanitize(t("mailers.direct_message_for_sender.hi", sender: @direct_message.sender.name)) %> +

+

<%= sanitize(t("mailers.direct_message_for_sender.text", receiver: @direct_message.receiver.name)) %>

@@ -15,4 +19,8 @@
<%= mailer_simple_format(@direct_message.body) %>
+ +

+ <%= t("mailers.sincerely") %> +

diff --git a/app/views/mailer/email_verification.html.erb b/app/views/mailer/email_verification.html.erb index d4305d77e3e..42751ada097 100644 --- a/app/views/mailer/email_verification.html.erb +++ b/app/views/mailer/email_verification.html.erb @@ -4,6 +4,10 @@ <%= t("mailers.email_verification.title") %> +

+ <%= sanitize(t("mailers.email_verification.hi", user: @user.name)) %> +

+

<%= t("mailers.email_verification.text") %>

@@ -33,4 +37,8 @@

<%= t("mailers.email_verification.thanks") %>

+ +

+ <%= t("mailers.sincerely") %> +

diff --git a/app/views/mailer/evaluation_comment.html.erb b/app/views/mailer/evaluation_comment.html.erb index c1ae1b0eb64..ab87f5bc6e7 100644 --- a/app/views/mailer/evaluation_comment.html.erb +++ b/app/views/mailer/evaluation_comment.html.erb @@ -23,4 +23,8 @@
<%= mailer_simple_format(@email.comment.body) %>
+ +

+ <%= t("mailers.sincerely") %> +

diff --git a/app/views/mailer/reply.html.erb b/app/views/mailer/reply.html.erb index 2af83667a72..046ee6f48cf 100644 --- a/app/views/mailer/reply.html.erb +++ b/app/views/mailer/reply.html.erb @@ -31,4 +31,8 @@ attributes: %w[href style] ) %>

+ +

+ <%= t("mailers.sincerely") %> +

diff --git a/app/views/mailer/user_invite.html.erb b/app/views/mailer/user_invite.html.erb index 0b5151fb3a0..0f2feab3653 100644 --- a/app/views/mailer/user_invite.html.erb +++ b/app/views/mailer/user_invite.html.erb @@ -18,4 +18,8 @@

<%= t("mailers.user_invite.thanks") %>

+ +

+ <%= t("mailers.sincerely") %> +

diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 0d9a6758d69..46929223dce 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -3,14 +3,14 @@
-

+

<%= t("notifications.index.title") %>

<%= link_to t("notifications.index.mark_all_as_read"), mark_all_as_read_notifications_path, method: :put, - class: "button hollow float-right-medium" %> + class: "button hollow float-right-medium read-notifications" %>