<%= t("mailers.proposal_notification_digest.title", org_name: Setting["org_name"]) %>

<%= t("mailers.proposal_notification_digest.info", org_name: Setting["org_name"]) %>

<% @notifications.each do |notification| %>

<%= link_to notification.notifiable.title, proposal_url(notification.notifiable.proposal, anchor: "tab-notifications"), style: css_for_mailer_link %>

<%= notification.notifiable.proposal.title %> •  <%= notification.notifiable.proposal.created_at.to_date %> •  <%= notification.notifiable.proposal.author.name %>

<%= notification.notifiable.body %>

<%= link_to proposal_url(notification.notifiable.proposal, anchor: "social-share"), style: css_for_mailer_button do %> <%= t("mailers.proposal_notification_digest.share") %> <% end %> <%= link_to proposal_url(notification.notifiable.proposal, anchor: "comments"), style: css_for_mailer_button do %> <%= t("mailers.proposal_notification_digest.comment") %> <% end %>

<%= sanitize( link_to( t("mailers.proposal_notification_digest.unfollow"), proposal_url(notification.notifiable.proposal), style: css_for_mailer_link ), attributes: %w[href style] ) %>

<% end %>

<%= sanitize( t( "mailers.proposal_notification_digest.unsubscribe_text", notifications: link_to( t("mailers.config.notifications_link"), edit_subscriptions_url(token: @token), style: css_for_mailer_link ) ), attributes: %w[href style] ) %>