comment blog posts for 2 weeks
parent
2364485b72
commit
95bee790f9
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue