summaryrefslogtreecommitdiffstats
path: root/askbot/templates/question.html
diff options
context:
space:
mode:
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}}