Feature #20641 » email_css_improvement.diff
| app/views/layouts/mailer.html.erb (working copy) | ||
|---|---|---|
|
font-family: Verdana, sans-serif;
|
||
|
font-size: 0.8em;
|
||
|
color:#484848;
|
||
|
background: #f6f6f6;
|
||
|
padding: 2em;
|
||
|
}
|
||
|
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
|
||
|
h1 { font-size: 1.2em; }
|
||
| ... | ... | |
|
hr {
|
||
|
width: 100%;
|
||
|
height: 1px;
|
||
|
margin: 2em 0;
|
||
|
background: #ccc;
|
||
|
border: 0;
|
||
|
}
|
||
| ... | ... | |
|
font-size: 0.8em;
|
||
|
font-style: italic;
|
||
|
}
|
||
|
#content {
|
||
|
max-width: 60em;
|
||
|
margin: 0 auto;
|
||
|
padding: 1em;
|
||
|
border: 1px solid #e4e4e4;
|
||
|
border-radius: 4px;
|
||
|
background: #fff;
|
||
|
}
|
||
|
.description, .note {
|
||
|
margin: 2em 0;
|
||
|
color: #484848;
|
||
|
}
|
||
|
.author {
|
||
|
background: #f6f6f6;
|
||
|
border-radius: 3px;
|
||
|
padding: 3px;
|
||
|
margin: 0;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="content">
|
||
|
<% if Setting.emails_header.present? -%>
|
||
|
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header).html_safe %></span>
|
||
|
<% end -%>
|
||
| ... | ... | |
|
<% if Setting.emails_footer.present? -%>
|
||
|
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer).html_safe %></span>
|
||
|
<% end -%>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
| app/views/mailer/_issue.html.erb (working copy) | ||
|---|---|---|
|
<%= render_email_issue_attributes(issue, users.first, true) %>
|
||
|
<%= textilizable(issue, :description, :only_path => false) %>
|
||
|
<div class="description"><%= textilizable(issue, :description, :only_path => false) %></div>
|
||
|
<% if issue.attachments.any? %>
|
||
|
<fieldset class="attachments"><legend><%= l(:label_attachment_plural) %></legend>
|
||
| app/views/mailer/issue_add.html.erb (working copy) | ||
|---|---|---|
|
<%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %>
|
||
|
<p class="author"><%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %></p>
|
||
|
<hr />
|
||
|
<%= render :partial => 'issue', :formats => [:html], :locals => { :issue => @issue, :users => @users, :issue_url => @issue_url } %>
|
||
| app/views/mailer/issue_edit.html.erb (working copy) | ||
|---|---|---|
|
<% if @journal.private_notes? %>
|
||
|
(<%= l(:field_private_notes) %>)
|
||
|
<% end %>
|
||
|
<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %>
|
||
|
<p class="author"><%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %></p>
|
||
|
<ul>
|
||
|
<% details_to_strings(@journal_details, false, :only_path => false).each do |string| %>
|
||
| ... | ... | |
|
<% end %>
|
||
|
</ul>
|
||
|
<%= textilizable(@journal, :notes, :only_path => false) %>
|
||
|
<div class="note"><%= textilizable(@journal, :notes, :only_path => false) %></div>
|
||
|
<hr />
|
||
|
<%= render :partial => 'issue', :formats => [:html], :locals => { :issue => @issue, :users => @users, :issue_url => @issue_url } %>
|
||