FEATURE: allow advanced badge options in admin screen

clean up serializer, allow simplistic preview
This commit is contained in:
Sam
2014-07-24 18:28:09 +10:00
parent 469e74316b
commit ec03d135fa
14 changed files with 206 additions and 32 deletions

View File

@@ -1907,6 +1907,18 @@ en:
listable: Show badge on the public badges page
enabled: Enable badge
icon: Icon
query: Badge Query (SQL)
target_posts: Query targets posts
auto_revoke: Run revocation query daily
show_posts: Show post granting badge on badge page
preview: Preview badge
trigger: Trigger
trigger_type:
none: "Update daily"
post_action: "When a user acts on post"
post_revision: "When a user edits or creates a post"
trust_level_change: "When a user changes trust level"
user_change: "When a user is edited or created"
lightbox:
download: "download"

View File

@@ -147,6 +147,7 @@ Discourse::Application.routes.draw do
collection do
get "types" => "badges#badge_types"
get "groupings" => "badges#badge_groupings"
post "preview" => "badges#preview"
end
end