Adds styles to dashboard mailing views
This commit is contained in:
@@ -2,12 +2,11 @@
|
|||||||
<% if action_name != 'index' %>
|
<% if action_name != 'index' %>
|
||||||
<%= link_to t("dashboard.mailing.mailing_options.preview"),
|
<%= link_to t("dashboard.mailing.mailing_options.preview"),
|
||||||
proposal_dashboard_mailing_index_path(proposal),
|
proposal_dashboard_mailing_index_path(proposal),
|
||||||
class: 'button expanded' %>
|
class: "button expanded" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= link_to t("dashboard.mailing.mailing_options.send", address: current_user.email),
|
<%= link_to t("dashboard.mailing.mailing_options.send", address: current_user.email),
|
||||||
proposal_dashboard_mailing_index_path(proposal),
|
proposal_dashboard_mailing_index_path(proposal),
|
||||||
method: :post,
|
method: :post,
|
||||||
class: 'button expanded' %>
|
class: "button expanded" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +1,38 @@
|
|||||||
<% content_for :action_title, t("dashboard.mailing.index.title") %>
|
<% content_for :action_title, t("dashboard.mailing.index.title") %>
|
||||||
<div class="row">
|
<div class="row expanded">
|
||||||
<div class="small-12 medium-9 column dashboard-mail-preview">
|
<div class="small-12 medium-9 large-7 column dashboard-mail-preview">
|
||||||
<div class="header">
|
<div class="mail-header">
|
||||||
<h1><%= proposal.title %></h1>
|
<h1><%= proposal.title %></h1>
|
||||||
<h2><%= t("dashboard.mailer.forward.subtitle") %></h2>
|
<h2><%= t("dashboard.mailer.forward.subtitle") %></h2>
|
||||||
</div>
|
</div>
|
||||||
<%= image_tag proposal.image.attachment.url(:large), class: 'proposal-image' if proposal.image.present? %>
|
|
||||||
<%= image_tag 'default_mailing.jpg', class: 'proposal-image' unless proposal.image.present? %>
|
<div class="margin-bottom">
|
||||||
|
<% if proposal.image.present? %>
|
||||||
|
<%= image_tag proposal.image.attachment.url(:large) %>
|
||||||
|
<% else %>
|
||||||
|
<%= image_tag "default_mailing.jpg" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="mail-body">
|
<div class="mail-body">
|
||||||
<%== t("dashboard.mailer.forward.introduction") %>
|
<%== t("dashboard.mailer.forward.introduction") %>
|
||||||
<%= link_to t("dashboard.mailer.forward.support_it"), proposal_url(@proposal), class: 'support-link' %>
|
|
||||||
|
<div class="text-center">
|
||||||
|
<%= link_to t("dashboard.mailer.forward.support_it"),
|
||||||
|
proposal_url(@proposal), class: "button large" %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%== t("dashboard.mailer.forward.share_info") %>
|
<%== t("dashboard.mailer.forward.share_info") %>
|
||||||
|
|
||||||
<p class="share-title"><%= t("dashboard.mailer.forward.share_in") %></p>
|
<div class="text-center">
|
||||||
<%= render partial: 'shared/social_share', locals: {
|
<h3><%= t("dashboard.mailer.forward.share_in") %></h3>
|
||||||
title: @proposal.title,
|
<%= render partial: 'shared/social_share', locals: {
|
||||||
url: proposal_url(@proposal),
|
title: @proposal.title,
|
||||||
description: @proposal.summary
|
url: proposal_url(@proposal),
|
||||||
} %>
|
description: @proposal.summary } %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= render 'mailing_options' %>
|
<%= render 'mailing_options' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<% content_for :action_title, t("dashboard.mailing.new.title") %>
|
<% content_for :action_title, t("dashboard.mailing.new.title") %>
|
||||||
<div class="row">
|
<div class="row expanded">
|
||||||
<div class="small-12 medium-9 column">
|
<div class="small-12 medium-9 column">
|
||||||
<%== Setting['proposals.email_description'] %>
|
<%== Setting['proposals.email_description'] %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user