|
6 | 6 | # in some cases with a string like "/open_conference_ware" |
7 | 7 | config.mount_point = '/open_conference_ware' |
8 | 8 |
|
| 9 | + # Mailer host |
| 10 | + # The hostname to use when generating links in emails. |
| 11 | + # This shoud be the domain where OCW is hosted. |
| 12 | + config.mailer_host = 'ocw.local' |
| 13 | + |
9 | 14 | # Event name, or organization running events: |
10 | 15 | config.organization = 'Open Source Bridge' |
11 | 16 |
|
|
22 | 27 | # TODO: Setting the current event here is a short-term hack and will be replaced shortly with a Site record that tracks the current event in the database and provides a way to set it through an admin web UI. |
23 | 28 | # config.current_event_slug = '2012' |
24 | 29 |
|
| 30 | + ##[ Secrets ]## |
| 31 | + # Some are sensitive and should not be checked in to version control. |
| 32 | + # These are loaded from config/secrets.yml, which should be privately copied to your |
| 33 | + # server and linked by your deployment process. |
| 34 | + |
| 35 | + secrets_file = Rails.root.join('config', 'secrets.yml') |
| 36 | + if File.exists?(secrets_file) |
| 37 | + secrets = YAML.load_file(secrets_file) |
| 38 | + config.administrator_email = secrets["administrator_email"] |
| 39 | + config.comments_secret = secrets["comments_secret"] |
| 40 | + config.secret_key_base = secrets["secret_key_base"] |
| 41 | + else |
| 42 | + raise "Oops, config/secrets.yml could not be found." |
| 43 | + end |
| 44 | + |
25 | 45 | ##[ OCW Features ]## |
26 | 46 | # Many features of OpenConferenceWare can be toggled via these settings |
27 | 47 |
|
|
64 | 84 | # Can users add comments until a toggle is flipped on the event? |
65 | 85 | config.have_event_proposal_comments_after_deadline = true |
66 | 86 |
|
| 87 | + # Can users note their favorite sessions? |
| 88 | + config.have_user_favorites = true |
| 89 | + |
67 | 90 | # What audience experience levels can a proposal be classified as? |
68 | 91 | # The list will be displayed on the form in the order defined below. |
69 | 92 | # The "slug" is the unique key defining the particular audience level, while |
70 | 93 | # the "label" is the human-readable value displayed. |
71 | 94 | # |
72 | 95 | # Set this to a blank array to disable audience levels |
73 | | - config.proposal_audience_levels ||= [ |
| 96 | + config.proposal_audience_levels = [ |
74 | 97 | {slug: 'a', label: 'Beginner'}, |
75 | 98 | {slug: 'b', label: 'Intermediate'}, |
76 | 99 | {slug: 'c', label: 'Advanced'} |
|
106 | 129 | # NOTE: The current default theme never displays any breadcrumbs, but infrastructure exists to support them. |
107 | 130 | # |
108 | 131 | # config.breadcrumbs = [['Home', 'http://openconferenceware.org']] |
109 | | - |
110 | 132 | end |
0 commit comments