Let's add support for quoting with a > symbol!

This commit is contained in:
Alexander Andreev 2021-09-16 16:28:07 +04:00
parent bea24e50b0
commit 5629b62643
Signed by: Arav
GPG Key ID: 610DF2574456329F
2 changed files with 8 additions and 1 deletions

View File

@ -51,6 +51,8 @@
#posts article div.feedback > *,
#posts article div.feedback { margin-left: .5rem; }
#posts article p.quote { font-style: italic; }
#pagination a:not(:first-child) { margin-left: .5rem; }
@media screen and (max-width: 641px) {

View File

@ -25,6 +25,8 @@ block content
input(type='checkbox' id='hide-website' name='hide_website' checked)
label(for='hide-website') Hide website*
small *Only I can see if set.
br
small NO links are allowed in a message.
input(type='submit' value='Send a post')
section#posts
if (posts)
@ -39,7 +41,10 @@ block content
header
| Feedback by #[span.highlighted #{owner}] on #[time(datetime=post.feedback_created)= date_(post.feedback_created, tz)]
each line in post.feedback.split("\n")
p= line
if (line[0] == ">")
p.quote= line
else
p= line
else
if (posts === null)
p.center Cannot establish database connection.