mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
User lowercase names for seeded categories. Change colors of meta category badge for new sites.
This commit is contained in:
parent
aa9a8aa217
commit
9f059b1090
2 changed files with 4 additions and 4 deletions
|
@ -216,13 +216,13 @@ en:
|
|||
no_info_me: "<div class='missing-profile'>the About Me field of your profile is currently blank, <a href='/users/%{username_lower}/preferences/about-me'>would you like to fill it out?</a></div>"
|
||||
no_info_other: "<div class='missing-profile'>%{name} hasn't entered anything in the About Me field of their profile yet</div>"
|
||||
|
||||
vip_category_name: "Lounge"
|
||||
vip_category_name: "lounge"
|
||||
vip_category_description: "A category exclusive to members with trust level 3 and higher."
|
||||
|
||||
meta_category_name: "Meta"
|
||||
meta_category_name: "meta"
|
||||
meta_category_description: "Discussion about this forum, its organization, how it works, and how we can improve it."
|
||||
|
||||
staff_category_name: "Staff"
|
||||
staff_category_name: "staff"
|
||||
staff_category_description: "Private category for staff discussions. Topics are only visible to admins and moderators."
|
||||
|
||||
assets_topic_body: "This is a permanent topic, visible only to staff, for storing images and files used in the forum design. Don't delete it!\n\n\nHere's how:\n\n\n1. Reply to this topic.\n2. Upload all the images you wish to use for logos, favicons, and so forth here. (Use the upload toolbar icon in the post editor, or drag-and-drop or paste images.)\n3. Submit your reply to post it.\n4. Right click the images in your new post to get the path to the uploaded images, or click the edit icon to edit your post and retrieve the path to the images. Copy the image paths.\n5. Paste those image paths into [basic settings](/admin/site_settings/category/required).\n\n\nAlso, if you need to enable different file type uploads, edit `authorized_extensions` in the [file settings](/admin/site_settings/category/files)."
|
||||
|
|
|
@ -9,7 +9,7 @@ class AddMetaCategory < ActiveRecord::Migration
|
|||
if Category.exec_sql("SELECT 1 FROM categories where name ilike '#{name}'").count == 0
|
||||
result = execute "INSERT INTO categories
|
||||
(name, color, text_color, created_at, updated_at, user_id, slug, description, read_restricted)
|
||||
VALUES ('#{name}', 'EEEEEE', '652D90', now(), now(), -1, '#{Slug.for(name)}', '#{description}', true)
|
||||
VALUES ('#{name}', '808281', 'FFFFFF', now(), now(), -1, '#{Slug.for(name)}', '#{description}', true)
|
||||
RETURNING id"
|
||||
category_id = result[0]["id"].to_i
|
||||
|
||||
|
|
Loading…
Reference in a new issue