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