summaryrefslogtreecommitdiffstats
path: root/askbot/templates/question.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-23 18:58:43 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-23 18:58:43 -0400
commit6340c2b6f3b8f65b022cfe96582d11c3d3507e54 (patch)
tree07d472883d5bc5618230a04c06e01dd0227d7039 /askbot/templates/question.html
parentc78a52d5edb205907b579f2f311ef60de988bfe1 (diff)
parent0b038de3f3994573be7fe453dab3db34fada3454 (diff)
downloadaskbot-6340c2b6f3b8f65b022cfe96582d11c3d3507e54.tar.gz
askbot-6340c2b6f3b8f65b022cfe96582d11c3d3507e54.tar.bz2
askbot-6340c2b6f3b8f65b022cfe96582d11c3d3507e54.zip
merged with the master branch
Diffstat (limited to 'askbot/templates/question.html')
-rw-r--r--askbot/templates/question.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/askbot/templates/question.html b/askbot/templates/question.html
index e40fcda1..482f5e72 100644
--- a/askbot/templates/question.html
+++ b/askbot/templates/question.html
@@ -150,6 +150,14 @@
if (flags.length > 0) {
removeNode(flags[0]);
}
+ var closeBtn = findChildrenByClassName(controls, 'question-close');
+ if (
+ closeBtn.length === 1 &&
+ data['userReputation'] <
+ {{ settings.MIN_REP_TO_CLOSE_OTHERS_QUESTIONS }}
+ ) {
+ removeNode(closeBtn[0]);
+ }
if (//maybe remove "edit" button
data['userReputation'] <
{{settings.MIN_REP_TO_EDIT_OTHERS_POSTS}}