Standardize font sizes and heading tags (<h1>-<h6>) to be more consistent across the site. Changes: * Introduce font size CSS variables and start replacing hardcoded font sizes with standard sizes. * Change header tags to use only one <h1> per page. One <h1> per page is recommended for SEO purposes. Usually this is for the page title, like in forum threads or wiki pages. * Standardize on <h2> for section headers in sidebars and <h3> for smaller subsection headers. Don't use <h4>-<h6>. * In DText, make h1-h4 headers all the same size. Standard wiki style is to ignore h1-h3 and start at h4. * In DText, make h4-h6 the same size as the h1-h3 tags outside of DText. * In the tag list, change the <h1> and <h2> tag category headers to <h3>. * Make usernames in comments and forum posts smaller. Also change the <h4> tag for the commenter name to <div class="author-name">. * Make the tag list, paginator, and nav menu smaller on mobile. * Change h1#app-name-header to a#app-name-header.
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
<% page_title "Message: #{@dmail.title}" %>
|
|
<%= render "secondary_links" %>
|
|
|
|
<div id="c-dmails">
|
|
<div id="a-show">
|
|
<div class="dmail">
|
|
<h1><%= @dmail.title %></h1>
|
|
|
|
<ul style="margin-bottom: 1em;">
|
|
<li><strong>Sender</strong>: <%= link_to_user @dmail.from %></li>
|
|
<li><strong>Recipient</strong>: <%= link_to_user @dmail.to %></li>
|
|
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
|
|
</ul>
|
|
|
|
<div class="prose">
|
|
<%= format_text(@dmail.body) %>
|
|
|
|
<% if @dmail.is_automated? %>
|
|
<p class="fineprint">
|
|
This is an automated message. Responses will not be seen. If you have any questions either message a moderator or ask in the forum.
|
|
</p>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% if CurrentUser.user == @dmail.owner %>
|
|
<p>
|
|
<%= link_to "Respond", new_dmail_path(:respond_to_id => @dmail) %>
|
|
| <%= link_to "Forward", new_dmail_path(:respond_to_id => @dmail, :forward => true) %>
|
|
| <%= link_to "Share", dmail_path(@dmail, key: @dmail.key), title: "Anyone with this link will be able to view this dmail." %>
|
|
<% if policy(@dmail).reportable? %>
|
|
| <%= link_to "Report", new_moderation_report_path(moderation_report: { model_type: "Dmail", model_id: @dmail.id }), remote: true, title: "Report this dmail to the moderators" %>
|
|
<% end %>
|
|
</p>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|