lore fields

This commit is contained in:
Andrew Brown 2020-03-25 14:01:29 -05:00
parent b7bcc5c668
commit e020ae1a2d
3 changed files with 198 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

View File

@ -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

View File

@ -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