diff --git a/app/assets/images/card-headers/lores.png b/app/assets/images/card-headers/lores.png new file mode 100644 index 00000000..5c46f31c Binary files /dev/null and b/app/assets/images/card-headers/lores.png differ diff --git a/config/attributes/lore.yml b/config/attributes/lore.yml index 2ca7928b..b3770511 100644 --- a/config/attributes/lore.yml +++ b/config/attributes/lore.yml @@ -5,22 +5,198 @@ :attributes: - :name: name :label: Name + - :name: summary + :label: Summary + - :name: type_of + :label: Type - :name: universe_id :label: Universe - - :name: archived_at - :label: Archived At - - :name: privacy - :label: Privacy - - :name: favorite - :label: Favorite - - :name: page_type - :label: Page Type -:gallery: - :label: Gallery - :icon: photo_library -:changelog: - :label: Changelog - :icon: history + :field_type: universe + - :name: + :label: Tags + :field_type: tags +:content: + :label: Content + :icon: info + :attributes: + - :name: full_text + :label: Full text + - :name: dialect + :label: Dialect + - :name: structure + :label: Structure + - :name: tone + :label: Tone + - :name: genre + :label: Genre +:setting: + :label: Setting + :icon: info + :attributes: + - :name: time_period + :label: Time period + - :name: planets + :label: Planets + :field_type: link + - :name: continents + :label: Continents + :field_type: link + - :name: countries + :label: Countries + :field_type: link + - :name: landmarks + :label: Landmarks + :field_type: link + - :name: towns + :label: Towns + :field_type: link + - :name: buildings + :label: Buildings + :field_type: link + - :name: schools + :label: Schools + :field_type: link +:about: + :label: About + :icon: info + :attributes: + - :name: subjects + :label: Subjects + - :name: characters + :label: Characters + :field_type: link + - :name: deities + :label: Deities + :field_type: link + - :name: creatures + :label: Creatures + :field_type: link + - :name: floras + :label: Floras + :field_type: link + - :name: jobs + :label: Jobs + :field_type: link + - :name: technologies + :label: Technologies + :field_type: link + - :name: vehicles + :label: Vehicles + :field_type: link + - :name: conditions + :label: Conditions + :field_type: link + - :name: races + :label: Races + :field_type: link + - :name: religions + :label: Religions + :field_type: link + - :name: magics + :label: Magic + :field_type: link + - :name: governments + :label: Governments + :field_type: link + - :name: groups + :label: Groups + :field_type: link + - :name: traditions + :label: Traditions + :field_type: link + - :name: foods + :label: Foods + :field_type: link + - :name: sports + :label: Sports + :field_type: link +:truthiness: + :label: Truthiness + :icon: info + :attributes: + - :name: true_parts + :label: True parts + - :name: false_parts + :label: False parts + - :name: believability + :label: Believability + - :name: morals + :label: Morals + - :name: symbolisms + :label: Symbolisms + - :name: believers + :label: Believers + :field_type: link + - :name: hoaxes + :label: Hoaxes +:culture: + :label: Culture + :icon: info + :attributes: + - :name: impact + :label: Impact + - :name: created_traditions + :label: Created traditions + :field_type: link + - :name: influence + :label: Influence on modern times + - :name: motivations + :label: Motivations + - :name: reception + :label: Reception + - :name: interpretations + :label: Interpretations + - :name: media_adaptations + :label: Media adaptations + - :name: criticism + :label: Criticism + - :name: created_phrases + :label: Created phrases +:origin: + :label: Origin + :icon: info + :attributes: + - :name: source + :label: Source + - :name: original_telling + :label: Original telling + - :name: date_recorded + :label: Date recorded + - :name: inspirations + :label: Inspirations + - :name: original_author + :label: Original author + - :name: original_languages + :label: Original languages + :field_type: link +:history: + :label: History + :icon: info + :attributes: + - :name: historical_context + :label: Historical context + - :name: background_information + :label: Background information + - :name: important_translations + :label: Important translations + - :name: propagation_method + :label: Propagation method +:variations: + :label: Variations + :icon: info + :attributes: + - :name: geographical_variations + :label: Geographical variations + - :name: evolution + :label: Evolution over time + - :name: translation_variations + :label: Translation variations + - :name: variations + :label: Variations + :field_type: link + - :name: related_lores + :label: Related lores + :field_type: link :notes: :label: Notes :icon: edit diff --git a/config/initializers/promos.rb b/config/initializers/promos.rb index fe29a166..4f2dcc93 100644 --- a/config/initializers/promos.rb +++ b/config/initializers/promos.rb @@ -1,5 +1,13 @@ Rails.application.config.promos = {} +# BOGO on Premium Codes Rails.application.config.promos[:promo_bogo] = {} Rails.application.config.promos[:promo_bogo][:start_date] = 'March 21, 2020'.to_date Rails.application.config.promos[:promo_bogo][:end_date] = Rails.application.config.promos[:promo_bogo][:start_date] + 2.weeks + +# Lore free during the month of April +if Date.current >= 'March 1, 2020'.to_date + if Date.current < 'May 1, 2020'.to_date + Rails.application.config.content_types[:free] << Lore + end +end