comment blog posts for 2 weeks

round-proxy-get
Thibault Duplessis 2018-03-13 22:01:18 -05:00
parent 2364485b72
commit 95bee790f9
1 changed files with 2 additions and 0 deletions

View File

@ -32,7 +32,9 @@ description = ~doc.getText("blog.shortlede")).some) {
@NotForKids {
<div class="footer">
@if(prismic.maybeRef.isEmpty) {
@if(doc.getDate("blog.date").exists(org.joda.time.DateTime.now.minusWeeks(2).isAfter)) {
<a href="@routes.Blog.discuss(doc.id)" class="button text discuss" data-icon="d">Discuss this blog post in the forum</a>
}
} else {
<p>This is a preview.</p>
}