mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow advanced badge options in admin screen
clean up serializer, allow simplistic preview
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user