mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Rename Read Faq, Read Guidelines
This commit is contained in:
parent
4f3f61121a
commit
5ad519e2bc
3 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ class Badge < ActiveRecord::Base
|
||||||
FirstFlag = 13
|
FirstFlag = 13
|
||||||
FirstLink = 14
|
FirstLink = 14
|
||||||
FirstQuote = 15
|
FirstQuote = 15
|
||||||
ReadFaq = 16
|
ReadGuidelines = 16
|
||||||
Reader = 17
|
Reader = 17
|
||||||
|
|
||||||
# other consts
|
# other consts
|
||||||
|
@ -38,7 +38,7 @@ class Badge < ActiveRecord::Base
|
||||||
)
|
)
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
ReadFaq = <<SQL
|
ReadGuidelines = <<SQL
|
||||||
SELECT user_id, read_faq granted_at
|
SELECT user_id, read_faq granted_at
|
||||||
FROM user_stats
|
FROM user_stats
|
||||||
WHERE read_faq IS NOT NULL
|
WHERE read_faq IS NOT NULL
|
||||||
|
|
|
@ -2000,8 +2000,8 @@ en:
|
||||||
first_quote:
|
first_quote:
|
||||||
name: First Quote
|
name: First Quote
|
||||||
description: Quoted a user
|
description: Quoted a user
|
||||||
read_faq:
|
read_guidelines:
|
||||||
name: Read Faq
|
name: Read Guidelines
|
||||||
description: Read the community guidelines
|
description: Read the community guidelines
|
||||||
reader:
|
reader:
|
||||||
name: Reader
|
name: Reader
|
||||||
|
|
|
@ -29,12 +29,12 @@ Badge.seed do |b|
|
||||||
end
|
end
|
||||||
|
|
||||||
Badge.seed do |b|
|
Badge.seed do |b|
|
||||||
b.id = Badge::ReadFaq
|
b.id = Badge::ReadGuidelines
|
||||||
b.name = "Read Faq"
|
b.name = "Read Guidelines"
|
||||||
b.badge_type_id = BadgeType::Bronze
|
b.badge_type_id = BadgeType::Bronze
|
||||||
b.multiple_grant = false
|
b.multiple_grant = false
|
||||||
b.target_posts = false
|
b.target_posts = false
|
||||||
b.query = Badge::Queries::ReadFaq
|
b.query = Badge::Queries::ReadGuidelines
|
||||||
end
|
end
|
||||||
|
|
||||||
Badge.seed do |b|
|
Badge.seed do |b|
|
||||||
|
|
Loading…
Reference in a new issue