From e62fcc5831e2d4cbe05737e99e7d9a5712022f49 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 18 May 2013 14:59:50 -0400 Subject: [PATCH] refactored the entire privileges stack. .editable() is now deprecated, use .privileges instead. Privileges now are inherited, so querying a topic's privileges will automatically query it's parent category's privileges as well, etc. --- public/css/style.less | 6 +- public/templates/category.tpl | 2 +- src/categories.js | 27 ++++++++- src/posts.js | 92 ++++++++++--------------------- src/topics.js | 100 +++++++++++++++++----------------- 5 files changed, 110 insertions(+), 117 deletions(-) diff --git a/public/css/style.less b/public/css/style.less index 336f84ea94..eb510f70ef 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -164,6 +164,10 @@ footer.footer { margin-bottom: 10px; padding-bottom: 10px; + &.deleted { + -moz-opacity: 0.30; + opacity: 0.30; + } } &:last-child li { @@ -300,7 +304,7 @@ footer.footer { &.deleted { -moz-opacity: 0.30; - opacity: 0.30; + opacity: 0.30; } } diff --git a/public/templates/category.tpl b/public/templates/category.tpl index b226deea06..9cf185e487 100644 --- a/public/templates/category.tpl +++ b/public/templates/category.tpl @@ -10,7 +10,7 @@