Tweak CSS class some more; add plain-text to by_page
This commit is contained in:
parent
9cdc7aaf06
commit
817dbc046b
@ -134,5 +134,5 @@
|
||||
.plain-text {
|
||||
white-space: pre-wrap;
|
||||
display: inline-block;
|
||||
margin-bottom: 1em;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
@ -19,9 +19,7 @@
|
||||
<% if ($draft->{'markdown'}) { =%>
|
||||
<%== markdown $draft->{'body'} =%>
|
||||
<% } else { =%>
|
||||
<span class="plain-text">
|
||||
<%= $draft->{'body'} =%>
|
||||
</span>
|
||||
<span class="plain-text"><%= $draft->{'body'} =%></span>
|
||||
<% } =%>
|
||||
</div>
|
||||
<% } =%>
|
||||
@ -82,9 +80,7 @@
|
||||
</h4>
|
||||
<h5 class="post__author"><%= $last_remark->{'author'} %></h5>
|
||||
<div class="post__body">
|
||||
<span class="plain-text">
|
||||
<%= $last_remark->{'body'} =%>
|
||||
</span>
|
||||
<span class="plain-text"><%= $last_remark->{'body'} =%></span>
|
||||
</div>
|
||||
<nav class="post__nav">
|
||||
<%= link_to Thread => single_thread =>
|
||||
@ -110,9 +106,7 @@
|
||||
<h4 class="post__date"><%= $thread->{'date'} %></h4>
|
||||
<h5 class="post__author"><%= $thread->{'author'} %></h5>
|
||||
<div class="post__body">
|
||||
<span class="plain-text">
|
||||
<%= $thread->{'body'} =%>
|
||||
</span>
|
||||
<span class="plain-text"><%= $thread->{'body'} =%></span>
|
||||
</div>
|
||||
<nav class="post__nav">
|
||||
<%= link_to post_remark => {thread_id => $thread->{'id'}},
|
||||
|
@ -28,11 +28,19 @@
|
||||
<summary>
|
||||
<%= truncate_text $thread->{'body'} %>
|
||||
</summary>
|
||||
<% if ($thread->{'markdown'}) { =%>
|
||||
<%== markdown $thread->{'body'} =%>
|
||||
<% } else { =%>
|
||||
<span class="plain-text"><%= $thread->{'body'} %></span>
|
||||
<% } =%>
|
||||
</details>
|
||||
<% } else { =%>
|
||||
<div class="post__body">
|
||||
<% if ($thread->{'markdown'}) { =%>
|
||||
<%== markdown $thread->{'body'} =%>
|
||||
<% } else { =%>
|
||||
<span class="plain-text"><%= $thread->{'body'} %></span>
|
||||
<% } =%>
|
||||
</div>
|
||||
<% } =%>
|
||||
<nav class="post__nav">
|
||||
|
Loading…
x
Reference in New Issue
Block a user