summaryrefslogtreecommitdiffstats
path: root/askbot/templates/question.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-17 20:09:23 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-17 20:09:23 -0400
commitae30cfa5de829d14415c5b2deaf1c4e5b808c604 (patch)
tree93054608bb3188adacec0b5ca525c52418f5f8ce /askbot/templates/question.html
parentcb0c3f008a8d71b84ce3412c065b67250ee284a5 (diff)
downloadaskbot-ae30cfa5de829d14415c5b2deaf1c4e5b808c604.tar.gz
askbot-ae30cfa5de829d14415c5b2deaf1c4e5b808c604.tar.bz2
askbot-ae30cfa5de829d14415c5b2deaf1c4e5b808c604.zip
unified css of buttons
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 5fcea3a9..429cf38d 100644
--- a/askbot/templates/question.html
+++ b/askbot/templates/question.html
@@ -151,6 +151,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}}