better admin quick start guide

This commit is contained in:
Jeff Atwood
2014-04-16 00:13:52 -07:00
parent cba7d3fc82
commit 3b02257edb
2 changed files with 79 additions and 82 deletions

View File

@@ -7,7 +7,7 @@ if Topic.where('id NOT IN (SELECT topic_id from categories where topic_id is not
staff = Category.where(id: SiteSetting.staff_category_id).first
welcome = File.read(Rails.root + 'docs/ADMIN-QUICK-START-GUIDE.md')
PostCreator.create(Discourse.system_user, raw: welcome, title: "Discourse Admin Quick Start Guide", skip_validations: true, category: staff ? staff.name : nil)
PostCreator.create(Discourse.system_user, raw: welcome, title: "READ ME FIRST: Admin Quick Start Guide", skip_validations: true, category: staff ? staff.name : nil)
PostCreator.create(Discourse.system_user, raw: I18n.t('assets_topic_body'), title: "Assets for the forum design", skip_validations: true, category: staff ? staff.name : nil)
welcome = File.read(Rails.root + 'docs/WELCOME-TO-DISCOURSE.md')