1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 23:17:37 +00:00

Added a message for questions that have been closed.

This commit is contained in:
Samuel Lai 2012-08-18 18:40:18 +10:00
parent 6181d83cf3
commit 2954dd47ba
2 changed files with 20 additions and 0 deletions

View File

@ -296,6 +296,18 @@ li .post-comment-metadata {
padding: 4px 7px;
}
div.moderated {
background-color: #F2F2F2;
padding: 10px;
text-align: center;
margin-left: 0;
}
div.moderated p {
margin: 0;
font-size: 1.2em;
}
div.answers {
margin-top: 30px;
}

View File

@ -66,6 +66,14 @@
</div>
</div>
{% if r.question.closedDate %}
<div class="row moderated">
<div class="span16">
<p>This question was <em>closed</em> by a moderator on <strong>{{ r.question.closedDate|format_datetime }}</strong>.</p>
</div>
</div>
{% endif %}
<div class="row answers">
<div class="span16">
{% if r.answers|length > 0 %}