First stab at new user education - configurable messages that pop up on a user's first

few posts/topics.
This commit is contained in:
Robin Ward
2013-02-14 12:10:53 -05:00
parent 898efeaea2
commit b9457197c0
15 changed files with 879 additions and 688 deletions

View File

@ -6,7 +6,8 @@ class CurrentUserSerializer < BasicUserSerializer
:admin?,
:notification_channel_position,
:site_flagged_posts_count,
:moderator?
:moderator?,
:post_count
# we probably want to move this into site, but that json is cached so hanging it off current user seems okish
@ -14,6 +15,10 @@ class CurrentUserSerializer < BasicUserSerializer
object.admin
end
def post_count
object.posts.count
end
def moderator?
object.has_trust_level?(:moderator)
end