Merge branch 'master' into submission-reviewer-comments
* master: (246 commits) merge master Skip datatable spec because github actions is weird. Add devise view files for email messages Make the _mailbot_* files not depend on @conference Tweak devise text for confirm emails Run database migrations on release [fix]Add mailbot.css to assets.rb [fix]Fix empty string check [fix]Fix program#any_event_for_this_date? Add newline at end of show.js.erb file [feat]Display happening now only if program is also displayed [feat]Add brief version of event partial; fix style [feat]Description / happening now takes the entire row if the other is empty [feat]Use Ajax for paginating happening_now [style]Fix style [refactor]Delete unused javascript; Move about-and-happening-now to partial [feat]Add bootstrap style to pagination navbar [fix]Fix style; Re-enable checking happening now items per page pagination ...
This commit is contained in:
commit
6ce36c0fca
60 changed files with 878 additions and 152 deletions
|
|
@ -66,6 +66,12 @@ module Osem
|
|||
|
||||
config.active_job.queue_adapter = :delayed_job
|
||||
|
||||
config.conference = {
|
||||
events_per_page: (ENV['EVENTS_PER_PAGE'] || 3),
|
||||
default_logo_filename: (ENV['DEFAULT_LOGO_FILENAME'] || 'snapcon_logo.png'),
|
||||
default_color: (ENV['DEFAULT_COLOR'] || '#0B3559')
|
||||
}
|
||||
|
||||
config.before_configuration do
|
||||
env_file = File.join(Rails.root, 'config', 'local_env.yml')
|
||||
if File.exist?(env_file)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@ Osem::Application.configure do
|
|||
# Set the secret key base if it's not set via other means
|
||||
config.secret_key_base ||= 'f4be765bc98e516de82ac01daa8f8aa11c5ca13cb6c911887851ac89457b6c0b056b2361a21b5c08926c9386e0f91eef84fc0b103d522bf00bc0c78ea8ce7c58'
|
||||
|
||||
# Test mailbot settings
|
||||
config.mailbot = {
|
||||
ytlf_ticket_id: 50,
|
||||
bcc_address: 'test@test.com'
|
||||
}
|
||||
|
||||
# Use omniauth mock credentials
|
||||
OmniAuth.config.test_mode = true
|
||||
|
||||
|
|
@ -114,6 +120,5 @@ Osem::Application.configure do
|
|||
end
|
||||
end
|
||||
|
||||
config.assets.precompile += ['mailbot.css']
|
||||
config.active_record.verbose_query_logs = true
|
||||
end
|
||||
|
|
|
|||
|
|
@ -101,4 +101,10 @@ Osem::Application.configure do
|
|||
|
||||
# Set the secret_key_base from the env, if not set by any other means
|
||||
config.secret_key_base ||= ENV["SECRET_KEY_BASE"]
|
||||
|
||||
# Mailbot settings
|
||||
config.mailbot = {
|
||||
ytlf_ticket_id: (ENV['YTLF_TICKET_ID'] || 50),
|
||||
bcc_address: ENV['OSEM_MESSAGE_BCC_ADDRESS']
|
||||
}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -52,5 +52,9 @@ Osem::Application.configure do
|
|||
ActiveSupport::Deprecation.silenced = true
|
||||
end
|
||||
|
||||
config.assets.precompile += ['mailbot.css']
|
||||
# Test mailbot settings
|
||||
config.mailbot = {
|
||||
ytlf_ticket_id: 50,
|
||||
bcc_address: 'test@test.com'
|
||||
}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -9,3 +9,4 @@ Rails.application.config.assets.version = '1.0'
|
|||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
# Rails.application.config.assets.precompile += %w( search.js )
|
||||
Rails.application.config.assets.precompile += ['mailbot.css']
|
||||
|
|
|
|||
164
config/initializers/pagy.rb
Normal file
164
config/initializers/pagy.rb
Normal file
|
|
@ -0,0 +1,164 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Pagy initializer file (4.1.0)
|
||||
# Customize only what you really need and notice that Pagy works also without any of the following lines.
|
||||
# Should you just cherry pick part of this file, please maintain the require-order of the extras
|
||||
|
||||
# Extras
|
||||
# See https://ddnexus.github.io/pagy/extras
|
||||
|
||||
# Backend Extras
|
||||
|
||||
# Array extra: Paginate arrays efficiently, avoiding expensive array-wrapping and without overriding
|
||||
# See https://ddnexus.github.io/pagy/extras/array
|
||||
require 'pagy/extras/array'
|
||||
|
||||
# Countless extra: Paginate without any count, saving one query per rendering
|
||||
# See https://ddnexus.github.io/pagy/extras/countless
|
||||
# require 'pagy/extras/countless'
|
||||
# Pagy::VARS[:cycle] = false # default
|
||||
|
||||
# Elasticsearch Rails extra: Paginate `ElasticsearchRails::Results` objects
|
||||
# See https://ddnexus.github.io/pagy/extras/elasticsearch_rails
|
||||
# default :pagy_search method: change only if you use
|
||||
# also the searchkick extra that defines the same
|
||||
# VARS[:elasticsearch_rails_search_method] = :pagy_search
|
||||
# require 'pagy/extras/elasticsearch_rails'
|
||||
|
||||
# Searchkick extra: Paginate `Searchkick::Results` objects
|
||||
# See https://ddnexus.github.io/pagy/extras/searchkick
|
||||
# default :pagy_search method: change only if you use
|
||||
# also the elasticsearch_rails extra that defines the same
|
||||
# VARS[:searchkick_search_method] = :pagy_search
|
||||
# require 'pagy/extras/searchkick'
|
||||
|
||||
# Frontend Extras
|
||||
|
||||
# Bootstrap extra: Add nav, nav_js and combo_nav_js helpers and templates for Bootstrap pagination
|
||||
# See https://ddnexus.github.io/pagy/extras/bootstrap
|
||||
require 'pagy/extras/bootstrap'
|
||||
|
||||
# Bulma extra: Add nav, nav_js and combo_nav_js helpers and templates for Bulma pagination
|
||||
# See https://ddnexus.github.io/pagy/extras/bulma
|
||||
# require 'pagy/extras/bulma'
|
||||
|
||||
# Foundation extra: Add nav, nav_js and combo_nav_js helpers and templates for Foundation pagination
|
||||
# See https://ddnexus.github.io/pagy/extras/foundation
|
||||
# require 'pagy/extras/foundation'
|
||||
|
||||
# Materialize extra: Add nav, nav_js and combo_nav_js helpers for Materialize pagination
|
||||
# See https://ddnexus.github.io/pagy/extras/materialize
|
||||
# require 'pagy/extras/materialize'
|
||||
|
||||
# Navs extra: Add nav_js and combo_nav_js javascript helpers
|
||||
# Notice: the other frontend extras add their own framework-styled versions,
|
||||
# so require this extra only if you need the unstyled version
|
||||
# See https://ddnexus.github.io/pagy/extras/navs
|
||||
# require 'pagy/extras/navs'
|
||||
|
||||
# Semantic extra: Add nav, nav_js and combo_nav_js helpers for Semantic UI pagination
|
||||
# See https://ddnexus.github.io/pagy/extras/semantic
|
||||
# require 'pagy/extras/semantic'
|
||||
|
||||
# UIkit extra: Add nav helper and templates for UIkit pagination
|
||||
# See https://ddnexus.github.io/pagy/extras/uikit
|
||||
# require 'pagy/extras/uikit'
|
||||
|
||||
# Multi size var used by the *_nav_js helpers
|
||||
# See https://ddnexus.github.io/pagy/extras/navs#steps
|
||||
# Pagy::VARS[:steps] = { 0 => [2,3,3,2], 540 => [3,5,5,3], 720 => [5,7,7,5] } # example
|
||||
|
||||
# Feature Extras
|
||||
|
||||
# Headers extra: http response headers (and other helpers) useful for API pagination
|
||||
# See http://ddnexus.github.io/pagy/extras/headers
|
||||
# require 'pagy/extras/headers'
|
||||
# Pagy::VARS[:headers] = { page: 'Current-Page', items: 'Page-Items', count: 'Total-Count', pages: 'Total-Pages' } # default
|
||||
|
||||
# Support extra: Extra support for features like: incremental, infinite, auto-scroll pagination
|
||||
# See https://ddnexus.github.io/pagy/extras/support
|
||||
# require 'pagy/extras/support'
|
||||
|
||||
# Items extra: Allow the client to request a custom number of items per page with an optional selector UI
|
||||
# See https://ddnexus.github.io/pagy/extras/items
|
||||
# require 'pagy/extras/items'
|
||||
# Pagy::VARS[:items_param] = :items # default
|
||||
# Pagy::VARS[:max_items] = 100 # default
|
||||
|
||||
# Overflow extra: Allow for easy handling of overflowing pages
|
||||
# See https://ddnexus.github.io/pagy/extras/overflow
|
||||
# require 'pagy/extras/overflow'
|
||||
# Pagy::VARS[:overflow] = :empty_page # default (other options: :last_page and :exception)
|
||||
|
||||
# Metadata extra: Provides the pagination metadata to Javascript frameworks like Vue.js, react.js, etc.
|
||||
# See https://ddnexus.github.io/pagy/extras/metadata
|
||||
# you must require the shared internal extra (BEFORE the metadata extra) ONLY if you need also the :sequels
|
||||
# require 'pagy/extras/shared'
|
||||
# require 'pagy/extras/metadata'
|
||||
# For performance reason, you should explicitly set ONLY the metadata you use in the frontend
|
||||
# Pagy::VARS[:metadata] = [:scaffold_url, :count, :page, :prev, :next, :last] # example
|
||||
|
||||
# Trim extra: Remove the page=1 param from links
|
||||
# See https://ddnexus.github.io/pagy/extras/trim
|
||||
# require 'pagy/extras/trim'
|
||||
|
||||
# Pagy Variables
|
||||
# See https://ddnexus.github.io/pagy/api/pagy#variables
|
||||
# All the Pagy::VARS are set for all the Pagy instances but can be overridden
|
||||
# per instance by just passing them to Pagy.new or the #pagy controller method
|
||||
|
||||
# Instance variables
|
||||
# See https://ddnexus.github.io/pagy/api/pagy#instance-variables
|
||||
# Pagy::VARS[:items] = 20 # default
|
||||
|
||||
# Other Variables
|
||||
# See https://ddnexus.github.io/pagy/api/pagy#other-variables
|
||||
# Pagy::VARS[:size] = [1,4,4,1] # default
|
||||
# Pagy::VARS[:page_param] = :page # default
|
||||
# Pagy::VARS[:params] = {} # default
|
||||
# Pagy::VARS[:anchor] = '#anchor' # example
|
||||
# Pagy::VARS[:link_extra] = 'data-remote="true"' # example
|
||||
|
||||
# Rails
|
||||
|
||||
# Rails: extras assets path required by the helpers that use javascript
|
||||
# (pagy*_nav_js, pagy*_combo_nav_js, and pagy_items_selector_js)
|
||||
# See https://ddnexus.github.io/pagy/extras#javascript
|
||||
Rails.application.config.assets.paths << Pagy.root.join('javascripts')
|
||||
|
||||
# I18n
|
||||
|
||||
# Pagy internal I18n: ~18x faster using ~10x less memory than the i18n gem
|
||||
# See https://ddnexus.github.io/pagy/api/frontend#i18n
|
||||
# Notice: No need to configure anything in this section if your app uses only "en"
|
||||
# or if you use the i18n extra below
|
||||
#
|
||||
# Examples:
|
||||
# load the "de" built-in locale:
|
||||
# Pagy::I18n.load(locale: 'de')
|
||||
#
|
||||
# load the "de" locale defined in the custom file at :filepath:
|
||||
# Pagy::I18n.load(locale: 'de', filepath: 'path/to/pagy-de.yml')
|
||||
#
|
||||
# load the "de", "en" and "es" built-in locales:
|
||||
# (the first passed :locale will be used also as the default_locale)
|
||||
# Pagy::I18n.load({locale: 'de'},
|
||||
# {locale: 'en'},
|
||||
# {locale: 'es'})
|
||||
#
|
||||
# load the "en" built-in locale, a custom "es" locale,
|
||||
# and a totally custom locale complete with a custom :pluralize proc:
|
||||
# (the first passed :locale will be used also as the default_locale)
|
||||
# Pagy::I18n.load({locale: 'en'},
|
||||
# {locale: 'es', filepath: 'path/to/pagy-es.yml'},
|
||||
# {locale: 'xyz', # not built-in
|
||||
# filepath: 'path/to/pagy-xyz.yml',
|
||||
# pluralize: lambda{|count| ... } )
|
||||
|
||||
# I18n extra: uses the standard i18n gem which is ~18x slower using ~10x more memory
|
||||
# than the default pagy internal i18n (see above)
|
||||
# See https://ddnexus.github.io/pagy/extras/i18n
|
||||
# require 'pagy/extras/i18n'
|
||||
|
||||
# Default i18n key
|
||||
# Pagy::VARS[:i18n_key] = 'pagy.item_name' # default
|
||||
|
|
@ -51,8 +51,8 @@ en:
|
|||
failure: 'Could not authenticate you from %{kind} because "%{reason}".'
|
||||
mailer:
|
||||
confirmation_instructions:
|
||||
subject: 'Confirmation instructions'
|
||||
subject: 'Snap!Con: New Account Confirmation'
|
||||
reset_password_instructions:
|
||||
subject: 'Reset password instructions'
|
||||
subject: 'Snap!Con: Reset Your Password'
|
||||
unlock_instructions:
|
||||
subject: 'Unlock Instructions'
|
||||
subject: 'Snap!Con: Unlock Your Account'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue