Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Vasil Kolev | f77ea36b91 |
|
@ -1,43 +0,0 @@
|
|||
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.
|
||||
|
||||
# Ignore git directory.
|
||||
/.git/
|
||||
|
||||
# Ignore bundler config.
|
||||
/.bundle
|
||||
|
||||
# Ignore all environment files (except templates).
|
||||
/.env*
|
||||
!/.env*.erb
|
||||
|
||||
# Ignore all default key files.
|
||||
/config/master.key
|
||||
/config/credentials/*.key
|
||||
|
||||
# Ignore all logfiles and tempfiles.
|
||||
/log/*
|
||||
/tmp/*
|
||||
!/log/.keep
|
||||
!/tmp/.keep
|
||||
|
||||
# Ignore pidfiles, but keep the directory.
|
||||
/tmp/pids/*
|
||||
!/tmp/pids/.keep
|
||||
|
||||
# Ignore storage (uploaded files in development and any SQLite databases).
|
||||
/storage/*
|
||||
!/storage/.keep
|
||||
/tmp/storage/*
|
||||
!/tmp/storage/.keep
|
||||
|
||||
# Ignore assets.
|
||||
/node_modules/
|
||||
/app/assets/builds/*
|
||||
!/app/assets/builds/.keep
|
||||
/public/assets
|
||||
|
||||
# Archives
|
||||
*.tar.gz
|
||||
|
||||
# SQL
|
||||
*.sql
|
|
@ -7,29 +7,19 @@
|
|||
# Ignore bundler config.
|
||||
/.bundle
|
||||
|
||||
# Ignore all environment files (except templates).
|
||||
/.env*
|
||||
!/.env*.erb
|
||||
# Ignore the default SQLite database.
|
||||
/db/*.sqlite3
|
||||
/db/*.sqlite3-journal
|
||||
|
||||
# Ignore all logfiles and tempfiles.
|
||||
/log/*
|
||||
/tmp/*
|
||||
!/log/.keep
|
||||
!/tmp/.keep
|
||||
|
||||
# Ignore pidfiles, but keep the directory.
|
||||
/tmp/pids/*
|
||||
!/tmp/pids/
|
||||
!/tmp/pids/.keep
|
||||
|
||||
# Ignore storage (uploaded files in development and any SQLite databases).
|
||||
/storage/*
|
||||
!/storage/.keep
|
||||
/tmp/storage/*
|
||||
!/tmp/storage/
|
||||
!/tmp/storage/.keep
|
||||
|
||||
/public/assets
|
||||
|
||||
# Ignore master key for decrypting credentials and more.
|
||||
/config/master.key
|
||||
/log/*.log
|
||||
/tmp
|
||||
/config/database.yml
|
||||
/config/secrets.yml
|
||||
/db/schema.rb
|
||||
/erd.pdf
|
||||
/public/uploads/tmp/*
|
||||
/public/uploads/personal_profile/*
|
||||
.sass-cache/
|
||||
/coverage/
|
||||
/db/structure.sql
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
require: standard
|
||||
|
||||
inherit_gem:
|
||||
standard: config/base.yml
|
||||
|
||||
AllCops:
|
||||
DisabledByDefault: true
|
|
@ -1 +1 @@
|
|||
3.3.5
|
||||
2.6.3
|
||||
|
|
|
@ -2,7 +2,7 @@ language: ruby
|
|||
dist: xenial
|
||||
cache: bundler
|
||||
rvm:
|
||||
- 3.3
|
||||
- 2.6
|
||||
script:
|
||||
- RAILS_ENV=test bundle exec rake --trace bootstrap spec
|
||||
addons:
|
||||
|
|
62
Dockerfile
62
Dockerfile
|
@ -1,62 +0,0 @@
|
|||
# syntax = docker/dockerfile:1
|
||||
|
||||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
|
||||
ARG RUBY_VERSION=3.3.5
|
||||
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
|
||||
|
||||
# Rails app lives here
|
||||
WORKDIR /rails
|
||||
|
||||
# Set production environment
|
||||
ENV RAILS_ENV="production" \
|
||||
BUNDLE_DEPLOYMENT="1" \
|
||||
BUNDLE_PATH="/usr/local/bundle" \
|
||||
BUNDLE_WITHOUT="development"
|
||||
|
||||
|
||||
# Throw-away build stage to reduce size of final image
|
||||
FROM base as build
|
||||
|
||||
# Install packages needed to build gems
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install --no-install-recommends -y build-essential git libvips pkg-config libpq-dev libsqlite3-dev nodejs yarn
|
||||
|
||||
# Install application gems
|
||||
COPY Gemfile Gemfile.lock ./
|
||||
RUN bundle install && \
|
||||
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
|
||||
bundle exec bootsnap precompile --gemfile
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Precompile bootsnap code for faster boot times
|
||||
RUN bundle exec bootsnap precompile app/ lib/
|
||||
|
||||
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
|
||||
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
|
||||
|
||||
|
||||
# Final stage for app image
|
||||
FROM base
|
||||
|
||||
# Install packages needed for deployment
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install --no-install-recommends -y curl libsqlite3-0 nodejs libpq5 libvips && \
|
||||
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||
|
||||
# Copy built artifacts: gems, application
|
||||
COPY --from=build /usr/local/bundle /usr/local/bundle
|
||||
COPY --from=build /rails /rails
|
||||
|
||||
# Run and own only the runtime files as a non-root user for security
|
||||
RUN useradd rails --create-home --shell /bin/bash && \
|
||||
chown -R rails:rails db log storage tmp
|
||||
USER rails:rails
|
||||
|
||||
# Entrypoint prepares the database.
|
||||
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
|
||||
|
||||
# Start the server by default, this can be overwritten at runtime
|
||||
EXPOSE 80
|
||||
CMD ["./bin/thrust", "./bin/rails", "server", "--early-hints"]
|
25
Gemfile
25
Gemfile
|
@ -1,8 +1,7 @@
|
|||
source "https://rubygems.org"
|
||||
|
||||
gem "rails", "~> 7.1.0"
|
||||
gem "rails", "~> 5.2.7"
|
||||
gem "bootsnap"
|
||||
gem "sprockets"
|
||||
|
||||
gem "sqlite3"
|
||||
gem "pg"
|
||||
|
@ -11,6 +10,7 @@ gem "sass-rails"
|
|||
|
||||
gem "uglifier"
|
||||
gem "coffee-rails"
|
||||
gem "mini_racer", platforms: :ruby
|
||||
gem "jquery-rails"
|
||||
|
||||
gem "slim-rails"
|
||||
|
@ -23,9 +23,18 @@ gem "devise-i18n"
|
|||
gem "simple_form"
|
||||
|
||||
# Phone validation
|
||||
gem "phony"
|
||||
gem "phony", "~> 2.15.11"
|
||||
gem "phony_rails"
|
||||
|
||||
# Picture uploads
|
||||
gem "carrierwave"
|
||||
# gem 'rmagick'
|
||||
gem "mini_magick"
|
||||
|
||||
gem "refile", github: "refile/refile", require: ["refile/rails", "refile/simple_form"]
|
||||
gem "refile-mini_magick"
|
||||
gem "image_processing"
|
||||
|
||||
gem "puma", group: :production
|
||||
|
||||
gem "globalize"
|
||||
|
@ -40,7 +49,7 @@ gem "font-awesome-sass", "~> 4.6.2"
|
|||
|
||||
gem "nested_form"
|
||||
gem "jquery-datatables-rails"
|
||||
# gem "morrisjs-rails"
|
||||
gem "morrisjs-rails"
|
||||
gem "raphael-rails"
|
||||
|
||||
gem "copy_carrierwave_file"
|
||||
|
@ -65,12 +74,17 @@ group :development do
|
|||
gem "pry-rails"
|
||||
# gem 'hirb'
|
||||
gem "awesome_print"
|
||||
gem "capistrano"
|
||||
gem "capistrano-rails"
|
||||
gem 'capistrano-rvm'
|
||||
gem "capistrano3-puma"
|
||||
gem "better_errors"
|
||||
gem "binding_of_caller"
|
||||
end
|
||||
|
||||
group :development, :test do
|
||||
gem "rspec-rails"
|
||||
gem "factory_bot_rails"
|
||||
gem "faker"
|
||||
gem "capybara"
|
||||
gem "selenium-webdriver"
|
||||
|
@ -86,7 +100,4 @@ end
|
|||
|
||||
group :test do
|
||||
gem "database_cleaner"
|
||||
gem "factory_bot_rails"
|
||||
end
|
||||
|
||||
gem "thruster", "~> 0.1.8"
|
||||
|
|
641
Gemfile.lock
641
Gemfile.lock
|
@ -1,133 +1,120 @@
|
|||
GIT
|
||||
remote: git://github.com/refile/refile.git
|
||||
revision: e690bf5c2d83b3dfd805764d54e8f5daf14993b0
|
||||
specs:
|
||||
refile (0.7.0)
|
||||
mime-types
|
||||
sinatra (>= 2.0.0, <= 3.0.0)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
actioncable (7.1.3)
|
||||
actionpack (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
actioncable (5.2.7)
|
||||
actionpack (= 5.2.7)
|
||||
nio4r (~> 2.0)
|
||||
websocket-driver (>= 0.6.1)
|
||||
zeitwerk (~> 2.6)
|
||||
actionmailbox (7.1.3)
|
||||
actionpack (= 7.1.3)
|
||||
activejob (= 7.1.3)
|
||||
activerecord (= 7.1.3)
|
||||
activestorage (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
mail (>= 2.7.1)
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
actionmailer (7.1.3)
|
||||
actionpack (= 7.1.3)
|
||||
actionview (= 7.1.3)
|
||||
activejob (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
actionmailer (5.2.7)
|
||||
actionpack (= 5.2.7)
|
||||
actionview (= 5.2.7)
|
||||
activejob (= 5.2.7)
|
||||
mail (~> 2.5, >= 2.5.4)
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
rails-dom-testing (~> 2.2)
|
||||
actionpack (7.1.3)
|
||||
actionview (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
nokogiri (>= 1.8.5)
|
||||
racc
|
||||
rack (>= 2.2.4)
|
||||
rack-session (>= 1.0.1)
|
||||
rails-dom-testing (~> 2.0)
|
||||
actionpack (5.2.7)
|
||||
actionview (= 5.2.7)
|
||||
activesupport (= 5.2.7)
|
||||
rack (~> 2.0, >= 2.0.8)
|
||||
rack-test (>= 0.6.3)
|
||||
rails-dom-testing (~> 2.2)
|
||||
rails-html-sanitizer (~> 1.6)
|
||||
actiontext (7.1.3)
|
||||
actionpack (= 7.1.3)
|
||||
activerecord (= 7.1.3)
|
||||
activestorage (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
globalid (>= 0.6.0)
|
||||
nokogiri (>= 1.8.5)
|
||||
actionview (7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
rails-dom-testing (~> 2.0)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||
actionview (5.2.7)
|
||||
activesupport (= 5.2.7)
|
||||
builder (~> 3.1)
|
||||
erubi (~> 1.11)
|
||||
rails-dom-testing (~> 2.2)
|
||||
rails-html-sanitizer (~> 1.6)
|
||||
activejob (7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
erubi (~> 1.4)
|
||||
rails-dom-testing (~> 2.0)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||
activejob (5.2.7)
|
||||
activesupport (= 5.2.7)
|
||||
globalid (>= 0.3.6)
|
||||
activemodel (7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
activemodel (5.2.7)
|
||||
activesupport (= 5.2.7)
|
||||
activemodel-serializers-xml (1.0.2)
|
||||
activemodel (> 5.x)
|
||||
activesupport (> 5.x)
|
||||
builder (~> 3.1)
|
||||
activerecord (7.1.3)
|
||||
activemodel (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
timeout (>= 0.4.0)
|
||||
activestorage (7.1.3)
|
||||
actionpack (= 7.1.3)
|
||||
activejob (= 7.1.3)
|
||||
activerecord (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
marcel (~> 1.0)
|
||||
activesupport (7.1.3)
|
||||
base64
|
||||
bigdecimal
|
||||
activerecord (5.2.7)
|
||||
activemodel (= 5.2.7)
|
||||
activesupport (= 5.2.7)
|
||||
arel (>= 9.0)
|
||||
activestorage (5.2.7)
|
||||
actionpack (= 5.2.7)
|
||||
activerecord (= 5.2.7)
|
||||
marcel (~> 1.0.0)
|
||||
activesupport (5.2.7)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
connection_pool (>= 2.2.5)
|
||||
drb
|
||||
i18n (>= 1.6, < 2)
|
||||
minitest (>= 5.1)
|
||||
mutex_m
|
||||
tzinfo (~> 2.0)
|
||||
addressable (2.8.6)
|
||||
public_suffix (>= 2.0.2, < 6.0)
|
||||
i18n (>= 0.7, < 2)
|
||||
minitest (~> 5.1)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.8.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
airbrussh (1.3.4)
|
||||
sshkit (>= 1.6.1, != 1.7.0)
|
||||
arel (9.0.0)
|
||||
ast (2.4.2)
|
||||
autoprefixer-rails (10.4.16.0)
|
||||
execjs (~> 2)
|
||||
awesome_print (1.9.2)
|
||||
base64 (0.2.0)
|
||||
bcrypt (3.1.20)
|
||||
better_errors (2.10.1)
|
||||
autoprefixer-rails (9.6.1.1)
|
||||
execjs
|
||||
awesome_print (1.8.0)
|
||||
bcrypt (3.1.13)
|
||||
better_errors (2.9.1)
|
||||
coderay (>= 1.0.0)
|
||||
erubi (>= 1.0.0)
|
||||
rack (>= 0.9.0)
|
||||
rouge (>= 1.0.0)
|
||||
better_html (2.0.2)
|
||||
actionview (>= 6.0)
|
||||
activesupport (>= 6.0)
|
||||
ast (~> 2.0)
|
||||
erubi (~> 1.4)
|
||||
parser (>= 2.4)
|
||||
smart_properties
|
||||
bigdecimal (3.1.6)
|
||||
binding_of_caller (1.0.0)
|
||||
binding_of_caller (0.8.0)
|
||||
debug_inspector (>= 0.0.1)
|
||||
bootsnap (1.18.3)
|
||||
msgpack (~> 1.2)
|
||||
bootsnap (1.4.5)
|
||||
msgpack (~> 1.0)
|
||||
bootstrap-sass (3.4.1)
|
||||
autoprefixer-rails (>= 5.2.1)
|
||||
sassc (>= 2.0.0)
|
||||
bootstrap-sass-extras (0.1.0)
|
||||
bootstrap-sass-extras (0.0.7)
|
||||
rails (>= 3.1.0)
|
||||
bootswatch-rails (3.3.5)
|
||||
railties (>= 3.1)
|
||||
builder (3.2.4)
|
||||
byebug (11.1.3)
|
||||
capybara (3.40.0)
|
||||
byebug (11.0.1)
|
||||
capistrano (3.11.2)
|
||||
airbrussh (>= 1.0.0)
|
||||
i18n
|
||||
rake (>= 10.0.0)
|
||||
sshkit (>= 1.9.0)
|
||||
capistrano-bundler (1.6.0)
|
||||
capistrano (~> 3.1)
|
||||
capistrano-rails (1.4.0)
|
||||
capistrano (~> 3.1)
|
||||
capistrano-bundler (~> 1.1)
|
||||
capistrano-rvm (0.1.2)
|
||||
capistrano (~> 3.0)
|
||||
sshkit (~> 1.2)
|
||||
capistrano3-puma (4.0.0)
|
||||
capistrano (~> 3.7)
|
||||
capistrano-bundler
|
||||
puma (~> 4.0)
|
||||
capybara (3.29.0)
|
||||
addressable
|
||||
matrix
|
||||
mini_mime (>= 0.1.3)
|
||||
nokogiri (~> 1.11)
|
||||
nokogiri (~> 1.8)
|
||||
rack (>= 1.6.0)
|
||||
rack-test (>= 0.6.3)
|
||||
regexp_parser (>= 1.5, < 3.0)
|
||||
regexp_parser (~> 1.5)
|
||||
xpath (~> 3.2)
|
||||
carrierwave (3.0.5)
|
||||
activemodel (>= 6.0.0)
|
||||
activesupport (>= 6.0.0)
|
||||
carrierwave (2.2.2)
|
||||
activemodel (>= 5.0.0)
|
||||
activesupport (>= 5.0.0)
|
||||
addressable (~> 2.6)
|
||||
image_processing (~> 1.1)
|
||||
marcel (~> 1.0.0)
|
||||
mini_mime (>= 0.1.3)
|
||||
ssrf_filter (~> 1.0)
|
||||
childprocess (3.0.0)
|
||||
choice (0.2.0)
|
||||
chronic (0.10.2)
|
||||
chunky_png (1.4.0)
|
||||
|
@ -139,70 +126,58 @@ GEM
|
|||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.12.2)
|
||||
concurrent-ruby (1.2.3)
|
||||
connection_pool (2.4.1)
|
||||
concurrent-ruby (1.1.10)
|
||||
copy_carrierwave_file (1.3.0)
|
||||
carrierwave (>= 0.9)
|
||||
crass (1.0.6)
|
||||
database_cleaner (2.0.2)
|
||||
database_cleaner-active_record (>= 2, < 3)
|
||||
database_cleaner-active_record (2.1.0)
|
||||
activerecord (>= 5.a)
|
||||
database_cleaner-core (~> 2.0.0)
|
||||
database_cleaner-core (2.0.1)
|
||||
date (3.3.4)
|
||||
debug_inspector (1.2.0)
|
||||
database_cleaner (1.7.0)
|
||||
debug_inspector (0.0.3)
|
||||
delorean (2.1.0)
|
||||
chronic
|
||||
devise (4.9.3)
|
||||
devise (4.7.1)
|
||||
bcrypt (~> 3.0)
|
||||
orm_adapter (~> 0.1)
|
||||
railties (>= 4.1.0)
|
||||
responders
|
||||
warden (~> 1.2.3)
|
||||
devise-i18n (1.12.0)
|
||||
devise (>= 4.9.0)
|
||||
diff-lcs (1.5.1)
|
||||
docile (1.4.0)
|
||||
draper (4.0.2)
|
||||
devise-i18n (1.8.2)
|
||||
devise (>= 4.6)
|
||||
diff-lcs (1.3)
|
||||
docile (1.3.2)
|
||||
draper (3.1.0)
|
||||
actionpack (>= 5.0)
|
||||
activemodel (>= 5.0)
|
||||
activemodel-serializers-xml (>= 1.0)
|
||||
activesupport (>= 5.0)
|
||||
request_store (>= 1.0)
|
||||
ruby2_keywords
|
||||
drb (2.2.0)
|
||||
ruby2_keywords
|
||||
erubi (1.12.0)
|
||||
execjs (2.9.1)
|
||||
factory_bot (6.4.6)
|
||||
activesupport (>= 5.0.0)
|
||||
factory_bot_rails (6.4.3)
|
||||
factory_bot (~> 6.4)
|
||||
railties (>= 5.0.0)
|
||||
faker (3.2.3)
|
||||
i18n (>= 1.8.11, < 2)
|
||||
faraday (2.9.0)
|
||||
faraday-net_http (>= 2.0, < 3.2)
|
||||
faraday-net_http (3.1.0)
|
||||
net-http
|
||||
ffi (1.16.3)
|
||||
erubi (1.10.0)
|
||||
execjs (2.7.0)
|
||||
factory_bot (5.1.1)
|
||||
activesupport (>= 4.2.0)
|
||||
factory_bot_rails (5.1.1)
|
||||
factory_bot (~> 5.1.0)
|
||||
railties (>= 4.2.0)
|
||||
faker (2.5.0)
|
||||
i18n (~> 1.6.0)
|
||||
faraday (0.16.2)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
ffi (1.15.5)
|
||||
font-awesome-sass (4.6.2)
|
||||
sass (>= 3.2)
|
||||
formatador (1.1.0)
|
||||
globalid (1.2.1)
|
||||
activesupport (>= 6.1)
|
||||
globalize (6.3.0)
|
||||
activemodel (>= 4.2, < 7.2)
|
||||
activerecord (>= 4.2, < 7.2)
|
||||
formatador (0.2.5)
|
||||
globalid (1.0.0)
|
||||
activesupport (>= 5.0)
|
||||
globalize (5.3.0)
|
||||
activemodel (>= 4.2, < 6.1)
|
||||
activerecord (>= 4.2, < 6.1)
|
||||
request_store (~> 1.0)
|
||||
guard (2.18.1)
|
||||
guard (2.15.1)
|
||||
formatador (>= 0.2.4)
|
||||
listen (>= 2.7, < 4.0)
|
||||
lumberjack (>= 1.0.12, < 2.0)
|
||||
nenv (~> 0.1)
|
||||
notiffany (~> 0.0)
|
||||
pry (>= 0.13.0)
|
||||
pry (>= 0.9.12)
|
||||
shellany (~> 0.0)
|
||||
thor (>= 0.18.1)
|
||||
guard-compat (1.2.1)
|
||||
|
@ -210,218 +185,185 @@ GEM
|
|||
guard (~> 2.1)
|
||||
guard-compat (~> 1.1)
|
||||
rspec (>= 2.99.0, < 4.0)
|
||||
highline (3.0.1)
|
||||
i18n (1.14.1)
|
||||
highline (2.0.3)
|
||||
i18n (1.6.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
i18n-tasks (1.0.13)
|
||||
i18n-tasks (0.9.37)
|
||||
activesupport (>= 4.0.2)
|
||||
ast (>= 2.1.0)
|
||||
better_html (>= 1.0, < 3.0)
|
||||
erubi
|
||||
highline (>= 2.0.0)
|
||||
i18n
|
||||
parser (>= 3.2.2.1)
|
||||
parser (>= 2.2.3.0)
|
||||
rails-i18n
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
terminal-table (>= 1.5.1)
|
||||
icalendar (2.10.1)
|
||||
icalendar (2.5.3)
|
||||
ice_cube (~> 0.16)
|
||||
ice_cube (0.16.4)
|
||||
ice_cube (0.16.3)
|
||||
image_processing (1.12.2)
|
||||
mini_magick (>= 4.9.5, < 5)
|
||||
ruby-vips (>= 2.0.17, < 3)
|
||||
io-console (0.7.2)
|
||||
irb (1.11.2)
|
||||
rdoc
|
||||
reline (>= 0.4.2)
|
||||
jbuilder (2.11.5)
|
||||
actionview (>= 5.0.0)
|
||||
activesupport (>= 5.0.0)
|
||||
jaro_winkler (1.5.3)
|
||||
jbuilder (2.9.1)
|
||||
activesupport (>= 4.2.0)
|
||||
jquery-datatables-rails (3.4.0)
|
||||
actionpack (>= 3.1)
|
||||
jquery-rails
|
||||
railties (>= 3.1)
|
||||
sass-rails
|
||||
jquery-rails (4.6.0)
|
||||
jquery-rails (4.3.5)
|
||||
rails-dom-testing (>= 1, < 3)
|
||||
railties (>= 4.2.0)
|
||||
thor (>= 0.14, < 2.0)
|
||||
json (2.7.1)
|
||||
language_server-protocol (3.17.0.3)
|
||||
lint_roller (1.1.0)
|
||||
listen (3.8.0)
|
||||
json (2.2.0)
|
||||
libv8 (7.3.492.27.1)
|
||||
listen (3.7.1)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
loofah (2.22.0)
|
||||
loofah (2.15.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.12.0)
|
||||
lumberjack (1.2.10)
|
||||
mail (2.8.1)
|
||||
nokogiri (>= 1.5.9)
|
||||
lumberjack (1.0.13)
|
||||
mail (2.7.1)
|
||||
mini_mime (>= 0.1.1)
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
marcel (1.0.2)
|
||||
matrix (0.4.2)
|
||||
method_source (1.0.0)
|
||||
mini_magick (4.12.0)
|
||||
mini_mime (1.1.5)
|
||||
mini_portile2 (2.8.5)
|
||||
minitest (5.22.2)
|
||||
msgpack (1.7.2)
|
||||
mutex_m (0.2.0)
|
||||
method_source (0.9.2)
|
||||
mime-types (3.3)
|
||||
mime-types-data (~> 3.2015)
|
||||
mime-types-data (3.2019.0904)
|
||||
mini_magick (4.11.0)
|
||||
mini_mime (1.1.2)
|
||||
mini_portile2 (2.8.0)
|
||||
mini_racer (0.2.6)
|
||||
libv8 (>= 6.9.411)
|
||||
minitest (5.15.0)
|
||||
morrisjs-rails (0.5.1.2)
|
||||
railties (> 3.1, < 6)
|
||||
msgpack (1.3.1)
|
||||
multipart-post (2.1.1)
|
||||
mustermann (1.0.3)
|
||||
nenv (0.3.0)
|
||||
nested_form (0.3.2)
|
||||
net-http (0.4.1)
|
||||
uri
|
||||
net-imap (0.4.10)
|
||||
date
|
||||
net-protocol
|
||||
net-pop (0.1.2)
|
||||
net-protocol
|
||||
net-protocol (0.2.2)
|
||||
timeout
|
||||
net-smtp (0.4.0.1)
|
||||
net-protocol
|
||||
nio4r (2.7.0)
|
||||
nokogiri (1.16.2)
|
||||
mini_portile2 (~> 2.8.2)
|
||||
net-scp (2.0.0)
|
||||
net-ssh (>= 2.6.5, < 6.0.0)
|
||||
net-ssh (5.2.0)
|
||||
nio4r (2.5.8)
|
||||
nokogiri (1.13.3)
|
||||
mini_portile2 (~> 2.8.0)
|
||||
racc (~> 1.4)
|
||||
notiffany (0.1.3)
|
||||
nenv (~> 0.1)
|
||||
shellany (~> 0.0)
|
||||
orm_adapter (0.5.0)
|
||||
parallel (1.24.0)
|
||||
parser (3.3.0.5)
|
||||
parallel (1.17.0)
|
||||
parser (3.1.1.0)
|
||||
ast (~> 2.4.1)
|
||||
racc
|
||||
pg (1.5.5)
|
||||
phony (2.20.12)
|
||||
phony_rails (0.15.0)
|
||||
pg (1.1.4)
|
||||
phony (2.15.49)
|
||||
phony_rails (0.14.13)
|
||||
activesupport (>= 3.0)
|
||||
phony (>= 2.18.12)
|
||||
pry (0.14.2)
|
||||
coderay (~> 1.1)
|
||||
method_source (~> 1.0)
|
||||
phony (> 2.15)
|
||||
pry (0.12.2)
|
||||
coderay (~> 1.1.0)
|
||||
method_source (~> 0.9.0)
|
||||
pry-rails (0.3.9)
|
||||
pry (>= 0.10.4)
|
||||
psych (5.1.2)
|
||||
stringio
|
||||
public_suffix (5.0.4)
|
||||
puma (6.4.2)
|
||||
public_suffix (4.0.6)
|
||||
puma (4.3.11)
|
||||
nio4r (~> 2.0)
|
||||
racc (1.7.3)
|
||||
rack (3.0.9)
|
||||
rack-session (2.0.0)
|
||||
rack (>= 3.0.0)
|
||||
rack-test (2.1.0)
|
||||
rack (>= 1.3)
|
||||
rackup (2.1.0)
|
||||
rack (>= 3)
|
||||
webrick (~> 1.8)
|
||||
rails (7.1.3)
|
||||
actioncable (= 7.1.3)
|
||||
actionmailbox (= 7.1.3)
|
||||
actionmailer (= 7.1.3)
|
||||
actionpack (= 7.1.3)
|
||||
actiontext (= 7.1.3)
|
||||
actionview (= 7.1.3)
|
||||
activejob (= 7.1.3)
|
||||
activemodel (= 7.1.3)
|
||||
activerecord (= 7.1.3)
|
||||
activestorage (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
bundler (>= 1.15.0)
|
||||
railties (= 7.1.3)
|
||||
rails-dom-testing (2.2.0)
|
||||
activesupport (>= 5.0.0)
|
||||
minitest
|
||||
racc (1.6.0)
|
||||
rack (2.2.3)
|
||||
rack-protection (2.0.7)
|
||||
rack
|
||||
rack-test (1.1.0)
|
||||
rack (>= 1.0, < 3)
|
||||
rails (5.2.7)
|
||||
actioncable (= 5.2.7)
|
||||
actionmailer (= 5.2.7)
|
||||
actionpack (= 5.2.7)
|
||||
actionview (= 5.2.7)
|
||||
activejob (= 5.2.7)
|
||||
activemodel (= 5.2.7)
|
||||
activerecord (= 5.2.7)
|
||||
activestorage (= 5.2.7)
|
||||
activesupport (= 5.2.7)
|
||||
bundler (>= 1.3.0)
|
||||
railties (= 5.2.7)
|
||||
sprockets-rails (>= 2.0.0)
|
||||
rails-dom-testing (2.0.3)
|
||||
activesupport (>= 4.2.0)
|
||||
nokogiri (>= 1.6)
|
||||
rails-erd (1.7.2)
|
||||
rails-erd (1.6.0)
|
||||
activerecord (>= 4.2)
|
||||
activesupport (>= 4.2)
|
||||
choice (~> 0.2.0)
|
||||
ruby-graphviz (~> 1.2)
|
||||
rails-html-sanitizer (1.6.0)
|
||||
loofah (~> 2.21)
|
||||
nokogiri (~> 1.14)
|
||||
rails-i18n (7.0.8)
|
||||
rails-html-sanitizer (1.4.2)
|
||||
loofah (~> 2.3)
|
||||
rails-i18n (5.1.3)
|
||||
i18n (>= 0.7, < 2)
|
||||
railties (>= 6.0.0, < 8)
|
||||
railties (7.1.3)
|
||||
actionpack (= 7.1.3)
|
||||
activesupport (= 7.1.3)
|
||||
irb
|
||||
rackup (>= 1.0.0)
|
||||
rake (>= 12.2)
|
||||
thor (~> 1.0, >= 1.2.2)
|
||||
zeitwerk (~> 2.6)
|
||||
railties (>= 5.0, < 6)
|
||||
railties (5.2.7)
|
||||
actionpack (= 5.2.7)
|
||||
activesupport (= 5.2.7)
|
||||
method_source
|
||||
rake (>= 0.8.7)
|
||||
thor (>= 0.19.0, < 2.0)
|
||||
rainbow (3.1.1)
|
||||
rake (13.1.0)
|
||||
rake (13.0.6)
|
||||
raphael-rails (2.1.2)
|
||||
rb-fsevent (0.11.2)
|
||||
rb-fsevent (0.11.1)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
rdoc (6.6.2)
|
||||
psych (>= 4.0.0)
|
||||
regexp_parser (2.9.0)
|
||||
reline (0.4.2)
|
||||
io-console (~> 0.5)
|
||||
request_store (1.6.0)
|
||||
refile-mini_magick (0.2.0)
|
||||
mini_magick (~> 4.0)
|
||||
refile (~> 0.5)
|
||||
regexp_parser (1.6.0)
|
||||
request_store (1.4.1)
|
||||
rack (>= 1.4)
|
||||
responders (3.1.1)
|
||||
actionpack (>= 5.2)
|
||||
railties (>= 5.2)
|
||||
rexml (3.2.6)
|
||||
rouge (4.2.0)
|
||||
rqrcode (2.2.0)
|
||||
responders (3.0.0)
|
||||
actionpack (>= 5.0)
|
||||
railties (>= 5.0)
|
||||
rqrcode (2.1.1)
|
||||
chunky_png (~> 1.0)
|
||||
rqrcode_core (~> 1.0)
|
||||
rqrcode_core (1.2.0)
|
||||
rspec (3.13.0)
|
||||
rspec-core (~> 3.13.0)
|
||||
rspec-expectations (~> 3.13.0)
|
||||
rspec-mocks (~> 3.13.0)
|
||||
rspec-core (3.13.0)
|
||||
rspec-support (~> 3.13.0)
|
||||
rspec-expectations (3.13.0)
|
||||
rspec (3.8.0)
|
||||
rspec-core (~> 3.8.0)
|
||||
rspec-expectations (~> 3.8.0)
|
||||
rspec-mocks (~> 3.8.0)
|
||||
rspec-core (3.8.2)
|
||||
rspec-support (~> 3.8.0)
|
||||
rspec-expectations (3.8.5)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.13.0)
|
||||
rspec-mocks (3.13.0)
|
||||
rspec-support (~> 3.8.0)
|
||||
rspec-mocks (3.8.2)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.13.0)
|
||||
rspec-rails (6.1.1)
|
||||
actionpack (>= 6.1)
|
||||
activesupport (>= 6.1)
|
||||
railties (>= 6.1)
|
||||
rspec-core (~> 3.12)
|
||||
rspec-expectations (~> 3.12)
|
||||
rspec-mocks (~> 3.12)
|
||||
rspec-support (~> 3.12)
|
||||
rspec-support (3.13.0)
|
||||
rubocop (1.60.2)
|
||||
json (~> 2.3)
|
||||
language_server-protocol (>= 3.17.0)
|
||||
rspec-support (~> 3.8.0)
|
||||
rspec-rails (3.8.2)
|
||||
actionpack (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
railties (>= 3.0)
|
||||
rspec-core (~> 3.8.0)
|
||||
rspec-expectations (~> 3.8.0)
|
||||
rspec-mocks (~> 3.8.0)
|
||||
rspec-support (~> 3.8.0)
|
||||
rspec-support (3.8.3)
|
||||
rubocop (0.72.0)
|
||||
jaro_winkler (~> 1.5.1)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 3.3.0.2)
|
||||
parser (>= 2.6)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
regexp_parser (>= 1.8, < 3.0)
|
||||
rexml (>= 3.2.5, < 4.0)
|
||||
rubocop-ast (>= 1.30.0, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 2.4.0, < 3.0)
|
||||
rubocop-ast (1.30.0)
|
||||
parser (>= 3.2.1.0)
|
||||
rubocop-performance (1.20.2)
|
||||
rubocop (>= 1.48.1, < 2.0)
|
||||
rubocop-ast (>= 1.30.0, < 2.0)
|
||||
ruby-graphviz (1.2.5)
|
||||
rexml
|
||||
ruby-progressbar (1.13.0)
|
||||
ruby-vips (2.2.0)
|
||||
unicode-display_width (>= 1.4.0, < 1.7)
|
||||
rubocop-performance (1.4.1)
|
||||
rubocop (>= 0.71.0)
|
||||
ruby-graphviz (1.2.4)
|
||||
ruby-progressbar (1.10.1)
|
||||
ruby-vips (2.1.4)
|
||||
ffi (~> 1.12)
|
||||
ruby2_keywords (0.0.5)
|
||||
rubyzip (2.3.2)
|
||||
rubyzip (2.0.0)
|
||||
sass (3.7.4)
|
||||
sass-listen (~> 4.0.0)
|
||||
sass-listen (4.0.0)
|
||||
|
@ -429,7 +371,7 @@ GEM
|
|||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
sass-rails (6.0.0)
|
||||
sassc-rails (~> 2.1, >= 2.1.1)
|
||||
sassc (2.4.0)
|
||||
sassc (2.2.1)
|
||||
ffi (~> 1.9)
|
||||
sassc-rails (2.1.2)
|
||||
railties (>= 4.0.0)
|
||||
|
@ -437,74 +379,63 @@ GEM
|
|||
sprockets (> 3.0)
|
||||
sprockets-rails
|
||||
tilt
|
||||
search_object (1.2.5)
|
||||
selenium-webdriver (4.18.1)
|
||||
base64 (~> 0.2)
|
||||
rexml (~> 3.2, >= 3.2.5)
|
||||
rubyzip (>= 1.2.2, < 3.0)
|
||||
websocket (~> 1.0)
|
||||
search_object (1.2.2)
|
||||
selenium-webdriver (3.142.6)
|
||||
childprocess (>= 0.5, < 4.0)
|
||||
rubyzip (>= 1.2.2)
|
||||
shellany (0.0.1)
|
||||
simple_form (5.3.0)
|
||||
actionpack (>= 5.2)
|
||||
activemodel (>= 5.2)
|
||||
simplecov (0.22.0)
|
||||
simple_form (5.0.0)
|
||||
actionpack (>= 5.0)
|
||||
activemodel (>= 5.0)
|
||||
simplecov (0.17.1)
|
||||
docile (~> 1.1)
|
||||
simplecov-html (~> 0.11)
|
||||
simplecov_json_formatter (~> 0.1)
|
||||
simplecov-html (0.12.3)
|
||||
simplecov_json_formatter (0.1.4)
|
||||
slim (5.2.1)
|
||||
temple (~> 0.10.0)
|
||||
tilt (>= 2.1.0)
|
||||
slim-rails (3.6.3)
|
||||
json (>= 1.8, < 3)
|
||||
simplecov-html (~> 0.10.0)
|
||||
simplecov-html (0.10.2)
|
||||
sinatra (2.0.7)
|
||||
mustermann (~> 1.0)
|
||||
rack (~> 2.0)
|
||||
rack-protection (= 2.0.7)
|
||||
tilt (~> 2.0)
|
||||
slim (4.0.1)
|
||||
temple (>= 0.7.6, < 0.9)
|
||||
tilt (>= 2.0.6, < 2.1)
|
||||
slim-rails (3.2.0)
|
||||
actionpack (>= 3.1)
|
||||
railties (>= 3.1)
|
||||
slim (>= 3.0, < 6.0, != 5.0.0)
|
||||
smart_properties (1.17.0)
|
||||
spring (4.1.3)
|
||||
slim (>= 3.0, < 5.0)
|
||||
spring (2.1.0)
|
||||
spring-commands-rspec (1.0.4)
|
||||
spring (>= 0.9.1)
|
||||
sprockets (4.2.1)
|
||||
sprockets (4.0.3)
|
||||
concurrent-ruby (~> 1.0)
|
||||
rack (>= 2.2.4, < 4)
|
||||
rack (> 1, < 3)
|
||||
sprockets-rails (3.4.2)
|
||||
actionpack (>= 5.2)
|
||||
activesupport (>= 5.2)
|
||||
sprockets (>= 3.0.0)
|
||||
sqlite3 (1.7.2)
|
||||
mini_portile2 (~> 2.8.0)
|
||||
ssrf_filter (1.1.2)
|
||||
standard (1.34.0)
|
||||
language_server-protocol (~> 3.17.0.2)
|
||||
lint_roller (~> 1.0)
|
||||
rubocop (~> 1.60)
|
||||
standard-custom (~> 1.0.0)
|
||||
standard-performance (~> 1.3)
|
||||
standard-custom (1.0.2)
|
||||
lint_roller (~> 1.0)
|
||||
rubocop (~> 1.50)
|
||||
standard-performance (1.3.1)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop-performance (~> 1.20.2)
|
||||
stringio (3.1.0)
|
||||
temple (0.10.3)
|
||||
sqlite3 (1.4.1)
|
||||
sshkit (1.20.0)
|
||||
net-scp (>= 1.1.2)
|
||||
net-ssh (>= 2.8.0)
|
||||
ssrf_filter (1.0.7)
|
||||
standard (0.1.4)
|
||||
rubocop (~> 0.72.0)
|
||||
rubocop-performance (~> 1.4.0)
|
||||
temple (0.8.2)
|
||||
terminal-table (3.0.2)
|
||||
unicode-display_width (>= 1.1.1, < 3)
|
||||
thor (1.3.0)
|
||||
thruster (0.1.8)
|
||||
tilt (2.3.0)
|
||||
timeout (0.4.1)
|
||||
tzinfo (2.0.6)
|
||||
concurrent-ruby (~> 1.0)
|
||||
thor (1.2.1)
|
||||
thread_safe (0.3.6)
|
||||
tilt (2.0.10)
|
||||
tzinfo (1.2.9)
|
||||
thread_safe (~> 0.1)
|
||||
uglifier (4.2.0)
|
||||
execjs (>= 0.3.0, < 3)
|
||||
unicode-display_width (2.5.0)
|
||||
uri (0.13.0)
|
||||
warden (1.2.9)
|
||||
rack (>= 2.0.9)
|
||||
webrick (1.8.1)
|
||||
websocket (1.2.10)
|
||||
websocket-driver (0.7.6)
|
||||
unicode-display_width (1.6.1)
|
||||
warden (1.2.8)
|
||||
rack (>= 2.0.6)
|
||||
websocket-driver (0.7.5)
|
||||
websocket-extensions (>= 0.1.0)
|
||||
websocket-extensions (0.1.5)
|
||||
xpath (3.2.0)
|
||||
|
@ -512,7 +443,6 @@ GEM
|
|||
yaml_db (0.7.0)
|
||||
rails (>= 3.0)
|
||||
rake (>= 0.8.7)
|
||||
zeitwerk (2.6.13)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
@ -527,7 +457,12 @@ DEPENDENCIES
|
|||
bootstrap-sass-extras
|
||||
bootswatch-rails
|
||||
byebug
|
||||
capistrano
|
||||
capistrano-rails
|
||||
capistrano-rvm
|
||||
capistrano3-puma
|
||||
capybara
|
||||
carrierwave
|
||||
coffee-rails
|
||||
copy_carrierwave_file
|
||||
database_cleaner
|
||||
|
@ -543,19 +478,25 @@ DEPENDENCIES
|
|||
guard-rspec
|
||||
i18n-tasks
|
||||
icalendar
|
||||
image_processing
|
||||
jbuilder
|
||||
jquery-datatables-rails
|
||||
jquery-rails
|
||||
mini_magick
|
||||
mini_racer
|
||||
morrisjs-rails
|
||||
nested_form
|
||||
pg
|
||||
phony
|
||||
phony (~> 2.15.11)
|
||||
phony_rails
|
||||
pry-rails
|
||||
puma
|
||||
rails (~> 7.1.0)
|
||||
rails (~> 5.2.7)
|
||||
rails-erd
|
||||
rails-i18n
|
||||
raphael-rails
|
||||
refile!
|
||||
refile-mini_magick
|
||||
rqrcode
|
||||
rspec-rails
|
||||
sass-rails
|
||||
|
@ -566,12 +507,10 @@ DEPENDENCIES
|
|||
slim-rails
|
||||
spring
|
||||
spring-commands-rspec
|
||||
sprockets
|
||||
sqlite3
|
||||
standard
|
||||
thruster (~> 0.1.8)
|
||||
uglifier
|
||||
yaml_db
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.6
|
||||
1.17.3
|
||||
|
|
34
README.md
34
README.md
|
@ -1,31 +1,11 @@
|
|||
# Clarion
|
||||
Clarion
|
||||
=======
|
||||
|
||||
A CfP automation system for OpenFest.
|
||||
|
||||
## Installation
|
||||
Installation
|
||||
------------
|
||||
|
||||
### For local development
|
||||
|
||||
1. `git clone https://git.openfest.org/Site/clarion/`
|
||||
2. Run `rvm install "ruby-$(cat .ruby-version)"; rvm install "ruby-$(cat .ruby-version)"`
|
||||
3. Start up postgresql
|
||||
4. Run `bundle install; bin/rake bootstrap`
|
||||
5. You can now run the rails server with `bin/rails s`
|
||||
|
||||
### For production
|
||||
|
||||
`docker build -t clarion:latest -f Dockerfile .`
|
||||
|
||||
Note that the docker image contains a default user (for credentials see `db/seeds.rb`).
|
||||
|
||||
### docker-compose
|
||||
|
||||
`docker-compose up` will bring everything up on `http://127.0.0.1:3000` with production configuration.
|
||||
|
||||
## Initial Usage
|
||||
|
||||
1. Go to `http://127.0.0.1:3000/management/`
|
||||
2. Login (for initial creds see `db/seeds.rb`)
|
||||
3. Change the credentials
|
||||
4. Create a conference.
|
||||
- NB: When creating a conference make sure to use the same `domain` as the one you are currently using, otherwise nothing will be shown.
|
||||
1. `git clone https://github.com/ignisf/clarion.git`
|
||||
2. Run `bundle install; bin/rake bootstrap`
|
||||
3. You can now run the rails server with `bin/rails s`
|
15
TODO
15
TODO
|
@ -1,14 +1,14 @@
|
|||
- User-facing:
|
||||
- # Event proposal: lecture, workshop, open space (CRUD)
|
||||
- # Volunteership
|
||||
- Event proposal: lecture, workshop, open space (CRUD)
|
||||
- Volunteership
|
||||
- Sponsorship
|
||||
|
||||
- Admin:
|
||||
- # Create a conference, halls, tracks
|
||||
- # Starting a CFP
|
||||
- # conferences#show -> admin dashboard
|
||||
- # volunteers#index -> approved volunteers
|
||||
- # sponsorships#index -> generate token, links to send around
|
||||
- volunteers#index -> approved volunteers
|
||||
- sponsorships#index -> generate token, links to send around
|
||||
- scheduling -> calendar with events
|
||||
|
||||
- # proposals#index -> undecided events, grouped by user
|
||||
|
@ -17,11 +17,12 @@
|
|||
- users:
|
||||
- # edit profile: image upload and stuff
|
||||
- # show profile
|
||||
- # Edit profiles instead
|
||||
- Edit profiles instead
|
||||
|
||||
- # Home-area user CRUD
|
||||
- Home-area user CRUD
|
||||
- # Controller before_action that checks for current_conference
|
||||
- # Devise view styling
|
||||
- Devise view styling
|
||||
|
||||
Notes:
|
||||
- .row > .col-lg-12 -> put that outside of the "yield"?
|
||||
- human_attribute_name -> create a short alias?
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
//= link_tree ../images
|
||||
//= link_tree ../../../lib/initfest/assets/images
|
||||
//= link_directory ../javascripts .js
|
||||
//= link_directory ../stylesheets .css
|
||||
//= link initfest/application.css
|
||||
//= link initfest/application.js
|
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
|
@ -3,5 +3,6 @@
|
|||
//= require jquery_nested_form
|
||||
//= require bootstrap-sprockets
|
||||
//= require raphael
|
||||
//= require morris
|
||||
//= require chroma-js/chroma
|
||||
//= require_directory .
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
@import "bootstrap";
|
||||
@import "bootswatch/simplex/bootswatch";
|
||||
|
||||
/* @import "morris"; */
|
||||
@import "morris";
|
||||
|
||||
@import "users";
|
||||
@import "colors";
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
class Api::ConferencesController < Api::ApplicationController
|
||||
include ::PublicApiExposing
|
||||
|
||||
def index
|
||||
@conferences = Conference.all
|
||||
fresh_when @conferences
|
||||
end
|
||||
end
|
|
@ -5,6 +5,5 @@ class Api::EventTypesController < Api::ApplicationController
|
|||
|
||||
def index
|
||||
@event_types = current_conference.event_types.includes(:translations)
|
||||
fresh_when @event_types
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,5 +9,6 @@ class Api::EventsController < Api::ApplicationController
|
|||
|
||||
def halfnarp_friendly
|
||||
@events = current_conference.events.joins(:proposition).includes(:track, :event_type).where.not(propositions: {status: :rejected})
|
||||
render json: @events, include: [:track, :event_type]
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,5 @@ class Api::HallsController < Api::ApplicationController
|
|||
|
||||
def index
|
||||
@halls = current_conference.halls
|
||||
fresh_when @halls
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
class Api::SchedulesController < Api::ApplicationController
|
||||
include ::CurrentConferenceAssigning
|
||||
include ::PublicApiExposing
|
||||
before_action :require_current_conference!
|
||||
|
||||
def show
|
||||
@halls = Conference.last.halls.includes(:translations, slots: {approved_event: [:participants_with_personal_profiles, :proposition]})
|
||||
end
|
||||
end
|
|
@ -5,7 +5,5 @@ class Api::SlotsController < Api::ApplicationController
|
|||
|
||||
def index
|
||||
@slots = current_conference.slots
|
||||
|
||||
fresh_when @slots
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,5 @@ class Api::SpeakersController < Api::ApplicationController
|
|||
|
||||
def index
|
||||
@speakers = PersonalProfile.joins(user: {participations: {event: :proposition}}).where(events: {id: current_conference.approved_events.pluck(:id)}, conference: current_conference).distinct
|
||||
fresh_when @speakers
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,5 @@ class Api::TracksController < Api::ApplicationController
|
|||
|
||||
def index
|
||||
@tracks = current_conference.tracks.includes(:translations)
|
||||
fresh_when @tracks
|
||||
end
|
||||
end
|
||||
|
|
|
@ -33,8 +33,7 @@ class ApplicationController < ActionController::Base
|
|||
# TODO: make this get the domain from the database
|
||||
prepend_view_path "lib/initfest/views" if request.host =~ /openfest/
|
||||
prepend_view_path "lib/initfest/views" if request.host =~ /example/
|
||||
prepend_view_path "lib/initfest/views" if request.host =~ /^127\.0\.0/
|
||||
prepend_view_path "lib/initfest/views" if request.host =~ /^localhost$/
|
||||
prepend_view_path "lib/initfest/views" if request.host =~ /127\.0\.0/
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
module Management
|
||||
class FeedbackController < ManagementController
|
||||
def index
|
||||
@conference = find_conference
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def find_conference
|
||||
Conference.find(params[:conference_id])
|
||||
end
|
||||
end
|
||||
end
|
|
@ -8,11 +8,7 @@ module Management
|
|||
private
|
||||
|
||||
def authorize_user!
|
||||
if params[:conference_id] && params[:conference_id].to_i < Conference.last.id
|
||||
head :forbidden unless current_user.admin? && current_user.owner?
|
||||
else
|
||||
head :forbidden unless current_user.admin?
|
||||
end
|
||||
head :forbidden unless current_user.admin?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -53,7 +53,7 @@ module Management
|
|||
@conference = find_conference
|
||||
@profile = find_profile
|
||||
|
||||
if @profile.update(profile_params)
|
||||
if @profile.update_attributes(profile_params)
|
||||
redirect_to [:management, @conference, @profile]
|
||||
else
|
||||
render action: "edit"
|
||||
|
|
|
@ -4,7 +4,7 @@ module Management
|
|||
|
||||
def index
|
||||
@filters = filter_params || {}
|
||||
@volunteers = VolunteerSearch.new(scope: Volunteer.where(conference: current_conference).eager_load(:volunteer_team), filters: params[:filters]).results
|
||||
@volunteers = VolunteerSearch.new(scope: Volunteer.where(conference: current_conference).eager_load(:volunteer_teams), filters: params[:filters]).results
|
||||
end
|
||||
|
||||
def show
|
||||
|
@ -15,12 +15,6 @@ module Management
|
|||
@volunteer = current_conference.volunteers.find(params[:id])
|
||||
end
|
||||
|
||||
def destroy
|
||||
@volunteer = current_conference.volunteers.find(params[:id])
|
||||
@volunteer.destroy!
|
||||
redirect_to management_conference_volunteers_path(conference_id: current_conference.id)
|
||||
end
|
||||
|
||||
def update
|
||||
@volunteer = current_conference.volunteers.find(params[:id])
|
||||
|
||||
|
@ -41,9 +35,8 @@ module Management
|
|||
params.require(:volunteer).permit(:name, :picture, :email, :phone,
|
||||
:tshirt_size, :tshirt_cut,
|
||||
:food_preferences, :previous_experience,
|
||||
:notes, :language, :terms_accepted,
|
||||
:volunteer_team_id,
|
||||
additional_volunteer_team_ids: [])
|
||||
:notes, :language,
|
||||
volunteer_team_ids: [])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,27 +4,27 @@ class Public::ConferenceFeedbacksController < Public::ApplicationController
|
|||
@unrated_events = @conference.events
|
||||
.joins(:proposition).approved
|
||||
.joins("LEFT JOIN feedbacks ON feedbacks.feedback_receiving_id = events.id AND feedbacks.feedback_receiving_type = 'Event'")
|
||||
.where("feedbacks.session_id != ? OR feedbacks.id IS NULL", session.id.to_s).distinct
|
||||
.where("feedbacks.session_id != ? OR feedbacks.id IS NULL", session.id).distinct
|
||||
|
||||
@rated_events = @conference.events
|
||||
.joins(:proposition).approved
|
||||
.joins(:feedbacks)
|
||||
.where(feedbacks: {session_id: session.id.to_s}).distinct
|
||||
.where(feedbacks: {session_id: session.id}).distinct
|
||||
end
|
||||
|
||||
def new
|
||||
if current_conference.feedbacks.where(session_id: session.id.to_s).exists?
|
||||
@feedback = current_conference.feedbacks.where(session_id: session.id.to_s).order(updated_at: :asc).last
|
||||
if current_conference.feedbacks.where(session_id: session.id).exists?
|
||||
@feedback = current_conference.feedbacks.where(session_id: session.id).order(updated_at: :asc).last
|
||||
else
|
||||
@feedback = current_conference.feedbacks.build
|
||||
@feedback.author_email = Feedback.where(session_id: session.id.to_s).order(updated_at: :asc).last.try(:author_email)
|
||||
@feedback.author_email = Feedback.where(session_id: session.id).order(updated_at: :asc).last.try(:author_email)
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
@feedback = current_conference.feedbacks.build(feedback_params)
|
||||
@feedback.ip_address = request.remote_ip
|
||||
@feedback.session_id = session.id.to_s
|
||||
@feedback.session_id = session.id
|
||||
|
||||
if @feedback.save
|
||||
flash[:notice] = I18n.t("public.conference_feedbacks.new.success")
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
class Public::EventFeedbacksController < Public::ApplicationController
|
||||
def new
|
||||
if event.feedbacks.where(session_id: session.id.to_s).exists?
|
||||
@feedback = event.feedbacks.where(session_id: session.id.to_s).order(updated_at: :asc).last
|
||||
if event.feedbacks.where(session_id: session.id).exists?
|
||||
@feedback = event.feedbacks.where(session_id: session.id).order(updated_at: :asc).last
|
||||
else
|
||||
@feedback = event.feedbacks.build
|
||||
@feedback.author_email = Feedback.where(session_id: session.id.to_s).order(updated_at: :asc).last.try(:author_email)
|
||||
@feedback.author_email = Feedback.where(session_id: session.id).order(updated_at: :asc).last.try(:author_email)
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
@feedback = event.feedbacks.build(feedback_params)
|
||||
@feedback.ip_address = request.remote_ip
|
||||
@feedback.session_id = session.id.to_s
|
||||
@feedback.session_id = session.id
|
||||
|
||||
if @feedback.save
|
||||
flash[:notice] = I18n.t("public.event_feedbacks.new.success")
|
||||
|
|
|
@ -20,7 +20,7 @@ module Public
|
|||
def update
|
||||
@profile = current_user.personal_profile(current_conference)
|
||||
|
||||
if @profile.update(profile_params)
|
||||
if @profile.update_attributes(profile_params)
|
||||
flash[:notice] = t("views.personal_profiles.successfully_updated")
|
||||
redirect_to root_path
|
||||
else
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
module Public
|
||||
class VolunteerConfirmationsController < Public::ApplicationController
|
||||
def create
|
||||
@volunteer = Volunteer.find_by!(unique_id: params[:id])
|
||||
|
||||
if ActiveSupport::SecurityUtils.secure_compare(@volunteer.confirmation_token, params[:confirmation_token])
|
||||
@volunteer.transaction do
|
||||
@volunteer.touch(:confirmed_at)
|
||||
@volunteer.update(confirmation_token: nil)
|
||||
end
|
||||
|
||||
@volunteer.send_notification_to_volunteer
|
||||
|
||||
redirect_to edit_volunteer_path(@volunteer.unique_id), notice: I18n.t("views.volunteers.email_confirmed_successfully")
|
||||
else
|
||||
redirect_to root_path, alert: I18n.t("views.volunteers.email_confirmation_error")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,6 +1,5 @@
|
|||
module Public
|
||||
class VolunteersController < Public::ApplicationController
|
||||
before_action :check_honey_pot, only: [:create, :edit]
|
||||
def new
|
||||
@volunteer = current_conference.volunteers.build
|
||||
end
|
||||
|
@ -31,15 +30,11 @@ module Public
|
|||
|
||||
private
|
||||
|
||||
def check_honey_pot
|
||||
head :unauthorized unless params.dig(:volunteer_ht, :full_name).blank?
|
||||
end
|
||||
|
||||
def volunteer_params
|
||||
params.require(:volunteer).permit(
|
||||
:name, :picture, :email, :phone, :tshirt_size, :tshirt_cut,
|
||||
:food_preferences, :previous_experience, :notes, :language,
|
||||
:terms_accepted, :volunteer_team_id,
|
||||
volunteer_team_ids: []
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,10 +2,8 @@ class VolunteerMailer < ActionMailer::Base
|
|||
def team_notification(new_volunteer)
|
||||
@volunteer = new_volunteer
|
||||
|
||||
mail(
|
||||
to: @volunteer.conference.email,
|
||||
subject: "Нов доброволец за #{@volunteer.conference.title} - #{@volunteer.volunteer_team.name}"
|
||||
)
|
||||
mail(to: @volunteer.conference.email,
|
||||
subject: "Нов доброволец – #{@volunteer.name} <#{@volunteer.email}> за екип(и) #{@volunteer.volunteer_teams.map(&:name).join(", ")}")
|
||||
end
|
||||
|
||||
def volunteer_notification(new_volunteer)
|
||||
|
@ -13,19 +11,8 @@ class VolunteerMailer < ActionMailer::Base
|
|||
I18n.locale = @volunteer.language
|
||||
mail(to: @volunteer.email,
|
||||
reply_to: @volunteer.conference.email,
|
||||
from: "OpenFest <cfp@openfest.org>",
|
||||
from: "no-reply@openfest.org",
|
||||
subject: I18n.t("volunteer_mailer.success_notification.subject",
|
||||
conference_name: @volunteer.conference.title))
|
||||
end
|
||||
|
||||
def volunteer_email_confirmation(new_volunteer)
|
||||
@volunteer = new_volunteer
|
||||
I18n.locale = @volunteer.language
|
||||
mail(to: @volunteer.email,
|
||||
reply_to: @volunteer.conference.email,
|
||||
from: "OpenFest <cfp@openfest.org>",
|
||||
subject: I18n.t("volunteer_mailer.email_confirmation.subject",
|
||||
conference_name: @volunteer.conference.title))
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -22,15 +22,10 @@ class Conference < ActiveRecord::Base
|
|||
has_many :participants, -> { distinct }, class_name: "User", through: :events
|
||||
has_many :participant_profiles, class_name: "PersonalProfile"
|
||||
has_many :slots, through: :halls
|
||||
has_many :feedbacks, as: :feedback_receiving
|
||||
has_many :editions, primary_key: :host_name, foreign_key: :host_name, class_name: "Conference"
|
||||
has_many :events_of_all_editions, through: :editions, source: :events
|
||||
|
||||
include FeedbackReceiving
|
||||
has_many :feedbacks, as: :feedback_receiving
|
||||
has_many :feedbacks_with_comment, -> { where.not(comment: [nil, ""]) }, as: :feedback_receiving, class_name: 'Feedback'
|
||||
has_many :event_feedbacks, through: :events, source: :feedbacks
|
||||
has_many :event_feedbacks_with_comment, through: :events, source: :feedbacks_with_comment
|
||||
|
||||
accepts_nested_attributes_for :tracks, :halls, :event_types, :volunteer_teams,
|
||||
reject_if: :all_blank, allow_destroy: true
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ class Event < ActiveRecord::Base
|
|||
|
||||
scope :ranked, -> { where.not(ranked: nil).where.not(votes: nil) }
|
||||
scope :approved, -> { where(propositions: {status: Proposition.statuses[:approved]})}
|
||||
scope :approved_joined, -> { joins(:proposition).merge(Proposition.approved) }
|
||||
|
||||
validates :conference, presence: true
|
||||
validates :title, presence: true, length: {maximum: 65}
|
||||
|
|
|
@ -13,7 +13,7 @@ class PersonalProfile < ActiveRecord::Base
|
|||
|
||||
phony_normalize :mobile_phone, default_country_code: "BG", add_plus: false
|
||||
|
||||
has_one_attached :picture
|
||||
mount_uploader :picture, PictureUploader
|
||||
|
||||
accepts_nested_attributes_for :user
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ class Proposition < ActiveRecord::Base
|
|||
enum status: [:undecided, :approved, :rejected, :backup]
|
||||
delegate :proposable_title, :proposable_type, :proposable_description, to: :proposable
|
||||
|
||||
after_commit :send_creation_notification, on: [:create]
|
||||
after_create :send_creation_notification
|
||||
before_destroy :send_withdrawal_notification
|
||||
|
||||
def confirm!
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
class Slot < ActiveRecord::Base
|
||||
belongs_to :hall
|
||||
belongs_to :event, required: false
|
||||
belongs_to :approved_event, -> { joins(:proposition).approved_joined }, class_name: 'Event', foreign_key: 'event_id'
|
||||
end
|
||||
|
|
|
@ -38,7 +38,7 @@ class User < ActiveRecord::Base
|
|||
def build_personal_profile(conference, params = {})
|
||||
if personal_profiles.last.present?
|
||||
new_personal_profile = personal_profiles.last.try(:dup)
|
||||
new_personal_profile.picture.attach(personal_profiles.last.picture.blob)
|
||||
CopyCarrierwaveFile::CopyFileService.new(personal_profiles.last, new_personal_profile, :picture).set_file
|
||||
else
|
||||
new_personal_profile = personal_profiles.build
|
||||
end
|
||||
|
|
|
@ -3,63 +3,44 @@ class Volunteer < ActiveRecord::Base
|
|||
TSHIRT_CUTS = [:unisex, :female]
|
||||
FOOD_PREFERENCES = [:none, :vegetarian, :vegan]
|
||||
|
||||
has_one_attached :picture
|
||||
attachment :picture, type: :image
|
||||
|
||||
validates :name, :language, :tshirt_size, :tshirt_cut, :food_preferences, presence: true
|
||||
validates :tshirt_size, inclusion: {in: TSHIRT_SIZES.map(&:to_s)}
|
||||
validates :tshirt_cut, inclusion: {in: TSHIRT_CUTS.map(&:to_s)}
|
||||
validates :food_preferences, inclusion: {in: FOOD_PREFERENCES.map(&:to_s)}
|
||||
validates :email, format: {with: /\A[^@]+@[^@]+\z/}, presence: true, uniqueness: {scope: :conference_id}
|
||||
validates :email, format: {with: /\A[^@]+@[^@]+\z/}, presence: true
|
||||
validates :phone, presence: true, format: {with: /\A[+\- \(\)0-9]+\z/}
|
||||
validates :volunteer_team, presence: true
|
||||
validates :terms_accepted, acceptance: true
|
||||
validates :volunteer_teams, presence: true
|
||||
validate :volunteer_teams_belong_to_conference
|
||||
|
||||
phony_normalize :phone, default_country_code: "BG"
|
||||
|
||||
belongs_to :conference
|
||||
belongs_to :volunteer_team
|
||||
has_and_belongs_to_many :additional_volunteer_teams, class_name: "VolunteerTeam"
|
||||
has_and_belongs_to_many :volunteer_teams
|
||||
|
||||
before_create :ensure_main_volunteer_team_is_part_of_additional_volunteer_teams
|
||||
before_create :assign_unique_id
|
||||
before_create :assign_confirmation_token
|
||||
after_commit :send_email_confirmation_to_volunteer, on: [:create]
|
||||
after_commit :send_email_to_organisers, on: [:create] # technically the volunteer's email is not confirmed yet
|
||||
|
||||
def send_notification_to_volunteer
|
||||
VolunteerMailer.volunteer_notification(self).deliver_later
|
||||
end
|
||||
after_create :send_notification_to_organizers
|
||||
after_create :send_notification_to_volunteer
|
||||
|
||||
private
|
||||
|
||||
def ensure_main_volunteer_team_is_part_of_additional_volunteer_teams
|
||||
self.additional_volunteer_teams |= [volunteer_team] if volunteer_team
|
||||
end
|
||||
|
||||
def assign_unique_id
|
||||
self.unique_id = Digest::SHA256.hexdigest(SecureRandom.uuid)
|
||||
end
|
||||
|
||||
def assign_confirmation_token
|
||||
self.confirmation_token = Digest::SHA256.hexdigest(SecureRandom.uuid)
|
||||
end
|
||||
|
||||
def send_email_confirmation_to_volunteer
|
||||
VolunteerMailer.volunteer_email_confirmation(self).deliver_later
|
||||
end
|
||||
|
||||
def send_email_to_organisers
|
||||
def send_notification_to_organizers
|
||||
VolunteerMailer.team_notification(self).deliver_later
|
||||
end
|
||||
|
||||
def send_notification_to_volunteer
|
||||
VolunteerMailer.volunteer_notification(self).deliver_later
|
||||
end
|
||||
|
||||
def volunteer_teams_belong_to_conference
|
||||
conference_volunteer_teams = conference.volunteer_teams
|
||||
unless additional_volunteer_teams.all? { |team| conference_volunteer_teams.include? team }
|
||||
errors.add :additional_volunteer_teams, :invalid_volunteer_team
|
||||
end
|
||||
unless conference_volunteer_teams.include?(volunteer_team)
|
||||
errors.add :volunteer_team, :invalid_volunteer_team
|
||||
unless volunteer_teams.all? { |team| conference_volunteer_teams.include? team }
|
||||
errors.add :volunteer_teams, :invalid_volunteer_team
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class VolunteerSearch
|
||||
include SearchObject.module(:sorting)
|
||||
|
||||
option(:volunteer_team_id) { |scope, value| scope.joins(:volunteer_team).where volunteer_team: {id: value} }
|
||||
option(:volunteer_team_id) { |scope, value| scope.joins(:volunteer_teams).where volunteer_teams: {id: value} }
|
||||
|
||||
sort_by "name"
|
||||
config[:defaults]["sort"] = "#{config[:sort_attributes].first} asc"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
class VolunteerTeam < ActiveRecord::Base
|
||||
belongs_to :conference
|
||||
has_many :volunteers, inverse_of: :volunteer_team
|
||||
has_and_belongs_to_many :supporters, class_name: "Volunteer", inverse_of: :additional_volunteer_teams
|
||||
has_and_belongs_to_many :volunteers
|
||||
|
||||
validates :name, presence: true
|
||||
validates :color, presence: true, format: {with: /\A#?[a-f0-9]{6}\z/i}
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
class PictureUploader < CarrierWave::Uploader::Base
|
||||
# Include RMagick or MiniMagick support:
|
||||
# include CarrierWave::RMagick
|
||||
include CarrierWave::MiniMagick
|
||||
|
||||
# Choose what kind of storage to use for this uploader:
|
||||
storage :file
|
||||
# storage :fog
|
||||
|
||||
# Override the directory where uploaded files will be stored.
|
||||
# This is a sensible default for uploaders that are meant to be mounted:
|
||||
def store_dir
|
||||
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
||||
end
|
||||
|
||||
# Provide a default URL as a default if there hasn't been a file uploaded:
|
||||
def default_url
|
||||
ActionController::Base.helpers.asset_path("fallback/profile_picture/" + [version_name, "default.png"].compact.join("_"))
|
||||
end
|
||||
|
||||
# Process files as they are uploaded:
|
||||
# process :scale => [200, 300]
|
||||
#
|
||||
# def scale(width, height)
|
||||
# # do something
|
||||
# end
|
||||
|
||||
# Create different versions of your uploaded files:
|
||||
|
||||
version :medium do
|
||||
process resize_to_fit: [171, 180]
|
||||
end
|
||||
|
||||
version :thumb do
|
||||
process resize_to_fit: [50, 50]
|
||||
end
|
||||
|
||||
version :schedule do
|
||||
process resize_to_fill: [100, 100]
|
||||
end
|
||||
|
||||
# Add a white list of extensions which are allowed to be uploaded.
|
||||
# For images you might use something like this:
|
||||
def extension_white_list
|
||||
%w[jpg jpeg png]
|
||||
end
|
||||
|
||||
# Override the filename of the uploaded files:
|
||||
# Avoid using model.id or version_name here, see uploader/store.rb for details.
|
||||
# def filename
|
||||
# "something.jpg" if original_filename
|
||||
# end
|
||||
end
|
|
@ -1 +0,0 @@
|
|||
json.array! @conferences, :id, :title, :start_date, :end_date, :created_at, :updated_at
|
|
@ -1,13 +0,0 @@
|
|||
json.array! @events, cached: ->(event) { [event, event.track, event.event_type] } do |event|
|
||||
json.id event.id
|
||||
json.title event.title
|
||||
json.abstract event.abstract
|
||||
json.track_id event.track_id
|
||||
|
||||
json.track do
|
||||
json.name event.track.name
|
||||
end
|
||||
json.event_type do
|
||||
json.name event.event_type.name
|
||||
end
|
||||
end
|
|
@ -1,22 +0,0 @@
|
|||
@halls.each do |hall|
|
||||
json.set! hall.name do
|
||||
json.days do
|
||||
hall.slots.to_a.sort_by(&:starts_at).group_by { |slot| slot.starts_at.to_date }.each do |day, slots|
|
||||
json.set! day do
|
||||
json.array! slots do |slot|
|
||||
next unless slot.approved_event
|
||||
json.starts_at slot.starts_at
|
||||
json.starts_at_human l(slot.starts_at, format: '%a, %H:%M')
|
||||
json.title slot.approved_event.title
|
||||
json.speakers do
|
||||
json.array! slot.approved_event.participants_with_personal_profiles do |participant|
|
||||
json.name participant.name
|
||||
json.email participant.public_email
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
@speakers.each do |speaker|
|
||||
json.set! speaker.user_id do
|
||||
json.extract! speaker, :twitter, :github, :biography, :public_email, :organisation, :last_name, :first_name, :name
|
||||
json.picture rails_blob_url(speaker.picture.variant(resize_to_fill: [100, 100]))
|
||||
json.extract! speaker, :twitter, :github, :biography, :public_email, :organisation, :last_name, :first_name
|
||||
json.picture speaker.picture.serializable_hash
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
Здравейте,
|
||||
|
||||
Имаме удоволствието да ви информираме, че Вашето предложение за участие в „<%= @event.conference.title %>“ с <%= @event.event_type.name.mb_chars.downcase %> на тема „<%= @event.title %>“ беше одобрено. <% if @event.slot.present? -%>
|
||||
Ще се проведе на <%= I18n.l @event.slot.starts_at, format: :long %> часа.
|
||||
<% else %>
|
||||
Определянето на датата и часа на провеждане все още предстои.
|
||||
<% end %>
|
||||
Изпращаме ви отново този mail с (почти) финалните дати и часове за провеждане на лекциите ви.
|
||||
|
||||
Моля, потвърдете Вашето участие възможно най-скоро като кликнете на следния линк:
|
||||
<%= confirm_event_url @event, host: @event.conference.host_name, protocol: 'https' %>
|
||||
Предложението Ви за участие в <%= @event.conference.title %> с <%= @event.event_type.name.mb_chars.downcase %> на тема „<%= @event.title %>“> ще се проведе на <%= I18n.l @event.slot.starts_at, format: :long %> часа.
|
||||
|
||||
С приложения QR код към този имейл ще можете да достъпите формуляра за обратна връзка на предложеното от Вас събитие. Моля, включете го в презентацията си.
|
||||
Отговорете на този email, ако възникнат някакви допълнителни въпроси.
|
||||
|
||||
Поздрави,
|
||||
Екипът на <%= @event.conference.title %>
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
Hello,
|
||||
|
||||
We are thrilled to inform you that your request for participation in <%= @event.conference.title %> with the <%= @event.event_type.name.downcase %> titled "<%= @event.title %>" has been approved. <% if @event.slot.present? -%>
|
||||
We are happy to notify you that your request for participation in <%= @event.conference.title %> with the <%= @event.event_type.name.downcase %> titled "<%= @event.title %>" was approved. <% if @event.slot.present? -%>
|
||||
It has been scheduled for <%= I18n.l @event.slot.starts_at, format: :long %>.
|
||||
<% else %>
|
||||
It has not been scheduled yet.
|
||||
<% end %>
|
||||
|
||||
To confirm your participation please follow the link below as soon as you can:
|
||||
Please confirm your participation as soon as you can by following the following link:
|
||||
<%= confirm_event_url @event, host: @event.conference.host_name, protocol: 'https' %>
|
||||
|
||||
We kindly request that you ensure the inclusion of the QR code attached to this email in your presentation. It links directly to the feedback form for your presentation, making it easier for attendees to provide valuable insights.
|
||||
Please make sure you include the QR code attached to this email in your
|
||||
presentation. It contains a link to the feedback form for your <%= @event.event_type.name.downcase %>.
|
||||
|
||||
Should you have any questions or require further information, please do not hesitate to contact us by replying to this email.
|
||||
Please reply to this email if your presentation will be remote or if you'll be presenting using a MacBook.
|
||||
|
||||
Best regards,
|
||||
Please respond to this email in case you have any questions.
|
||||
|
||||
Regards,
|
||||
The <%= @event.conference.title %> Team
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
Здравейте,
|
||||
|
||||
За съжаление, поради голямото количество предложения за лекции, които получихме тази година, и ограниченото ни време, предложението ви за <%= @event.event_type.name.mb_chars.downcase %> на тема „<%= @event.title %>“ няма да може да бъде включено в програмата.
|
||||
За съжаление, поради големия брой предложения за лекции, които получихме тази година, както и ограниченото време, с което разполагаме, вашето предложение за <%= @event.event_type.name.mb_chars.downcase %> на тема „<%= @event.title %>“ не влезе в програмата.
|
||||
|
||||
Обаче, ако желаете, може да представите лекцията си в рамките на 5 минути като част от програмата на Lightning talks (кратки 5 минутни лекции). Записването за тези слотове ще бъде възможно на място.
|
||||
Ако желаете, може да представите лекцията си в 5 минути в слота в програмата за Lightning talks (кратки лекции от по 5 минути). Записването за тях ще става на място.
|
||||
|
||||
Благодарим ви за интереса и участието ви в нашето събитие. До скоро!
|
||||
|
||||
Поздрави,
|
||||
Екипът на <%= @event.conference.title %>
|
||||
До скоро! Екипът на <%= @event.conference.title %>
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
Hello,
|
||||
Hi,
|
||||
|
||||
We regret to inform you that, due to an overwhelming number of talk submissions and the time constraints, we were unable to include your submission for a <%= @event.event_type.name.mb_chars.downcase %> titled "<%= @event.title %>" in the main schedule.
|
||||
Regretfully, because of the high amount of talk submissions that we've received this year and the limited amount of time that we have, your submission for a <%= @event.event_type.name.mb_chars.downcase %> titled "<%= @event.title %>" was not included in the schedule.
|
||||
|
||||
However, we have an alternative option available for you. If you're interested, you can present a condensed, 5-minute version of your talk during our Lightning Talks slot at the event venue. You can sign up for Lightning Talks in person during the event.
|
||||
If you prefer, you can present your talk in 5 minutes in the Lightning talks slot (that's for short, 5 minute talks). The sign-up for these would be at the venue itself, during the event.
|
||||
|
||||
We appreciate your interest in contributing to <%= @event.conference.title %> and hope to see you there!
|
||||
|
||||
Best regards,
|
||||
<%= @event.conference.title %> Team
|
||||
See you soon,
|
||||
<%= @event.conference.title %> team
|
||||
|
|
|
@ -12,10 +12,10 @@ html
|
|||
- else
|
||||
| Clarion
|
||||
|
||||
= stylesheet_link_tag "management/application", nopush: false
|
||||
= stylesheet_link_tag "management/application"
|
||||
= csrf_meta_tags
|
||||
body
|
||||
main
|
||||
= render 'layouts/management/flash'
|
||||
== yield
|
||||
= javascript_include_tag "management/application", nopush: false
|
||||
= javascript_include_tag "management/application"
|
||||
|
|
|
@ -15,11 +15,11 @@ html
|
|||
- else
|
||||
| Clarion
|
||||
|
||||
= stylesheet_link_tag "management/application", nopush: false
|
||||
= stylesheet_link_tag "management/application"
|
||||
= csrf_meta_tags
|
||||
body
|
||||
= render 'layouts/management/navigation'
|
||||
main
|
||||
= render 'layouts/management/flash'
|
||||
== yield
|
||||
= javascript_include_tag "management/application", nopush: false
|
||||
= javascript_include_tag "management/application"
|
||||
|
|
|
@ -32,9 +32,7 @@ nav.navbar.navbar-static-top.navbar-inverse role="navigation"
|
|||
/ li class="#{'active' if controller_name == 'propositions'}"
|
||||
/ = link_to [:management, current_conference, :propositions] do
|
||||
/ => icon 'question', Proposition.model_name.human(count: 2).mb_chars.capitalize, class: 'fa-fw'
|
||||
li class="#{'active' if controller_name == 'feedback'}"
|
||||
= link_to management_conference_feedback_index_path(current_conference) do
|
||||
=> icon 'star-half-o', t('activerecord.models.feedback', count: 2).mb_chars.capitalize, class: 'fa-fw'
|
||||
|
||||
ul.nav.navbar-nav.navbar-right
|
||||
li.dropdown
|
||||
= link_to '#', class: 'dropdown-toggle', data: {toggle: 'dropdown'} do
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
.panel.panel-default
|
||||
- if personal_profile.present?
|
||||
.panel-image
|
||||
= image_tag personal_profile.picture
|
||||
= image_tag personal_profile.picture.url
|
||||
.panel-body
|
||||
.media
|
||||
.media-body
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<%- csv_headers = %w{id title subtitle type track language paticipants length status rank number_of_votes proposer_notes} -%>
|
||||
<%- csv_headers = %w{id title subtitle type track language paticipants status rank number_of_votes} -%>
|
||||
<%= CSV.generate_line(csv_headers).html_safe -%>
|
||||
<%- @events.each do |event| -%>
|
||||
<%= CSV.generate_line([event.id, event.title, event.subtitle, event.event_type.name, event.track.name, event.language, participant_names_with_emails(event).join(', '), event.length, event.status, event.rank, event.number_of_votes, event.notes]).html_safe -%>
|
||||
<%= CSV.generate_line([event.id, event.title, event.subtitle, event.event_type.name, event.track.name, event.language, participant_names_with_emails(event).join(', '), event.status, event.rank, event.number_of_votes]).html_safe -%>
|
||||
<%- end -%>
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<%- csv_headers = %w{id feedback_receiving_type feedback_receiving_id name/title author_email rating comment ip session_id created_at} -%>
|
||||
<%= CSV.generate_line(csv_headers).html_safe -%>
|
||||
<%- @conference.feedbacks.each do |feedback| -%>
|
||||
<%= CSV.generate_line([feedback.id, feedback.feedback_receiving_type, feedback.feedback_receiving_id, feedback.feedback_receiving&.title || feefback.feedback_receiving&.name, feedback.author_email, feedback.rating, feedback.comment, feedback.ip_address, feedback.session_id, feedback.created_at]).html_safe -%>
|
||||
<%- end -%>
|
||||
<%- @conference.event_feedbacks.each do |feedback| -%>
|
||||
<%= CSV.generate_line([feedback.id, feedback.feedback_receiving_type, feedback.feedback_receiving_id, feedback.feedback_receiving&.title || feefback.feedback_receiving&.name, feedback.author_email, feedback.rating, feedback.comment, feedback.ip_address, feedback.session_id, feedback.created_at]).html_safe -%>
|
||||
<%- end -%>
|
|
@ -1,62 +0,0 @@
|
|||
- content_for :title
|
||||
= t '.feedback'
|
||||
|
||||
.row
|
||||
.col-lg-12
|
||||
h1.page-header
|
||||
= t '.feedback'
|
||||
= link_to management_conference_feedback_index_path(@conference, format: 'csv'), class: 'btn btn-info pull-right'
|
||||
= icon :download, t('.export')
|
||||
|
||||
- if @conference.start_date.past? || @conference.rated?
|
||||
.row
|
||||
.col-xs-12
|
||||
h3
|
||||
=< t '.overall_organisation'
|
||||
- if @conference.rated?
|
||||
.row
|
||||
.col-md-10
|
||||
.panel.panel-default
|
||||
.panel-heading = t('.comments')
|
||||
- if @conference.feedbacks_with_comment.order(created_at: :asc).size > 0
|
||||
table.table.table-striped
|
||||
tbody
|
||||
= render partial: '/management/shared/feedback', collection: @conference.feedbacks_with_comment.order(created_at: :asc), locals: {hide_title: true}
|
||||
- else
|
||||
.panel-body
|
||||
= t ('.no_comments_received')
|
||||
.col-md-2
|
||||
.panel.panel-info
|
||||
.panel-heading
|
||||
= t '.average_grade'
|
||||
.panel-body.text-right
|
||||
.huge
|
||||
= number_with_precision(@conference.average_rating, precision: 2, strip_insignificant_zeros: true) || '–'
|
||||
= t('.total_feedback_grades', total_grades: @conference.feedbacks.count, count: @conference.feedbacks.count)
|
||||
- else
|
||||
p = t '.no_feedback_received'
|
||||
|
||||
- if @conference.start_date.past? || @conference.event_feedbacks_with_comment.order(created_at: :asc).size > 0
|
||||
.row
|
||||
.col-xs-12
|
||||
h3
|
||||
=< t '.events'
|
||||
|
||||
- if @conference.event_feedbacks.size > 0
|
||||
.row
|
||||
.col-md-10
|
||||
.panel.panel-default
|
||||
.panel-heading = t('.comments')
|
||||
table.table.table-striped
|
||||
tbody
|
||||
= render partial: '/management/shared/feedback', collection: @conference.event_feedbacks_with_comment.order(created_at: :asc)
|
||||
.col-md-2
|
||||
.panel.panel-info
|
||||
.panel-heading
|
||||
= t '.average_grade'
|
||||
.panel-body.text-right
|
||||
.huge
|
||||
= number_with_precision(@conference.event_feedbacks.average(:rating), precision: 2, strip_insignificant_zeros: true) || '–'
|
||||
= t('.total_feedback_grades', total_grades: @conference.event_feedbacks.count, count: @conference.event_feedbacks.count)
|
||||
- else
|
||||
p = t '.no_comments_received'
|
|
@ -10,9 +10,9 @@
|
|||
.panel-body
|
||||
.row
|
||||
.col-lg-12
|
||||
- if f.object.picture.attached?
|
||||
- if f.object.picture.present?
|
||||
.col-sm-offset-3.col-sm-9
|
||||
= image_tag f.object.picture.variant(resize_to_limit: [150, 150]), class: 'img-thumbnail'
|
||||
= image_tag f.object.picture.medium.url, class: 'img-thumbnail'
|
||||
|
||||
= f.input :picture, wrapper: :horizontal_file_input
|
||||
|
||||
|
|
|
@ -27,9 +27,10 @@
|
|||
.media
|
||||
.media-left
|
||||
- if profile.present?
|
||||
= image_tag(profile.picture.variant(resize_to_fill: [50, 50]))
|
||||
= image_tag(profile.picture.thumb.url)
|
||||
- else
|
||||
= image_tag('avatar-placeholder.png')
|
||||
= image_tag(PictureUploader.new.thumb.url)
|
||||
|
||||
.media-body
|
||||
h4.media-heading
|
||||
- if profile.try(:name).present?
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
.col-sm-5.col-md-4
|
||||
.panel.panel-default
|
||||
.panel-image
|
||||
= image_tag @profile.picture
|
||||
= image_tag @profile.picture.url
|
||||
.panel-body
|
||||
.media
|
||||
.media-body
|
||||
|
|
|
@ -11,6 +11,6 @@ tr
|
|||
= feedback.author_email
|
||||
- else
|
||||
= t(".anonymous")
|
||||
- if !local_assigns[:hide_title]
|
||||
- if !local_assigns[:show_title]
|
||||
span<> = t '.about'
|
||||
= link_to feedback.feedback_receiving.title, [:management, current_conference, feedback.feedback_receiving]
|
||||
= link_to feedback.feedback_receiving.title, [:management, feedback.feedback_receiving.conference, feedback.feedback_receiving]
|
||||
|
|
|
@ -5,14 +5,13 @@
|
|||
.col-lg-12
|
||||
- if f.object.picture.present?
|
||||
.col-sm-offset-3.col-sm-9
|
||||
= @volunteer.picture.variant(resize_to_limit: [150, 150]) if @volunteer.picture.attached?
|
||||
= attachment_image_tag(@volunteer, :picture, :fill, 150, 150) if @volunteer.picture.present?
|
||||
|
||||
= f.input :picture, as: :file, wrapper: :horizontal_file_input, direct: true
|
||||
= f.input :picture, as: :attachment, wrapper: :horizontal_file_input, direct: true
|
||||
|
||||
= f.input :name, autofocus: true
|
||||
= f.input :email
|
||||
= f.association :volunteer_team, as: :radio_buttons, wrapper: :horizontal_radio_and_checkboxes, collection: current_conference.volunteer_teams
|
||||
= f.association :additional_volunteer_teams, as: :check_boxes, wrapper: :horizontal_radio_and_checkboxes, collection: current_conference.volunteer_teams
|
||||
= f.association :volunteer_teams, as: :check_boxes, wrapper: :horizontal_radio_and_checkboxes, collection: current_conference.volunteer_teams
|
||||
= f.input :phone, input_html: {value: @volunteer.phone.try(:phony_formatted, format: :international)}
|
||||
= f.input :language, as: :radio_buttons, wrapper: :horizontal_radio_and_checkboxes, collection: locale_collection, include_blank: false, checked: (@volunteer.language.presence || I18n.locale)
|
||||
= f.input :tshirt_size, collection: Volunteer::TSHIRT_SIZES, as: :radio_buttons, wrapper: :horizontal_radio_and_checkboxes, checked: (@volunteer.tshirt_size.presence || :m)
|
||||
|
@ -20,6 +19,5 @@
|
|||
= f.input :food_preferences, collection: Volunteer::FOOD_PREFERENCES, wrapper: :horizontal_radio_and_checkboxes, as: :radio_buttons, checked: (@volunteer.food_preferences.presence || :none)
|
||||
= f.input :previous_experience
|
||||
= f.input :notes
|
||||
= f.input :terms_accepted
|
||||
.panel-footer.text-right
|
||||
= f.submit class: 'btn btn-primary'
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<%- csv_headers = %w{id name email language unique_id phone tshirt_size tshirt_cut food_preferences previous_experience notes team additional_teams} -%>
|
||||
<%- csv_headers = %w{id name email language unique_id phone tshirt_size tshirt_cut food_preferences previous_experience notes teams} -%>
|
||||
<%= CSV.generate_line(csv_headers).html_safe -%>
|
||||
<%- @volunteers.each do |volunteer| -%>
|
||||
<%= CSV.generate_line([volunteer.id,
|
||||
volunteer.name,
|
||||
"#{volunteer.confirmed_at.nil? ? '(unverified) ' : ''}#{volunteer.email}",
|
||||
volunteer.email,
|
||||
volunteer.language,
|
||||
volunteer.unique_id,
|
||||
volunteer.phone,
|
||||
|
@ -12,6 +12,5 @@
|
|||
volunteer.food_preferences,
|
||||
volunteer.previous_experience,
|
||||
volunteer.notes,
|
||||
volunteer.volunteer_team.name,
|
||||
volunteer.additional_volunteer_teams.map(&:name).join(', ')]).html_safe -%>
|
||||
volunteer.volunteer_teams.map(&:name).join(', ')]).html_safe -%>
|
||||
<%- end -%>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
thead
|
||||
tr
|
||||
th = t '.profile'
|
||||
th = Volunteer.human_attribute_name :volunteer_team
|
||||
th = Volunteer.human_attribute_name :volunteer_teams
|
||||
th.actions
|
||||
tbody
|
||||
- @volunteers.each do |volunteer|
|
||||
|
@ -41,16 +41,16 @@
|
|||
.media
|
||||
.media-left
|
||||
- if volunteer.picture.present?
|
||||
= image_tag volunteer.picture.variant(resize_to_limit: [50, 50])
|
||||
= attachment_image_tag(volunteer, :picture, :fill, 50, 50)
|
||||
- else
|
||||
= image_tag('avatar-placeholder.png')
|
||||
= image_tag(PictureUploader.new.thumb.url)
|
||||
.media-body
|
||||
h4.media-heading
|
||||
= volunteer.name
|
||||
p
|
||||
= icon(volunteer.confirmed_at.present? ? "envelope" : "envelope-o", "#{volunteer.confirmed_at.nil? ? '(unverified) ' : ''}#{volunteer.email}")
|
||||
= icon(:envelope, volunteer.email)
|
||||
td
|
||||
= volunteer.volunteer_team.name
|
||||
= volunteer.volunteer_teams.map(&:name).join(', ')
|
||||
td.actions
|
||||
div.btn-group.btn-group-sm
|
||||
= action_buttons(current_conference, volunteer, [:show, :edit])
|
||||
|
|
|
@ -10,25 +10,22 @@
|
|||
.panel-body
|
||||
.media
|
||||
.media-left.hidden-sm.hidden-xs
|
||||
- if @volunteer.picture.attached?
|
||||
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
|
||||
- if @volunteer.picture.present?
|
||||
= attachment_image_tag(@volunteer, :picture, :fill, 150, 150)
|
||||
- else
|
||||
= image_tag('avatar-placeholder.png')
|
||||
= image_tag(PictureUploader.new.medium.url)
|
||||
|
||||
.media-body
|
||||
.text-center.visible-sm.visible-xs
|
||||
- if @volunteer.picture.attached?
|
||||
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
|
||||
- if @volunteer.picture.present?
|
||||
= attachment_image_tag(@volunteer, :picture, :fill, 150, 150)
|
||||
- else
|
||||
= image_tag('avatar-placeholder.png')
|
||||
|
||||
= image_tag(PictureUploader.new.medium.url)
|
||||
h4.media-heading
|
||||
= @volunteer.name
|
||||
hr
|
||||
h4 = Volunteer.human_attribute_name(:volunteer_team)
|
||||
= @volunteer.volunteer_team.name
|
||||
h4 = Volunteer.human_attribute_name(:additional_volunteer_teams)
|
||||
= @volunteer.additional_volunteer_teams.map(&:name).join(', ')
|
||||
h4 = Volunteer.human_attribute_name(:volunteer_teams)
|
||||
= @volunteer.volunteer_teams.map(&:name).join(', ')
|
||||
- if @volunteer.previous_experience.present?
|
||||
h4 = Volunteer.human_attribute_name(:previous_experience)
|
||||
= simple_format @volunteer.previous_experience
|
||||
|
@ -38,7 +35,7 @@
|
|||
h4 = t '.other_info'
|
||||
= icon(:language, t("locales.#{@volunteer.language}"))
|
||||
br
|
||||
= icon(@volunteer.confirmed_at.present? ? "envelope" : "envelope-o", @volunteer.email)
|
||||
= icon(:envelope, @volunteer.email)
|
||||
br
|
||||
= icon(:phone, @volunteer.phone.try(:phony_formatted, format: :international))
|
||||
br
|
||||
|
|
|
@ -1,11 +1,22 @@
|
|||
Здравейте,
|
||||
|
||||
Някой изпрати кандидатура за доброволец.
|
||||
<%= @volunteer.name %> <<%= @volunteer.email %>> изпрати кандидатура за доброволец.
|
||||
|
||||
Екип: <%= @volunteer.volunteer_team.name %>
|
||||
|
||||
Връзка към профил: <%= management_conference_volunteer_url(@volunteer.conference, @volunteer) %>
|
||||
Екипи: <%= @volunteer.volunteer_teams.map(&:name).join(', ') %>
|
||||
|
||||
Снимка: <%= attachment_url(@volunteer, :picture, host: "https://#{@volunteer.conference.host_name}/") %>
|
||||
Език: <%= @volunteer.language %>
|
||||
Телефон: <%= @volunteer.phone %>
|
||||
Размер на тениска: <%= @volunteer.tshirt_size %>
|
||||
Кройка на тениска: <%= @volunteer.tshirt_cut %>
|
||||
Предпочитания за храна: <%= @volunteer.food_preferences %>
|
||||
<% if @volunteer.previous_experience.present? -%>
|
||||
|
||||
Предходен опит:
|
||||
<%= @volunteer.previous_experience %>
|
||||
<% end -%>
|
||||
<% if @volunteer.notes.present? -%>
|
||||
|
||||
Бележки:
|
||||
<%= @volunteer.notes %>
|
||||
<% end -%>
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
Здравейте,
|
||||
|
||||
Моля, потвърдете e-mail адреса си от следния линк:
|
||||
|
||||
<%= confirm_volunteer_url(@volunteer.unique_id, confirmation_token: @volunteer.confirmation_token, host: @volunteer.conference.host_name, protocol: 'https') %>
|
|
@ -1,5 +0,0 @@
|
|||
Hello,
|
||||
|
||||
Please confirm your e-mail address by clicking the following link:
|
||||
|
||||
<%= confirm_volunteer_url(@volunteer.unique_id, confirmation_token: @volunteer.confirmation_token, host: @volunteer.conference.host_name, protocol: 'https') %>
|
|
@ -1,6 +1,6 @@
|
|||
Здравейте,
|
||||
|
||||
Кандидатурата ви беше получена.
|
||||
Кандидатурата Ви беше получена.
|
||||
|
||||
Можете да я редактирате по всяко време от този адрес:
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
# If running the rails server then create or migrate existing database
|
||||
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
|
||||
./bin/rails db:prepare
|
||||
fi
|
||||
|
||||
exec "${@}"
|
11
bin/rails
11
bin/rails
|
@ -1,4 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
APP_PATH = File.expand_path("../config/application", __dir__)
|
||||
require_relative "../config/boot"
|
||||
require "rails/commands"
|
||||
begin
|
||||
load File.expand_path('../spring', __FILE__)
|
||||
rescue LoadError => e
|
||||
raise unless e.message.include?('spring')
|
||||
end
|
||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||
require_relative '../config/boot'
|
||||
require 'rails/commands'
|
||||
|
|
9
bin/rake
9
bin/rake
|
@ -1,4 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
require_relative "../config/boot"
|
||||
require "rake"
|
||||
begin
|
||||
load File.expand_path('../spring', __FILE__)
|
||||
rescue LoadError => e
|
||||
raise unless e.message.include?('spring')
|
||||
end
|
||||
require_relative '../config/boot'
|
||||
require 'rake'
|
||||
Rake.application.run
|
||||
|
|
31
bin/setup
31
bin/setup
|
@ -1,33 +1,36 @@
|
|||
#!/usr/bin/env ruby
|
||||
require "fileutils"
|
||||
require 'fileutils'
|
||||
include FileUtils
|
||||
|
||||
# path to your application root.
|
||||
APP_ROOT = File.expand_path("..", __dir__)
|
||||
APP_ROOT = File.expand_path('..', __dir__)
|
||||
|
||||
def system!(*args)
|
||||
system(*args, exception: true)
|
||||
system(*args) || abort("\n== Command #{args} failed ==")
|
||||
end
|
||||
|
||||
FileUtils.chdir APP_ROOT do
|
||||
# This script is a way to set up or update your development environment automatically.
|
||||
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
||||
chdir APP_ROOT do
|
||||
# This script is a starting point to setup your application.
|
||||
# Add necessary setup steps to this file.
|
||||
|
||||
puts "== Installing dependencies =="
|
||||
system! "gem install bundler --conservative"
|
||||
system("bundle check") || system!("bundle install")
|
||||
puts '== Installing dependencies =='
|
||||
system! 'gem install bundler --conservative'
|
||||
system('bundle check') || system!('bundle install')
|
||||
|
||||
# Install JavaScript dependencies if using Yarn
|
||||
# system('bin/yarn')
|
||||
|
||||
# puts "\n== Copying sample files =="
|
||||
# unless File.exist?("config/database.yml")
|
||||
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
|
||||
# unless File.exist?('config/database.yml')
|
||||
# cp 'config/database.yml.sample', 'config/database.yml'
|
||||
# end
|
||||
|
||||
puts "\n== Preparing database =="
|
||||
system! "bin/rails db:prepare"
|
||||
system! 'bin/rails db:setup'
|
||||
|
||||
puts "\n== Removing old logs and tempfiles =="
|
||||
system! "bin/rails log:clear tmp:clear"
|
||||
system! 'bin/rails log:clear tmp:clear'
|
||||
|
||||
puts "\n== Restarting application server =="
|
||||
system! "bin/rails restart"
|
||||
system! 'bin/rails restart'
|
||||
end
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
# This file loads spring without using Bundler, in order to be fast.
|
||||
# It gets overwritten when you run the `spring binstub` command.
|
||||
|
||||
unless defined?(Spring)
|
||||
require 'rubygems'
|
||||
require 'bundler'
|
||||
|
||||
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
||||
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
|
||||
if spring
|
||||
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
||||
gem 'spring', spring.version
|
||||
require 'spring/binstub'
|
||||
end
|
||||
end
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
require "rubygems"
|
||||
require "bundler/setup"
|
||||
|
||||
load Gem.bin_path("thruster", "thrust")
|
12
bin/yarn
12
bin/yarn
|
@ -1,15 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
APP_ROOT = File.expand_path('..', __dir__)
|
||||
Dir.chdir(APP_ROOT) do
|
||||
yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
|
||||
select { |dir| File.expand_path(dir) != __dir__ }.
|
||||
product(["yarn", "yarn.cmd", "yarn.ps1"]).
|
||||
map { |dir, file| File.expand_path(file, dir) }.
|
||||
find { |file| File.executable?(file) }
|
||||
|
||||
if yarn
|
||||
exec yarn, *ARGV
|
||||
else
|
||||
begin
|
||||
exec "yarnpkg", *ARGV
|
||||
rescue Errno::ENOENT
|
||||
$stderr.puts "Yarn executable was not detected in the system."
|
||||
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
||||
exit 1
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# This file is used by Rack-based servers to start the application.
|
||||
|
||||
require_relative "config/environment"
|
||||
|
||||
require ::File.expand_path("../config/environment", __FILE__)
|
||||
run Rails.application
|
||||
Rails.application.load_server
|
||||
|
|
|
@ -9,33 +9,30 @@ Bundler.require(*Rails.groups)
|
|||
module Clarion
|
||||
class Application < Rails::Application
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 7.1
|
||||
config.load_defaults 5.2
|
||||
|
||||
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
||||
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
||||
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
||||
config.autoload_lib(ignore: %w(assets tasks))
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration can go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded after loading
|
||||
# the framework and any gems in your application.
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
# in config/environments, which are processed later.
|
||||
#
|
||||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
||||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||
config.time_zone = "Sofia"
|
||||
# config.eager_load_paths << Rails.root.join("extras")
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.available_locales = [:bg, :en]
|
||||
config.i18n.default_locale = :bg
|
||||
|
||||
config.active_record.schema_format = :sql
|
||||
|
||||
config.generators do |g|
|
||||
g.test_framework :rspec,
|
||||
fixtures: true,
|
||||
view_specs: false,
|
||||
helper_specs: false,
|
||||
routing_specs: false,
|
||||
request_specs: false
|
||||
g.test_framework :rspec, fixtures: true,
|
||||
view_specs: false,
|
||||
helper_specs: false,
|
||||
routing_specs: false,
|
||||
request_specs: false
|
||||
|
||||
g.fixture_replacement :factory_bot, dir: "spec/factories"
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ development:
|
|||
adapter: async
|
||||
|
||||
test:
|
||||
adapter: test
|
||||
adapter: async
|
||||
|
||||
production:
|
||||
adapter: redis
|
||||
|
|
|
@ -1,85 +0,0 @@
|
|||
# PostgreSQL. Versions 9.3 and up are supported.
|
||||
#
|
||||
# Install the pg driver:
|
||||
# gem install pg
|
||||
# On macOS with Homebrew:
|
||||
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
||||
# On Windows:
|
||||
# gem install pg
|
||||
# Choose the win32 build.
|
||||
# Install PostgreSQL and put its /bin directory on your path.
|
||||
#
|
||||
# Configure Using Gemfile
|
||||
# gem "pg"
|
||||
#
|
||||
default: &default
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
# For details on connection pooling, see Rails configuration guide
|
||||
# https://guides.rubyonrails.org/configuring.html#database-pooling
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
database: clarion_development
|
||||
|
||||
# The specified database role being used to connect to PostgreSQL.
|
||||
# To create additional roles in PostgreSQL see `$ createuser --help`.
|
||||
# When left blank, PostgreSQL will use the default role. This is
|
||||
# the same name as the operating system user running Rails.
|
||||
#username: clarion
|
||||
|
||||
# The password associated with the PostgreSQL role (username).
|
||||
#password:
|
||||
|
||||
# Connect on a TCP socket. Omitted by default since the client uses a
|
||||
# domain socket that doesn't need configuration. Windows does not have
|
||||
# domain sockets, so uncomment these lines.
|
||||
#host: localhost
|
||||
|
||||
# The TCP port the server listens on. Defaults to 5432.
|
||||
# If your server runs on a different port number, change accordingly.
|
||||
#port: 5432
|
||||
|
||||
# Schema search path. The server defaults to $user,public
|
||||
#schema_search_path: myapp,sharedapp,public
|
||||
|
||||
# Minimum log levels, in increasing order:
|
||||
# debug5, debug4, debug3, debug2, debug1,
|
||||
# log, notice, warning, error, fatal, and panic
|
||||
# Defaults to warning.
|
||||
#min_messages: notice
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
<<: *default
|
||||
database: clarion_test
|
||||
|
||||
# As with config/credentials.yml, you never want to store sensitive information,
|
||||
# like your database password, in your source code. If your source code is
|
||||
# ever seen by anyone, they now have access to your database.
|
||||
#
|
||||
# Instead, provide the password or a full connection URL as an environment
|
||||
# variable when you boot the app. For example:
|
||||
#
|
||||
# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
|
||||
#
|
||||
# If the connection URL is provided in the special DATABASE_URL environment
|
||||
# variable, Rails will automatically merge its configuration values on top of
|
||||
# the values provided in this file. Alternatively, you can specify a connection
|
||||
# URL environment variable explicitly:
|
||||
#
|
||||
# production:
|
||||
# url: <%= ENV["MY_APP_DATABASE_URL"] %>
|
||||
#
|
||||
# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
||||
# for a full overview on how database connection configuration can be specified.
|
||||
#
|
||||
production:
|
||||
<<: *default
|
||||
host: <%= ENV.fetch("CLARION_DATABASE_HOST") { "host.containers.internal" } %>
|
||||
database: clarion
|
||||
username: clarion
|
||||
password: <%= ENV["CLARION_DATABASE_PASSWORD"] %>
|
|
@ -39,7 +39,7 @@ set :linked_dirs, fetch(:linked_dirs, []).push("log", "tmp/uploads", "tmp/pids",
|
|||
# Default value for keep_releases is 5
|
||||
set :keep_releases, 550
|
||||
|
||||
set :rvm_ruby_version, "3.3.5"
|
||||
set :rvm_ruby_version, "2.6.5"
|
||||
|
||||
set :puma_bind, ["tcp://127.0.0.1:9087"]
|
||||
set :puma_init_active_record, true
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
require "active_support/core_ext/integer/time"
|
||||
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
# In the development environment your application's code is reloaded any time
|
||||
# it changes. This slows down response time but is perfect for development
|
||||
# In the development environment your application's code is reloaded on
|
||||
# every request. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the web server when you make code changes.
|
||||
config.enable_reloading = true
|
||||
config.cache_classes = false
|
||||
|
||||
# Do not eager load code on boot.
|
||||
config.eager_load = false
|
||||
|
@ -14,18 +12,14 @@ Rails.application.configure do
|
|||
# Show full error reports.
|
||||
config.consider_all_requests_local = true
|
||||
|
||||
# Enable server timing
|
||||
config.server_timing = true
|
||||
|
||||
# Enable/disable caching. By default caching is disabled.
|
||||
# Run rails dev:cache to toggle caching.
|
||||
if Rails.root.join("tmp/caching-dev.txt").exist?
|
||||
if Rails.root.join("tmp", "caching-dev.txt").exist?
|
||||
config.action_controller.perform_caching = true
|
||||
config.action_controller.enable_fragment_cache_logging = true
|
||||
|
||||
config.cache_store = :memory_store
|
||||
config.public_file_server.headers = {
|
||||
"Cache-Control" => "public, max-age=#{2.days.to_i}"
|
||||
"Cache-Control" => "public, max-age=#{2.days.to_i}",
|
||||
}
|
||||
else
|
||||
config.action_controller.perform_caching = false
|
||||
|
@ -33,7 +27,7 @@ Rails.application.configure do
|
|||
config.cache_store = :null_store
|
||||
end
|
||||
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options).
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options)
|
||||
config.active_storage.service = :local
|
||||
|
||||
# Don't care if the mailer can't send.
|
||||
|
@ -47,35 +41,24 @@ Rails.application.configure do
|
|||
# Print deprecation notices to the Rails logger.
|
||||
config.active_support.deprecation = :log
|
||||
|
||||
# Raise exceptions for disallowed deprecations.
|
||||
config.active_support.disallowed_deprecation = :raise
|
||||
|
||||
# Tell Active Support which deprecation messages to disallow.
|
||||
config.active_support.disallowed_deprecation_warnings = []
|
||||
|
||||
# Raise an error on page load if there are pending migrations.
|
||||
config.active_record.migration_error = :page_load
|
||||
|
||||
# Highlight code that triggered database queries in logs.
|
||||
config.active_record.verbose_query_logs = true
|
||||
|
||||
# Highlight code that enqueued background job in logs.
|
||||
config.active_job.verbose_enqueue_logs = true
|
||||
# Debug mode disables concatenation and preprocessing of assets.
|
||||
# This option may cause significant delays in view rendering with a large
|
||||
# number of complex assets.
|
||||
config.assets.debug = true
|
||||
|
||||
# Suppress logger output for asset requests.
|
||||
config.assets.quiet = true
|
||||
|
||||
# Raises error for missing translations.
|
||||
# config.i18n.raise_on_missing_translations = true
|
||||
# Raises error for missing translations
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
||||
# Annotate rendered view with file names.
|
||||
# config.action_view.annotate_rendered_view_with_filenames = true
|
||||
|
||||
# Uncomment if you wish to allow Action Cable access from any origin.
|
||||
# config.action_cable.disable_request_forgery_protection = true
|
||||
|
||||
# Raise error when a before_action's only/except options reference missing actions
|
||||
config.action_controller.raise_on_missing_callback_actions = true
|
||||
|
||||
config.hosts << "dev.openfest.org:3000"
|
||||
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||
# routes, locales, etc. This feature depends on the listen gem.
|
||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||
end
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
require "active_support/core_ext/integer/time"
|
||||
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
# Code is not reloaded between requests.
|
||||
config.enable_reloading = false
|
||||
config.cache_classes = true
|
||||
|
||||
# Eager load code on boot. This eager loads most of Rails and
|
||||
# your application in memory, allowing both threaded web servers
|
||||
|
@ -13,72 +11,57 @@ Rails.application.configure do
|
|||
config.eager_load = true
|
||||
|
||||
# Full error reports are disabled and caching is turned on.
|
||||
config.consider_all_requests_local = false
|
||||
config.consider_all_requests_local = false
|
||||
config.action_controller.perform_caching = true
|
||||
|
||||
# Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment
|
||||
# key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
|
||||
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
||||
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
||||
# config.require_master_key = true
|
||||
|
||||
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
|
||||
# config.public_file_server.enabled = false
|
||||
# Disable serving static files from the `/public` folder by default since
|
||||
# Apache or NGINX already handles this.
|
||||
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
|
||||
|
||||
# Compress CSS using a preprocessor.
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = :uglifier
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fall back to assets pipeline if a precompiled asset is missed.
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
config.assets.compile = false
|
||||
|
||||
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
||||
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
# config.asset_host = "http://assets.example.com"
|
||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
||||
|
||||
# Specifies the header that your server uses for sending files.
|
||||
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
|
||||
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
|
||||
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
||||
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options).
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options)
|
||||
config.active_storage.service = :local
|
||||
|
||||
# Mount Action Cable outside main process or domain.
|
||||
# Mount Action Cable outside main process or domain
|
||||
# config.action_cable.mount_path = nil
|
||||
# config.action_cable.url = "wss://example.com/cable"
|
||||
# config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
|
||||
|
||||
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
|
||||
# Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
|
||||
config.assume_ssl = true
|
||||
# config.action_cable.url = 'wss://example.com/cable'
|
||||
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
||||
|
||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||
config.force_ssl = ENV["CLARION_USE_PLAINTEXT"] != "yes"
|
||||
config.force_ssl = true
|
||||
|
||||
# Log to STDOUT by default
|
||||
config.logger = ActiveSupport::Logger.new(STDOUT)
|
||||
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
|
||||
.then { |logger| ActiveSupport::TaggedLogging.new(logger) }
|
||||
# Use the lowest log level to ensure availability of diagnostic information
|
||||
# when problems arise.
|
||||
config.log_level = :debug
|
||||
|
||||
# Prepend all log lines with the following tags.
|
||||
config.log_tags = [
|
||||
:request_id,
|
||||
:subdomain,
|
||||
->(req) {
|
||||
session_key = (Rails.application.config.session_options || {})[:key]
|
||||
session_data = req.cookie_jar.encrypted[session_key] || {}
|
||||
user_id = session_data["warden.user.user.key"]&.flatten&.first || "guest"
|
||||
"user: #{user_id}"
|
||||
}
|
||||
]
|
||||
|
||||
# "info" includes generic and useful information about system operation, but avoids logging too much
|
||||
# information to avoid inadvertent exposure of personally identifiable information (PII). If you
|
||||
# want to log everything, set the level to "debug".
|
||||
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
|
||||
config.log_tags = [:request_id]
|
||||
|
||||
# Use a different cache store in production.
|
||||
# config.cache_store = :mem_cache_store
|
||||
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||
# config.active_job.queue_adapter = :resque
|
||||
# config.active_job.queue_name_prefix = "clarion_production"
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment)
|
||||
# config.active_job.queue_adapter = :resque
|
||||
# config.active_job.queue_name_prefix = "clarion_#{Rails.env}"
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
|
@ -86,28 +69,30 @@ Rails.application.configure do
|
|||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.default_options = {from: "OpenFest <cfp@openfest.org>"}
|
||||
config.action_mailer.delivery_method = :sendmail
|
||||
config.action_mailer.default_options = {from: "no-reply@openfest.org"}
|
||||
config.action_mailer.default_url_options = {host: "cfp.openfest.org"}
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: ENV.fetch("CLARION_MAIL_SERVER", "mail.openfest.org")
|
||||
}
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation cannot be found).
|
||||
config.i18n.fallbacks = true
|
||||
|
||||
# Don't log any deprecations.
|
||||
config.active_support.report_deprecations = false
|
||||
# Send deprecation notices to registered listeners.
|
||||
config.active_support.deprecation = :notify
|
||||
|
||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||
config.log_formatter = ::Logger::Formatter.new
|
||||
|
||||
# Use a different logger for distributed setups.
|
||||
# require 'syslog/logger'
|
||||
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
||||
|
||||
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
||||
logger = ActiveSupport::Logger.new(STDOUT)
|
||||
logger.formatter = config.log_formatter
|
||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||
end
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
# Enable DNS rebinding protection and other `Host` header attacks.
|
||||
# config.hosts = [
|
||||
# "example.com", # Allow requests from example.com
|
||||
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
|
||||
# ]
|
||||
# Skip DNS rebinding protection for the default health check endpoint.
|
||||
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
||||
end
|
||||
|
|
|
@ -1,40 +1,34 @@
|
|||
require "active_support/core_ext/integer/time"
|
||||
|
||||
# The test environment is used exclusively to run your application's
|
||||
# test suite. You never need to work with it otherwise. Remember that
|
||||
# your test database is "scratch space" for the test suite and is wiped
|
||||
# and recreated between test runs. Don't rely on the data there!
|
||||
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
# While tests run files are not watched, reloading is not necessary.
|
||||
config.enable_reloading = false
|
||||
# The test environment is used exclusively to run your application's
|
||||
# test suite. You never need to work with it otherwise. Remember that
|
||||
# your test database is "scratch space" for the test suite and is wiped
|
||||
# and recreated between test runs. Don't rely on the data there!
|
||||
config.cache_classes = true
|
||||
|
||||
# Eager loading loads your entire application. When running a single test locally,
|
||||
# this is usually not necessary, and can slow down your test suite. However, it's
|
||||
# recommended that you enable it in continuous integration systems to ensure eager
|
||||
# loading is working properly before deploying your code.
|
||||
config.eager_load = ENV["CI"].present?
|
||||
# Do not eager load code on boot. This avoids loading your whole application
|
||||
# just for the purpose of running a single test. If you are using a tool that
|
||||
# preloads Rails for running tests, you may have to set it to true.
|
||||
config.eager_load = false
|
||||
|
||||
# Configure public file server for tests with Cache-Control for performance.
|
||||
config.public_file_server.enabled = true
|
||||
config.public_file_server.headers = {
|
||||
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
|
||||
"Cache-Control" => "public, max-age=#{1.hour.to_i}",
|
||||
}
|
||||
|
||||
# Show full error reports and disable caching.
|
||||
config.consider_all_requests_local = true
|
||||
config.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
config.cache_store = :null_store
|
||||
|
||||
# Render exception templates for rescuable exceptions and raise for other exceptions.
|
||||
config.action_dispatch.show_exceptions = :rescuable
|
||||
# Raise exceptions instead of rendering exception templates.
|
||||
config.action_dispatch.show_exceptions = false
|
||||
|
||||
# Disable request forgery protection in test environment.
|
||||
config.action_controller.allow_forgery_protection = false
|
||||
|
||||
# Store uploaded files on the local file system in a temporary directory.
|
||||
# Store uploaded files on the local file system in a temporary directory
|
||||
config.active_storage.service = :test
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
@ -50,18 +44,6 @@ Rails.application.configure do
|
|||
# Print deprecation notices to the stderr.
|
||||
config.active_support.deprecation = :stderr
|
||||
|
||||
# Raise exceptions for disallowed deprecations.
|
||||
config.active_support.disallowed_deprecation = :raise
|
||||
|
||||
# Tell Active Support which deprecation messages to disallow.
|
||||
config.active_support.disallowed_deprecation_warnings = []
|
||||
|
||||
# Raises error for missing translations.
|
||||
# config.i18n.raise_on_missing_translations = true
|
||||
|
||||
# Annotate rendered view with file names.
|
||||
# config.action_view.annotate_rendered_view_with_filenames = true
|
||||
|
||||
# Raise error when a before_action's only/except options reference missing actions
|
||||
config.action_controller.raise_on_missing_callback_actions = true
|
||||
# Raises error for missing translations
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
end
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Rails.application.config.active_storage.resolve_model_to_route = :rails_storage_proxy
|
|
@ -5,11 +5,13 @@ Rails.application.config.assets.version = "1.0"
|
|||
|
||||
# Add additional assets to the asset load path.
|
||||
# Rails.application.config.assets.paths << Emoji.images_path
|
||||
# Add Yarn node_modules folder to the asset load path.
|
||||
Rails.application.config.assets.paths << Rails.root.join("node_modules")
|
||||
|
||||
Rails.application.config.assets.paths << "lib/initfest/assets/images"
|
||||
Rails.application.config.assets.paths << "lib/initfest/assets/javascripts"
|
||||
Rails.application.config.assets.paths << "lib/initfest/assets/stylesheets"
|
||||
#Rails.application.config.assets.precompile << /\.(?:png|jpg|jpeg|gif)\z/
|
||||
Rails.application.config.assets.precompile << /\.(?:png|jpg|jpeg|gif)\z/
|
||||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
||||
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
|
||||
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
||||
|
||||
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
||||
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
|
||||
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
|
||||
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
||||
# Rails.backtrace_cleaner.remove_silencers!
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Define an application-wide content security policy.
|
||||
# See the Securing Rails Applications Guide for more information:
|
||||
# https://guides.rubyonrails.org/security.html#content-security-policy-header
|
||||
# Define an application-wide content security policy
|
||||
# For further information see the following documentation
|
||||
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
||||
|
||||
# Rails.application.configure do
|
||||
# config.content_security_policy do |policy|
|
||||
# policy.default_src :self, :https
|
||||
# policy.font_src :self, :https, :data
|
||||
# policy.img_src :self, :https, :data
|
||||
# policy.object_src :none
|
||||
# policy.script_src :self, :https
|
||||
# policy.style_src :self, :https
|
||||
# # Specify URI for violation reports
|
||||
# # policy.report_uri "/csp-violation-report-endpoint"
|
||||
# end
|
||||
#
|
||||
# # Generate session nonces for permitted importmap, inline scripts, and inline styles.
|
||||
# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
|
||||
# config.content_security_policy_nonce_directives = %w(script-src style-src)
|
||||
#
|
||||
# # Report violations without enforcing the policy.
|
||||
# # config.content_security_policy_report_only = true
|
||||
# Rails.application.config.content_security_policy do |policy|
|
||||
# policy.default_src :self, :https
|
||||
# policy.font_src :self, :https, :data
|
||||
# policy.img_src :self, :https, :data
|
||||
# policy.object_src :none
|
||||
# policy.script_src :self, :https
|
||||
# policy.style_src :self, :https
|
||||
|
||||
# # Specify URI for violation reports
|
||||
# # policy.report_uri "/csp-violation-report-endpoint"
|
||||
# end
|
||||
|
||||
# If you are using UJS then enable automatic nonce generation
|
||||
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
||||
|
||||
# Report CSP violations to a specified URI
|
||||
# For further information see the following documentation:
|
||||
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
||||
# Rails.application.config.content_security_policy_report_only = true
|
||||
|
|
|
@ -12,7 +12,7 @@ Devise.setup do |config|
|
|||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
||||
# note that it will be overwritten if you use your own mailer class
|
||||
# with default "from" parameter.
|
||||
config.mailer_sender = "OpenFest <cfp@openfest.org>"
|
||||
config.mailer_sender = "no-reply@openfest.org"
|
||||
|
||||
# Configure the class responsible to send e-mails.
|
||||
# config.mailer = 'Devise::Mailer'
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
||||
# Use this to limit dissemination of sensitive information.
|
||||
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
|
||||
Rails.application.config.filter_parameters += [
|
||||
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
|
||||
]
|
||||
# Configure sensitive parameters which will be filtered from the log file.
|
||||
Rails.application.config.filter_parameters += [:password]
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
# are locale specific, and you may define rules for as many different
|
||||
# locales as you wish. All of these examples are active by default:
|
||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
# inflect.plural /^(ox)$/i, "\\1en"
|
||||
# inflect.singular /^(ox)en/i, "\\1"
|
||||
# inflect.irregular "person", "people"
|
||||
# inflect.plural /^(ox)$/i, '\1en'
|
||||
# inflect.singular /^(ox)en/i, '\1'
|
||||
# inflect.irregular 'person', 'people'
|
||||
# inflect.uncountable %w( fish sheep )
|
||||
# end
|
||||
|
||||
# These inflection rules are supported but not enabled by default:
|
||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
# inflect.acronym "RESTful"
|
||||
# inflect.acronym 'RESTful'
|
||||
# end
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
#
|
||||
# This file contains migration options to ease your Rails 6.0 upgrade.
|
||||
#
|
||||
# Once upgraded flip defaults one by one to migrate to the new default.
|
||||
#
|
||||
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
||||
|
||||
# Don't force requests from old versions of IE to be UTF-8 encoded.
|
||||
# Rails.application.config.action_view.default_enforce_utf8 = false
|
||||
|
||||
# Embed purpose and expiry metadata inside signed and encrypted
|
||||
# cookies for increased security.
|
||||
#
|
||||
# This option is not backwards compatible with earlier Rails versions.
|
||||
# It's best enabled when your entire app is migrated and stable on 6.0.
|
||||
# Rails.application.config.action_dispatch.use_cookies_with_metadata = true
|
||||
|
||||
# Change the return value of `ActionDispatch::Response#content_type` to Content-Type header without modification.
|
||||
# Rails.application.config.action_dispatch.return_only_media_type_on_content_type = false
|
||||
|
||||
# Return false instead of self when enqueuing is aborted from a callback.
|
||||
# Rails.application.config.active_job.return_false_on_aborted_enqueue = true
|
||||
|
||||
# Send Active Storage analysis and purge jobs to dedicated queues.
|
||||
# Rails.application.config.active_storage.queues.analysis = :active_storage_analysis
|
||||
# Rails.application.config.active_storage.queues.purge = :active_storage_purge
|
||||
|
||||
# When assigning to a collection of attachments declared via `has_many_attached`, replace existing
|
||||
# attachments instead of appending. Use #attach to add new attachments without replacing existing ones.
|
||||
Rails.application.config.active_storage.replace_on_assign_to_many = true
|
||||
|
||||
# Use ActionMailer::MailDeliveryJob for sending parameterized and normal mail.
|
||||
#
|
||||
# The default delivery jobs (ActionMailer::Parameterized::DeliveryJob, ActionMailer::DeliveryJob),
|
||||
# will be removed in Rails 6.1. This setting is not backwards compatible with earlier Rails versions.
|
||||
# If you send mail in the background, job workers need to have a copy of
|
||||
# MailDeliveryJob to ensure all delivery jobs are processed properly.
|
||||
# Make sure your entire app is migrated and stable on 6.0 before using this setting.
|
||||
# Rails.application.config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob"
|
||||
|
||||
# Enable the same cache key to be reused when the object being cached of type
|
||||
# `ActiveRecord::Relation` changes by moving the volatile information (max updated at and count)
|
||||
# of the relation's cache key into the cache version to support recycling cache key.
|
||||
# Rails.application.config.active_record.collection_cache_versioning = true
|
|
@ -1,67 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
#
|
||||
# This file contains migration options to ease your Rails 6.1 upgrade.
|
||||
#
|
||||
# Once upgraded flip defaults one by one to migrate to the new default.
|
||||
#
|
||||
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
||||
|
||||
# Support for inversing belongs_to -> has_many Active Record associations.
|
||||
# Rails.application.config.active_record.has_many_inversing = true
|
||||
|
||||
# Track Active Storage variants in the database.
|
||||
Rails.application.config.active_storage.track_variants = true
|
||||
|
||||
# Apply random variation to the delay when retrying failed jobs.
|
||||
# Rails.application.config.active_job.retry_jitter = 0.15
|
||||
|
||||
# Stop executing `after_enqueue`/`after_perform` callbacks if
|
||||
# `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
|
||||
# Rails.application.config.active_job.skip_after_callbacks_if_terminated = true
|
||||
|
||||
# Specify cookies SameSite protection level: either :none, :lax, or :strict.
|
||||
#
|
||||
# This change is not backwards compatible with earlier Rails versions.
|
||||
# It's best enabled when your entire app is migrated and stable on 6.1.
|
||||
# Rails.application.config.action_dispatch.cookies_same_site_protection = :lax
|
||||
|
||||
# Generate CSRF tokens that are encoded in URL-safe Base64.
|
||||
#
|
||||
# This change is not backwards compatible with earlier Rails versions.
|
||||
# It's best enabled when your entire app is migrated and stable on 6.1.
|
||||
# Rails.application.config.action_controller.urlsafe_csrf_tokens = true
|
||||
|
||||
# Specify whether `ActiveSupport::TimeZone.utc_to_local` returns a time with an
|
||||
# UTC offset or a UTC time.
|
||||
# ActiveSupport.utc_to_local_returns_utc_offset_times = true
|
||||
|
||||
# Change the default HTTP status code to `308` when redirecting non-GET/HEAD
|
||||
# requests to HTTPS in `ActionDispatch::SSL` middleware.
|
||||
# Rails.application.config.action_dispatch.ssl_default_redirect_status = 308
|
||||
|
||||
# Use new connection handling API. For most applications this won't have any
|
||||
# effect. For applications using multiple databases, this new API provides
|
||||
# support for granular connection swapping.
|
||||
# Rails.application.config.active_record.legacy_connection_handling = false
|
||||
|
||||
# Make `form_with` generate non-remote forms by default.
|
||||
# Rails.application.config.action_view.form_with_generates_remote_forms = false
|
||||
|
||||
# Set the default queue name for the analysis job to the queue adapter default.
|
||||
Rails.application.config.active_storage.queues.analysis = nil
|
||||
|
||||
# Set the default queue name for the purge job to the queue adapter default.
|
||||
Rails.application.config.active_storage.queues.purge = nil
|
||||
|
||||
# Set the default queue name for the incineration job to the queue adapter default.
|
||||
# Rails.application.config.action_mailbox.queues.incineration = nil
|
||||
|
||||
# Set the default queue name for the routing job to the queue adapter default.
|
||||
# Rails.application.config.action_mailbox.queues.routing = nil
|
||||
|
||||
# Set the default queue name for the mail deliver job to the queue adapter default.
|
||||
# Rails.application.config.action_mailer.deliver_later_queue_name = nil
|
||||
|
||||
# Generate a `Link` header that gives a hint to modern browsers about
|
||||
# preloading assets when using `javascript_include_tag` and `stylesheet_link_tag`.
|
||||
# Rails.application.config.action_view.preload_links_header = true
|
|
@ -1,143 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
#
|
||||
# This file eases your Rails 7.0 framework defaults upgrade.
|
||||
#
|
||||
# Uncomment each configuration one by one to switch to the new default.
|
||||
# Once your application is ready to run with all new defaults, you can remove
|
||||
# this file and set the `config.load_defaults` to `7.0`.
|
||||
#
|
||||
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
||||
# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html
|
||||
|
||||
# `button_to` view helper will render `<button>` element, regardless of whether
|
||||
# or not the content is passed as the first argument or as a block.
|
||||
# Rails.application.config.action_view.button_to_generates_button_tag = true
|
||||
|
||||
# `stylesheet_link_tag` view helper will not render the media attribute by default.
|
||||
# Rails.application.config.action_view.apply_stylesheet_media_default = false
|
||||
|
||||
# Change the digest class for the key generators to `OpenSSL::Digest::SHA256`.
|
||||
# Changing this default means invalidate all encrypted messages generated by
|
||||
# your application and, all the encrypted cookies. Only change this after you
|
||||
# rotated all the messages using the key rotator.
|
||||
#
|
||||
# See upgrading guide for more information on how to build a rotator.
|
||||
# https://guides.rubyonrails.org/v7.0/upgrading_ruby_on_rails.html
|
||||
# Rails.application.config.active_support.key_generator_hash_digest_class = OpenSSL::Digest::SHA256
|
||||
|
||||
# Change the digest class for ActiveSupport::Digest.
|
||||
# Changing this default means that for example Etags change and
|
||||
# various cache keys leading to cache invalidation.
|
||||
# Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256
|
||||
|
||||
# Don't override ActiveSupport::TimeWithZone.name and use the default Ruby
|
||||
# implementation.
|
||||
# Rails.application.config.active_support.remove_deprecated_time_with_zone_name = true
|
||||
|
||||
# Calls `Rails.application.executor.wrap` around test cases.
|
||||
# This makes test cases behave closer to an actual request or job.
|
||||
# Several features that are normally disabled in test, such as Active Record query cache
|
||||
# and asynchronous queries will then be enabled.
|
||||
# Rails.application.config.active_support.executor_around_test_case = true
|
||||
|
||||
# Set both the `:open_timeout` and `:read_timeout` values for `:smtp` delivery method.
|
||||
# Rails.application.config.action_mailer.smtp_timeout = 5
|
||||
|
||||
# The ActiveStorage video previewer will now use scene change detection to generate
|
||||
# better preview images (rather than the previous default of using the first frame
|
||||
# of the video).
|
||||
Rails.application.config.active_storage.video_preview_arguments =
|
||||
"-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1' -frames:v 1 -f image2"
|
||||
|
||||
# Automatically infer `inverse_of` for associations with a scope.
|
||||
# Rails.application.config.active_record.automatic_scope_inversing = true
|
||||
|
||||
# Raise when running tests if fixtures contained foreign key violations
|
||||
# Rails.application.config.active_record.verify_foreign_keys_for_fixtures = true
|
||||
|
||||
# Disable partial inserts.
|
||||
# This default means that all columns will be referenced in INSERT queries
|
||||
# regardless of whether they have a default or not.
|
||||
# Rails.application.config.active_record.partial_inserts = false
|
||||
|
||||
# Protect from open redirect attacks in `redirect_back_or_to` and `redirect_to`.
|
||||
# Rails.application.config.action_controller.raise_on_open_redirects = true
|
||||
|
||||
# Change the variant processor for Active Storage.
|
||||
# Changing this default means updating all places in your code that
|
||||
# generate variants to use image processing macros and ruby-vips
|
||||
# operations. See the upgrading guide for detail on the changes required.
|
||||
# The `:mini_magick` option is not deprecated; it's fine to keep using it.
|
||||
Rails.application.config.active_storage.variant_processor = :vips
|
||||
|
||||
# Enable parameter wrapping for JSON.
|
||||
# Previously this was set in an initializer. It's fine to keep using that initializer if you've customized it.
|
||||
# To disable parameter wrapping entirely, set this config to `false`.
|
||||
# Rails.application.config.action_controller.wrap_parameters_by_default = true
|
||||
|
||||
# Specifies whether generated namespaced UUIDs follow the RFC 4122 standard for namespace IDs provided as a
|
||||
# `String` to `Digest::UUID.uuid_v3` or `Digest::UUID.uuid_v5` method calls.
|
||||
#
|
||||
# See https://guides.rubyonrails.org/configuring.html#config-active-support-use-rfc4122-namespaced-uuids for
|
||||
# more information.
|
||||
# Rails.application.config.active_support.use_rfc4122_namespaced_uuids = true
|
||||
|
||||
# Change the default headers to disable browsers' flawed legacy XSS protection.
|
||||
# Rails.application.config.action_dispatch.default_headers = {
|
||||
# "X-Frame-Options" => "SAMEORIGIN",
|
||||
# "X-XSS-Protection" => "0",
|
||||
# "X-Content-Type-Options" => "nosniff",
|
||||
# "X-Download-Options" => "noopen",
|
||||
# "X-Permitted-Cross-Domain-Policies" => "none",
|
||||
# "Referrer-Policy" => "strict-origin-when-cross-origin"
|
||||
# }
|
||||
|
||||
|
||||
# ** Please read carefully, this must be configured in config/application.rb **
|
||||
# Change the format of the cache entry.
|
||||
# Changing this default means that all new cache entries added to the cache
|
||||
# will have a different format that is not supported by Rails 6.1 applications.
|
||||
# Only change this value after your application is fully deployed to Rails 7.0
|
||||
# and you have no plans to rollback.
|
||||
# When you're ready to change format, add this to `config/application.rb` (NOT this file):
|
||||
# config.active_support.cache_format_version = 7.0
|
||||
|
||||
|
||||
# Cookie serializer: 2 options
|
||||
#
|
||||
# If you're upgrading and haven't set `cookies_serializer` previously, your cookie serializer
|
||||
# is `:marshal`. The default for new apps is `:json`.
|
||||
#
|
||||
# Rails.application.config.action_dispatch.cookies_serializer = :json
|
||||
#
|
||||
#
|
||||
# To migrate an existing application to the `:json` serializer, use the `:hybrid` option.
|
||||
#
|
||||
# Rails transparently deserializes existing (Marshal-serialized) cookies on read and
|
||||
# re-writes them in the JSON format.
|
||||
#
|
||||
# It is fine to use `:hybrid` long term; you should do that until you're confident *all* your cookies
|
||||
# have been converted to JSON. To keep using `:hybrid` long term, move this config to its own
|
||||
# initializer or to `config/application.rb`.
|
||||
#
|
||||
# Rails.application.config.action_dispatch.cookies_serializer = :hybrid
|
||||
#
|
||||
#
|
||||
# If your cookies can't yet be serialized to JSON, keep using `:marshal` for backward-compatibility.
|
||||
#
|
||||
# If you have configured the serializer elsewhere, you can remove this section of the file.
|
||||
#
|
||||
# See https://guides.rubyonrails.org/action_controller_overview.html#cookies for more information.
|
||||
|
||||
# Change the return value of `ActionDispatch::Request#content_type` to the Content-Type header without modification.
|
||||
# Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type = false
|
||||
|
||||
# Active Storage `has_many_attached` relationships will default to replacing the current collection instead of appending to it.
|
||||
# Thus, to support submitting an empty collection, the `file_field` helper will render an hidden field `include_hidden` by default when `multiple_file_field_include_hidden` is set to `true`.
|
||||
# See https://guides.rubyonrails.org/configuring.html#config-active-storage-multiple-file-field-include-hidden for more information.
|
||||
Rails.application.config.active_storage.multiple_file_field_include_hidden = true
|
||||
|
||||
# ** Please read carefully, this must be configured in config/application.rb (NOT this file) **
|
||||
# Disables the deprecated #to_s override in some Ruby core classes
|
||||
# See https://guides.rubyonrails.org/configuring.html#config-active-support-disable-to-s-conversion for more information.
|
||||
# config.active_support.disable_to_s_conversion = true
|
|
@ -1,284 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
#
|
||||
# This file eases your Rails 7.1 framework defaults upgrade.
|
||||
#
|
||||
# Uncomment each configuration one by one to switch to the new default.
|
||||
# Once your application is ready to run with all new defaults, you can remove
|
||||
# this file and set the `config.load_defaults` to `7.1`.
|
||||
#
|
||||
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
||||
# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html
|
||||
|
||||
###
|
||||
# No longer add autoloaded paths into `$LOAD_PATH`. This means that you won't be able
|
||||
# to manually require files that are managed by the autoloader, which you shouldn't do anyway.
|
||||
#
|
||||
# This will reduce the size of the load path, making `require` faster if you don't use bootsnap, or reduce the size
|
||||
# of the bootsnap cache if you use it.
|
||||
#
|
||||
# To set this configuration, add the following line to `config/application.rb` (NOT this file):
|
||||
# config.add_autoload_paths_to_load_path = false
|
||||
|
||||
###
|
||||
# Remove the default X-Download-Options headers since it is used only by Internet Explorer.
|
||||
# If you need to support Internet Explorer, add back `"X-Download-Options" => "noopen"`.
|
||||
#++
|
||||
# Rails.application.config.action_dispatch.default_headers = {
|
||||
# "X-Frame-Options" => "SAMEORIGIN",
|
||||
# "X-XSS-Protection" => "0",
|
||||
# "X-Content-Type-Options" => "nosniff",
|
||||
# "X-Permitted-Cross-Domain-Policies" => "none",
|
||||
# "Referrer-Policy" => "strict-origin-when-cross-origin"
|
||||
# }
|
||||
|
||||
###
|
||||
# Do not treat an `ActionController::Parameters` instance
|
||||
# as equal to an equivalent `Hash` by default.
|
||||
#++
|
||||
# Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality = false
|
||||
|
||||
###
|
||||
# Active Record Encryption now uses SHA-256 as its hash digest algorithm.
|
||||
#
|
||||
# There are 3 scenarios to consider.
|
||||
#
|
||||
# 1. If you have data encrypted with previous Rails versions, and you have
|
||||
# +config.active_support.key_generator_hash_digest_class+ configured as SHA1 (the default
|
||||
# before Rails 7.0), you need to configure SHA-1 for Active Record Encryption too:
|
||||
#++
|
||||
# Rails.application.config.active_record.encryption.hash_digest_class = OpenSSL::Digest::SHA1
|
||||
#
|
||||
# 2. If you have +config.active_support.key_generator_hash_digest_class+ configured as SHA256 (the new default
|
||||
# in 7.0), then you need to configure SHA-256 for Active Record Encryption:
|
||||
#++
|
||||
# Rails.application.config.active_record.encryption.hash_digest_class = OpenSSL::Digest::SHA256
|
||||
#
|
||||
# 3. If you don't currently have data encrypted with Active Record encryption, you can disable this setting to
|
||||
# configure the default behavior starting 7.1+:
|
||||
#++
|
||||
# Rails.application.config.active_record.encryption.support_sha1_for_non_deterministic_encryption = false
|
||||
|
||||
###
|
||||
# No longer run after_commit callbacks on the first of multiple Active Record
|
||||
# instances to save changes to the same database row within a transaction.
|
||||
# Instead, run these callbacks on the instance most likely to have internal
|
||||
# state which matches what was committed to the database, typically the last
|
||||
# instance to save.
|
||||
#++
|
||||
# Rails.application.config.active_record.run_commit_callbacks_on_first_saved_instances_in_transaction = false
|
||||
|
||||
###
|
||||
# Configures SQLite with a strict strings mode, which disables double-quoted string literals.
|
||||
#
|
||||
# SQLite has some quirks around double-quoted string literals.
|
||||
# It first tries to consider double-quoted strings as identifier names, but if they don't exist
|
||||
# it then considers them as string literals. Because of this, typos can silently go unnoticed.
|
||||
# For example, it is possible to create an index for a non existing column.
|
||||
# See https://www.sqlite.org/quirks.html#double_quoted_string_literals_are_accepted for more details.
|
||||
#++
|
||||
# Rails.application.config.active_record.sqlite3_adapter_strict_strings_by_default = true
|
||||
|
||||
###
|
||||
# Disable deprecated singular associations names.
|
||||
#++
|
||||
# Rails.application.config.active_record.allow_deprecated_singular_associations_name = false
|
||||
|
||||
###
|
||||
# Enable the Active Job `BigDecimal` argument serializer, which guarantees
|
||||
# roundtripping. Without this serializer, some queue adapters may serialize
|
||||
# `BigDecimal` arguments as simple (non-roundtrippable) strings.
|
||||
#
|
||||
# When deploying an application with multiple replicas, old (pre-Rails 7.1)
|
||||
# replicas will not be able to deserialize `BigDecimal` arguments from this
|
||||
# serializer. Therefore, this setting should only be enabled after all replicas
|
||||
# have been successfully upgraded to Rails 7.1.
|
||||
#++
|
||||
# Rails.application.config.active_job.use_big_decimal_serializer = true
|
||||
|
||||
###
|
||||
# Specify if an `ArgumentError` should be raised if `Rails.cache` `fetch` or
|
||||
# `write` are given an invalid `expires_at` or `expires_in` time.
|
||||
# Options are `true`, and `false`. If `false`, the exception will be reported
|
||||
# as `handled` and logged instead.
|
||||
#++
|
||||
# Rails.application.config.active_support.raise_on_invalid_cache_expiration_time = true
|
||||
|
||||
###
|
||||
# Specify whether Query Logs will format tags using the SQLCommenter format
|
||||
# (https://open-telemetry.github.io/opentelemetry-sqlcommenter/), or using the legacy format.
|
||||
# Options are `:legacy` and `:sqlcommenter`.
|
||||
#++
|
||||
# Rails.application.config.active_record.query_log_tags_format = :sqlcommenter
|
||||
|
||||
###
|
||||
# Specify the default serializer used by `MessageEncryptor` and `MessageVerifier`
|
||||
# instances.
|
||||
#
|
||||
# The legacy default is `:marshal`, which is a potential vector for
|
||||
# deserialization attacks in cases where a message signing secret has been
|
||||
# leaked.
|
||||
#
|
||||
# In Rails 7.1, the new default is `:json_allow_marshal` which serializes and
|
||||
# deserializes with `ActiveSupport::JSON`, but can fall back to deserializing
|
||||
# with `Marshal` so that legacy messages can still be read.
|
||||
#
|
||||
# In Rails 7.2, the default will become `:json` which serializes and
|
||||
# deserializes with `ActiveSupport::JSON` only.
|
||||
#
|
||||
# Alternatively, you can choose `:message_pack` or `:message_pack_allow_marshal`,
|
||||
# which serialize with `ActiveSupport::MessagePack`. `ActiveSupport::MessagePack`
|
||||
# can roundtrip some Ruby types that are not supported by JSON, and may provide
|
||||
# improved performance, but it requires the `msgpack` gem.
|
||||
#
|
||||
# For more information, see
|
||||
# https://guides.rubyonrails.org/v7.1/configuring.html#config-active-support-message-serializer
|
||||
#
|
||||
# If you are performing a rolling deploy of a Rails 7.1 upgrade, wherein servers
|
||||
# that have not yet been upgraded must be able to read messages from upgraded
|
||||
# servers, first deploy without changing the serializer, then set the serializer
|
||||
# in a subsequent deploy.
|
||||
#++
|
||||
# Rails.application.config.active_support.message_serializer = :json_allow_marshal
|
||||
|
||||
###
|
||||
# Enable a performance optimization that serializes message data and metadata
|
||||
# together. This changes the message format, so messages serialized this way
|
||||
# cannot be read by older versions of Rails. However, messages that use the old
|
||||
# format can still be read, regardless of whether this optimization is enabled.
|
||||
#
|
||||
# To perform a rolling deploy of a Rails 7.1 upgrade, wherein servers that have
|
||||
# not yet been upgraded must be able to read messages from upgraded servers,
|
||||
# leave this optimization off on the first deploy, then enable it on a
|
||||
# subsequent deploy.
|
||||
#++
|
||||
# Rails.application.config.active_support.use_message_serializer_for_metadata = true
|
||||
|
||||
###
|
||||
# Set the maximum size for Rails log files.
|
||||
#
|
||||
# `config.load_defaults 7.1` does not set this value for environments other than
|
||||
# development and test.
|
||||
#++
|
||||
# if Rails.env.local?
|
||||
# Rails.application.config.log_file_size = 100 * 1024 * 1024
|
||||
# end
|
||||
|
||||
###
|
||||
# Enable raising on assignment to attr_readonly attributes. The previous
|
||||
# behavior would allow assignment but silently not persist changes to the
|
||||
# database.
|
||||
#++
|
||||
# Rails.application.config.active_record.raise_on_assign_to_attr_readonly = true
|
||||
|
||||
###
|
||||
# Enable validating only parent-related columns for presence when the parent is mandatory.
|
||||
# The previous behavior was to validate the presence of the parent record, which performed an extra query
|
||||
# to get the parent every time the child record was updated, even when parent has not changed.
|
||||
#++
|
||||
# Rails.application.config.active_record.belongs_to_required_validates_foreign_key = false
|
||||
|
||||
###
|
||||
# Enable precompilation of `config.filter_parameters`. Precompilation can
|
||||
# improve filtering performance, depending on the quantity and types of filters.
|
||||
#++
|
||||
# Rails.application.config.precompile_filter_parameters = true
|
||||
|
||||
###
|
||||
# Enable before_committed! callbacks on all enrolled records in a transaction.
|
||||
# The previous behavior was to only run the callbacks on the first copy of a record
|
||||
# if there were multiple copies of the same record enrolled in the transaction.
|
||||
#++
|
||||
# Rails.application.config.active_record.before_committed_on_all_records = true
|
||||
|
||||
###
|
||||
# Disable automatic column serialization into YAML.
|
||||
# To keep the historic behavior, you can set it to `YAML`, however it is
|
||||
# recommended to explicitly define the serialization method for each column
|
||||
# rather than to rely on a global default.
|
||||
#++
|
||||
# Rails.application.config.active_record.default_column_serializer = nil
|
||||
|
||||
###
|
||||
# Enable a performance optimization that serializes Active Record models
|
||||
# in a faster and more compact way.
|
||||
#
|
||||
# To perform a rolling deploy of a Rails 7.1 upgrade, wherein servers that have
|
||||
# not yet been upgraded must be able to read caches from upgraded servers,
|
||||
# leave this optimization off on the first deploy, then enable it on a
|
||||
# subsequent deploy.
|
||||
#++
|
||||
# Rails.application.config.active_record.marshalling_format_version = 7.1
|
||||
|
||||
###
|
||||
# Run `after_commit` and `after_*_commit` callbacks in the order they are defined in a model.
|
||||
# This matches the behaviour of all other callbacks.
|
||||
# In previous versions of Rails, they ran in the inverse order.
|
||||
#++
|
||||
# Rails.application.config.active_record.run_after_transaction_callbacks_in_order_defined = true
|
||||
|
||||
###
|
||||
# Whether a `transaction` block is committed or rolled back when exited via `return`, `break` or `throw`.
|
||||
#++
|
||||
# Rails.application.config.active_record.commit_transaction_on_non_local_return = true
|
||||
|
||||
###
|
||||
# Controls when to generate a value for <tt>has_secure_token</tt> declarations.
|
||||
#++
|
||||
# Rails.application.config.active_record.generate_secure_token_on = :initialize
|
||||
|
||||
###
|
||||
# ** Please read carefully, this must be configured in config/application.rb **
|
||||
#
|
||||
# Change the format of the cache entry.
|
||||
#
|
||||
# Changing this default means that all new cache entries added to the cache
|
||||
# will have a different format that is not supported by Rails 7.0
|
||||
# applications.
|
||||
#
|
||||
# Only change this value after your application is fully deployed to Rails 7.1
|
||||
# and you have no plans to rollback.
|
||||
# When you're ready to change format, add this to `config/application.rb` (NOT
|
||||
# this file):
|
||||
# config.active_support.cache_format_version = 7.1
|
||||
|
||||
|
||||
###
|
||||
# Configure Action View to use HTML5 standards-compliant sanitizers when they are supported on your
|
||||
# platform.
|
||||
#
|
||||
# `Rails::HTML::Sanitizer.best_supported_vendor` will cause Action View to use HTML5-compliant
|
||||
# sanitizers if they are supported, else fall back to HTML4 sanitizers.
|
||||
#
|
||||
# In previous versions of Rails, Action View always used `Rails::HTML4::Sanitizer` as its vendor.
|
||||
#++
|
||||
# Rails.application.config.action_view.sanitizer_vendor = Rails::HTML::Sanitizer.best_supported_vendor
|
||||
|
||||
|
||||
###
|
||||
# Configure Action Text to use an HTML5 standards-compliant sanitizer when it is supported on your
|
||||
# platform.
|
||||
#
|
||||
# `Rails::HTML::Sanitizer.best_supported_vendor` will cause Action Text to use HTML5-compliant
|
||||
# sanitizers if they are supported, else fall back to HTML4 sanitizers.
|
||||
#
|
||||
# In previous versions of Rails, Action Text always used `Rails::HTML4::Sanitizer` as its vendor.
|
||||
#++
|
||||
# Rails.application.config.action_text.sanitizer_vendor = Rails::HTML::Sanitizer.best_supported_vendor
|
||||
|
||||
|
||||
###
|
||||
# Configure the log level used by the DebugExceptions middleware when logging
|
||||
# uncaught exceptions during requests.
|
||||
#++
|
||||
# Rails.application.config.action_dispatch.debug_exception_log_level = :error
|
||||
|
||||
|
||||
###
|
||||
# Configure the test helpers in Action View, Action Dispatch, and rails-dom-testing to use HTML5
|
||||
# parsers.
|
||||
#
|
||||
# Nokogiri::HTML5 isn't supported on JRuby, so JRuby applications must set this to :html4.
|
||||
#
|
||||
# In previous versions of Rails, these test helpers always used an HTML4 parser.
|
||||
#++
|
||||
# Rails.application.config.dom_testing_default_html_version = :html5
|
|
@ -1,13 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Define an application-wide HTTP permissions policy. For further
|
||||
# information see: https://developers.google.com/web/updates/2018/06/feature-policy
|
||||
|
||||
# Rails.application.config.permissions_policy do |policy|
|
||||
# policy.camera :none
|
||||
# policy.gyroscope :none
|
||||
# policy.microphone :none
|
||||
# policy.usb :none
|
||||
# policy.fullscreen :self
|
||||
# policy.payment :self, "https://secure.example.com"
|
||||
# end
|
|
@ -15,6 +15,77 @@ bg:
|
|||
change_feedback_for: Преоценете „%{title}“
|
||||
by: от %{authors}
|
||||
feedback_incentive: Бихме били благодарни, ако споделите с нас мнението си за конференцията и събитията в нея.
|
||||
management:
|
||||
volunteers:
|
||||
index:
|
||||
all: Всички
|
||||
profile: Профил
|
||||
total: "%{current} от общо %{total}"
|
||||
personal_profiles:
|
||||
index:
|
||||
no_profile: 'Този потребител няма въведен профил за текущата конференция.'
|
||||
total: "%{current} от общо %{total}"
|
||||
create:
|
||||
successfully_created: "Профилът беше създаден успешно."
|
||||
show:
|
||||
contacts: "Данни за контакт"
|
||||
event_propositions: "Предложения за събития"
|
||||
conferences:
|
||||
update_vote_data:
|
||||
vote_data_successfully_updated: "Резултатите от гласуването бяха обновени успешно"
|
||||
error_during_vote_data_save: "Възникна грешка при запазването на резултатите от гласуването"
|
||||
error_during_connection_with_voting_endpoint: "Възникна грешка при опит за изтегляне на резултатите от гласуването: %{error}"
|
||||
vote_results:
|
||||
back_to: "Обратно към %{conference}"
|
||||
vote_results: "Резултати от гласуването"
|
||||
vote_data_never_updated: "Резулатите от гласуването не са изтеглени"
|
||||
voting_results: "Резултати от гласуването"
|
||||
vote_data_updated_at: "последно обновяване %{updated_at}"
|
||||
vote_ratio: "%{votes} от общо %{total_votes} гласа"
|
||||
fetch_vote_results: "Обнови резултатите от гласуването"
|
||||
percent: "%"
|
||||
rank: "Позиция"
|
||||
unranked: "Няма данни"
|
||||
export: Експорт
|
||||
show:
|
||||
full_vote_results: "Пълни резултати от гласуването"
|
||||
vote_data_never_updated: "Резулатите от гласуването не са изтеглени"
|
||||
voting_results: "Резултати от гласуването"
|
||||
vote_data_updated_at: "последно обновяване %{updated_at}"
|
||||
vote_ratio: "%{votes} от общо %{total_votes} гласа"
|
||||
summary: 'Обобщение'
|
||||
cfp_status: 'Състояние на CFP'
|
||||
fetch_vote_results: "Обнови резултатите от гласуването"
|
||||
percent: "%"
|
||||
rank: "Позиция"
|
||||
events:
|
||||
conflicts:
|
||||
conflicts: "Конфликти"
|
||||
conflicts_of: "Конфликти на „%{event}“"
|
||||
percent: "Процент"
|
||||
hint_html: "Следващата таблица илюстрира какъв процент от посетителите, изявили интерес да присъстват на <strong>„%{event}“</strong>, биха желали да присъстват на всяко от посочените събития."
|
||||
edit:
|
||||
edit: "Редакция на %{event_type} „%{event_title}“"
|
||||
speaker:
|
||||
no_profile: 'Този потребител няма въведени профили в системата.'
|
||||
profile_from: "профил от %{conference}"
|
||||
create_profile: "Създай нов профил"
|
||||
previous_event_propositions: 'Предишни предложения за събития'
|
||||
contacts: "Информация за контакт"
|
||||
show:
|
||||
between_approved_events: "Между настоящото и одобрените събития"
|
||||
no_approved_events: "Няма достатъчно одобрени събития"
|
||||
rank: "Класиране"
|
||||
review: "Преглед на %{event_type} „%{event_title}“"
|
||||
conflicts: "Конфликти"
|
||||
percent: "Процент"
|
||||
index:
|
||||
all: "Всички"
|
||||
total: "%{current} от общо %{total}"
|
||||
event:
|
||||
create_profile: "Създай профил"
|
||||
no_records:
|
||||
no_records_found: 'Не бяха открити записи, които да отговарят на изискванията'
|
||||
abstract: "Резюме"
|
||||
helpers:
|
||||
submit:
|
||||
|
@ -118,10 +189,8 @@ bg:
|
|||
food_preferences: Предпочитана храна
|
||||
previous_experience: Предишен опит
|
||||
notes: Бележки
|
||||
terms_accepted: Съгласен съм екипът да се свързва с мен
|
||||
language: Език
|
||||
volunteer_team: Екип доброволци
|
||||
additional_volunteer_teams: Допълнителни екипи доброволци
|
||||
volunteer_teams: Екипи доброволци
|
||||
track:
|
||||
color: "Цвят"
|
||||
description: "Описание"
|
||||
|
@ -161,9 +230,7 @@ bg:
|
|||
attributes:
|
||||
picture:
|
||||
invalid_content_type: "невалиден формат на снимката"
|
||||
volunteer_team:
|
||||
invalid_volunteer_team: "невалиден екип от доброволци"
|
||||
additional_volunteer_teams:
|
||||
volunteer_teams:
|
||||
invalid_volunteer_team: "невалиден екип от доброволци"
|
||||
models:
|
||||
feedback:
|
||||
|
@ -225,7 +292,7 @@ bg:
|
|||
did_not_get_confirmation: "Не сте получили инструкции за потвърждение?"
|
||||
did_not_get_unlock: "Не сте получили инструкции за отключване?"
|
||||
do_not_want_pass_reset1: "Ако не желаете да смените паролата си, моля изтрийте това писмо."
|
||||
do_not_want_pass_reset2: "Паролата ви няма да бъде променена, докато не кликнете горния линк и не въведете нова парола."
|
||||
do_not_want_pass_reset2: "Паролата Ви няма да бъде променена, докато не кликнете горния линк и не въведете нова парола."
|
||||
edit: "Редактирай"
|
||||
edit_speaker_profile: "Редакция на профил"
|
||||
edit_talk: "Редакция на лекция"
|
||||
|
@ -237,14 +304,12 @@ bg:
|
|||
improbable_phone: "не е валиден телефонен номер"
|
||||
event_mailer:
|
||||
acceptance_notification:
|
||||
subject: "Предложението ви за провеждане на %{submission_type} „%{title}“ на %{conference} е одобрено"
|
||||
subject: "Предложението Ви за провеждане на %{submission_type} „%{title}“ на %{conference} е одобрено"
|
||||
rejection_notification:
|
||||
subject: "Предложението ви за %{submission_type} „%{title}“ на %{conference} не е одобрено"
|
||||
subject: "Предложението Ви за %{submission_type} „%{title}“ на %{conference} не е одобрено"
|
||||
volunteer_mailer:
|
||||
success_notification:
|
||||
subject: "Кандидатурата ви за доброволец за %{conference_name} беше получена"
|
||||
email_confirmation:
|
||||
subject: "Потвърдете e-mail адреса си, за да се включите в %{conference_name}"
|
||||
subject: "Кандидатурата Ви за доброволец за %{conference_name} беше получена"
|
||||
event_states:
|
||||
approved:
|
||||
one: "Одобрено"
|
||||
|
@ -264,9 +329,9 @@ bg:
|
|||
expected_validation: "Очаква се потвърждение на: %{email}"
|
||||
hello: "Здравейте, %{name}"
|
||||
home: "Начало"
|
||||
home_title: "%{conference} — сподели знания, предложи лекция"
|
||||
home_title: "%{conference} - зов за лектори"
|
||||
lecture_was_successfully_confirmed: "Лекцията беше потвърдена успешно"
|
||||
license_notice: "Имайте предвид, че презентациите ви впоследствие ще бъдат публикувани с лиценз CC-BY-ND (Creative Commons – Attribution – No derivatives)."
|
||||
license_notice: "Имайте предвид, че презентациите Ви впоследствие ще бъдат публикувани с лиценз CC-BY-ND (Creative Commons – Attribution – No derivatives)."
|
||||
locales:
|
||||
bg: "Български"
|
||||
en: Английски
|
||||
|
@ -304,7 +369,7 @@ bg:
|
|||
sign_up: "Регистрация"
|
||||
unhappy: "Не Сте щастливи?"
|
||||
update: "Промени"
|
||||
we_need_your_current_password: "нуждаем се от сегашната ви парола, за да потвърдим промените"
|
||||
we_need_your_current_password: "нуждаем се от сегашната Ви парола, за да потвърдим промените"
|
||||
resend_instructions_btn: "Изпрати отново инструкциите"
|
||||
resend_instructions_header: "Повторно изпращане на инструкции за потвърждаване на акаунт"
|
||||
resend_unlock_instructions_title: "Изпрати отново инструкции за отключване"
|
||||
|
@ -352,30 +417,29 @@ bg:
|
|||
name: "Име на потока"
|
||||
event:
|
||||
abstract: "Резюме на предложението, което да може да бъде представено на посетителите (1 абзац)"
|
||||
agreement: "Отбележете съгласни ли сте с това събитието ви да бъде записано и публикувано под лиценз CC-BY-ND (Creative Commons – Attribution – No Derivatives)"
|
||||
agreement: "Отбележете съгласни ли сте с това събитието Ви да бъде записано и публикувано под лиценз CC-BY-ND (Creative Commons – Attribution – No Derivatives)"
|
||||
description: "Подробно описание на предложението (няколко абзаца)"
|
||||
language: ""
|
||||
length: "Продължителността на събитието (в минути). Продължителността на %{type} е между %{min} и %{max} минути, заедно с въпросите"
|
||||
notes: "Допълнителни бележки, които искате да споделите с организаторския екип"
|
||||
subtitle: ""
|
||||
title: ""
|
||||
track: "Потокът от лекции, в който искате да попадне предложението ви"
|
||||
track: "Потокът от лекции, в който искате да попадне предложението Ви"
|
||||
personal_profile:
|
||||
biography: "Опишете се с няколко изречения, говорейки за себе си в трето лице :)"
|
||||
github: "Потребителското ви име в Github"
|
||||
github: "Потребителското Ви име в Github"
|
||||
mobile_phone: "Мобилен телефон, който ще бъде видим само за организаторите"
|
||||
organisation: "Организацията, която представлявате"
|
||||
picture: "Ваша снимка"
|
||||
public_email: E-mail адрес, който ще бъде видим за посетителите
|
||||
twitter: "Потребителското ви име в Twitter"
|
||||
twitter: "Потребителското Ви име в Twitter"
|
||||
volunteer:
|
||||
name: "Имайте предвид, че това име ще бъде изписано на грамотата ви за участие в конференцията"
|
||||
email: "Е-mail адресът ви, който ще бъде видим само от организаторите"
|
||||
phone: "Мобилният ви телефон, който ще бъде видим само за организаторите"
|
||||
email: "Е-mail адресът Ви, който ще бъде видим само от организаторите"
|
||||
phone: "Мобилният Ви телефон, който ще бъде видим само за организаторите"
|
||||
picture: "Ваша снимка в jpeg, png или gif формат"
|
||||
volunteer_team: "Доброволческият екип, от които искате да бъдете част. Подробни описания на екипите можете да намерите <a href=\"/volunteer_teams\" target=\"_blank\">тук</a>. Ако желаете да участвате в повече от един екип, споменете това в полето бележка."
|
||||
volunteer_teams: "Доброволческите екипи, от които искате да сте част. Подробни описания на екипите можете да намерите <a href=\"/volunteer_teams\" target=\"_blank\">тук</a>"
|
||||
user:
|
||||
email: e-mail адресът ви. Ще бъде видим само от организаторите
|
||||
email: e-mail адресът Ви. Ще бъде видим само от организаторите
|
||||
password: "Парола с дължина между 8 и 128 символа"
|
||||
password_confirmation: "Отново въведената отгоре парола"
|
||||
'no': "Не"
|
||||
|
@ -383,7 +447,7 @@ bg:
|
|||
mark: "*"
|
||||
text: "Задължително поле"
|
||||
'yes': "Да"
|
||||
someone_requested_passreset: "Някой поиска линк за промяна на парола на акаунта ви. Паролата може да бъде променена от линкът отдолу."
|
||||
someone_requested_passreset: "Някой поиска линк за промяна на парола на акаунта Ви. Паролата може да бъде променена от линкът отдолу."
|
||||
speaker_profile: "Личен профил"
|
||||
submit_talk_header: "Предложи нова лекция"
|
||||
suggestion_and_speaker_count: "%{suggestions} предложения от %{speakers} лектори"
|
||||
|
@ -399,34 +463,31 @@ bg:
|
|||
see_details: "Повече информация"
|
||||
events:
|
||||
edit_event: "Редактиране на %{event_type} %{title}"
|
||||
event_successfully_created: "Предложението ви за %{event_type} беше създадено успешно"
|
||||
event_successfully_updated: "Предложението ви за %{event_type} беше обновено успешно"
|
||||
successfully_confirmed: "Предложението ви за %{event_type} беше потвърдено успешно"
|
||||
error_on_confirmation: "Възникна грешка при потвърждението на предложението ви за %{event_type}"
|
||||
event_successfully_created: "Предложението Ви за %{event_type} беше създадено успешно"
|
||||
event_successfully_updated: "Предложението Ви за %{event_type} беше обновено успешно"
|
||||
successfully_confirmed: "Предложението Ви за %{event_type} беше потвърдено успешно"
|
||||
error_on_confirmation: "Възникна грешка при потвърждението на предложението Ви за %{event_type}"
|
||||
no_events: "Все още не сте предложили събитие"
|
||||
submit_event: "Предлагане на %{event_type}"
|
||||
navigation:
|
||||
my_submissions: "Моите предложения"
|
||||
personal_profiles:
|
||||
successfully_created: "Профилът ви беше създаден успешно"
|
||||
successfully_updated: "Профилът ви беше обновен успешно"
|
||||
successfully_created: "Профилът Ви беше създаден успешно"
|
||||
successfully_updated: "Профилът Ви беше обновен успешно"
|
||||
user:
|
||||
info: "Информация за потребител"
|
||||
welcome:
|
||||
submit_event: "Предложи %{event_type}"
|
||||
volunteers:
|
||||
email_not_confirmed: Вашият e-mail адрес не е потвърден. Моля, проверете електронната си поща и кликнете на линка от полученото писмо за потвърждение.
|
||||
email_confirmed_successfully: Успешно потвърдихте e-mail адреса си!
|
||||
email_confirmation_error: Възникна грешка при опит за потвърждаване на e-mail адреса ви.
|
||||
new_volunteer_title: Кандидатствай за доброволец
|
||||
edit_volunteer_title: "Кандидатура за доброволец на %{name}"
|
||||
apply: Кандидатствай за доброволец
|
||||
withdraw_application: Оттегли кандидатурата си
|
||||
successful_application: "Успешно изпратихте кандидатурата си"
|
||||
successful_application_edit: "Успешно редактирахте кандидатурата си"
|
||||
error_occurred_while_applying: "Възникна грешка и кандидатурата ви не беше изпратена"
|
||||
error_occurred_while_applying: "Възникна грешка и кандидатурата Ви не беше изпратена"
|
||||
you_successfully_retracted_your_application_for: "Успешно оттеглихте кандидатурата си“"
|
||||
welcome: "Добре дошли, %{name}"
|
||||
what_we_ask: "Бихме искали да получим предложенията ви за лекции, уъркшопи и щандове до %{date}г. Категориите, които имаме тази година, са:"
|
||||
what_we_ask: "Бихме искали да получим предложенията Ви за лекции и уъркшопи, принадлежащи към следните категории, до %{date}г.:"
|
||||
workshop_was_successfully_confirmed: "Уъркшопът беше потвърден успешно"
|
||||
workshops: "Уъркшопи"
|
||||
|
|
|
@ -1,147 +0,0 @@
|
|||
bg:
|
||||
activerecord:
|
||||
attributes:
|
||||
user:
|
||||
confirmation_sent_at: Потвърждението е изпратено на
|
||||
confirmation_token: Код за потвърждение
|
||||
confirmed_at: Дата на потвърждение
|
||||
created_at: Създаван на
|
||||
current_password: Настояща парола
|
||||
current_sign_in_at: Текущо влизане на
|
||||
current_sign_in_ip: IP на текущото влизане
|
||||
email: Имейл
|
||||
encrypted_password: Закодирана парола
|
||||
failed_attempts: Грешни опити
|
||||
last_sign_in_at: Последно влизане на
|
||||
last_sign_in_ip: IP на последното влизане
|
||||
locked_at: Дата на заключването
|
||||
password: Парола
|
||||
password_confirmation: Потвърждаване на паролата
|
||||
remember_created_at: Дата на създаване на запомнянето
|
||||
remember_me: Запомни ме
|
||||
reset_password_sent_at: Дата на изпращане на промяна на парола
|
||||
reset_password_token: Код за промяна на парола
|
||||
sign_in_count: Бройка входове
|
||||
unconfirmed_email: Непотвърден имейл
|
||||
unlock_token: Код за отключване на профил
|
||||
updated_at: Последна промяна
|
||||
models:
|
||||
user:
|
||||
one: Потребител
|
||||
other: Потребители
|
||||
devise:
|
||||
confirmations:
|
||||
confirmed: Регистрацията Ви е потвърдена.
|
||||
new:
|
||||
resend_confirmation_instructions: Повторно изпращане на инструкции за потвърждаване
|
||||
send_instructions: Ще получите имейл с инструкции за потвърждаване на Вашата регистрация до няколко минути.
|
||||
send_paranoid_instructions: Ако Вашият имейл адрес съществува в нашата база данни, ще получите имейл с инструкции за потвърждаване на Вашия профил до няколко минути.
|
||||
failure:
|
||||
already_authenticated: Вече сте влезли в профила си.
|
||||
inactive: Профилът Ви все още не е активиран.
|
||||
invalid: Грешни %{authentication_keys} или парола.
|
||||
last_attempt: Имате още един опит преди акаунтът Ви да бъде заключен.
|
||||
locked: Профилът Ви е заключен.
|
||||
not_found_in_database: Грешни %{authentication_keys} или парола.
|
||||
timeout: Сесията Ви е изтекла, моля влезте отново, за да продължите.
|
||||
unauthenticated: Преди да продължите, трябва да влезете в профила си или да се регистрирате.
|
||||
unconfirmed: Преди да продължите, трябва да потвърдите регистрацията си.
|
||||
mailer:
|
||||
confirmation_instructions:
|
||||
action: Потвърждаване на профил
|
||||
greeting: Добре дошли, %{recipient}!
|
||||
instruction: 'Можете да потвърдите имейл адреса си чрез линка по-долу:'
|
||||
subject: Инструкции за потвърждаване
|
||||
email_changed:
|
||||
greeting: Здравейте, %{recipient}!
|
||||
message: Свързваме се с Вас, за да Ви уведомим, че имейлът Ви е сменен на %{email}.
|
||||
message_unconfirmed: Свързваме се с Вас, за да Ви уведомим, че имейлът Ви се сменя на %{email}.
|
||||
subject: Промяна на имейл
|
||||
password_change:
|
||||
greeting: Здравейте, %{recipient}!
|
||||
message: Пишем Ви, за да Ви уведомим, че паролата Ви беше променена.
|
||||
subject: Променена парола
|
||||
reset_password_instructions:
|
||||
action: Смяна на парола
|
||||
greeting: Здравейте, %{recipient}!
|
||||
instruction: Някой е поискал линк за промяна на паролата Ви. Можете да промените паролата си чрез линка по-долу.
|
||||
instruction_2: В случай че не сте поискали промяна на паролата си, просто игнорирайте този имейл.
|
||||
instruction_3: Паролата Ви няма да бъде променена, докато не използвате горния линк, за да създадете нова.
|
||||
subject: Инструкции за промяна на парола
|
||||
unlock_instructions:
|
||||
action: Отключване на профил
|
||||
greeting: Здравейте, %{recipient}!
|
||||
instruction: 'Кликнете върху линка по-долу, за да отключите профила си:'
|
||||
message: Профилът Ви е заключен поради надвишаване на максималния позволен брой неуспешни опити за вход.
|
||||
subject: Инструкции за отключване
|
||||
omniauth_callbacks:
|
||||
failure: Не успяхме да ви оторизираме чрез %{kind}, защото %{reason}.
|
||||
success: Успешна оторизация чрез %{kind} профил.
|
||||
passwords:
|
||||
edit:
|
||||
change_my_password: Промяна на паролата ми
|
||||
change_your_password: Променете паролата си
|
||||
confirm_new_password: Потвърждение на новата парола
|
||||
new_password: Нова парола
|
||||
new:
|
||||
forgot_your_password: Забравена парола?
|
||||
send_me_reset_password_instructions: Изпрати инструкции за промяна на парола
|
||||
no_token: Може да достъпите тази страница само от имейл за промяна на паролата. Ако сте отворили тази страница от такъв имейл, уверете се, че използвате целия URL-адрес, който сме Ви изпратили.
|
||||
send_instructions: Ще получите имейл с инструкции как да промените паролата си до няколко минути.
|
||||
send_paranoid_instructions: Ако Вашият имейл адрес съществува в базата ни, ще получите инструкции за промяна на Вашата парола.
|
||||
updated: Паролата Ви е променена успешно. Влязохте успешно в профила си.
|
||||
updated_not_active: Паролата Ви е променена успешно.
|
||||
registrations:
|
||||
destroyed: Довиждане! Вашият профил беше успешно изтрит. Надяваме се скоро да Ви видим отново.
|
||||
edit:
|
||||
are_you_sure: Сигурни ли сте?
|
||||
cancel_my_account: Закриване на профил
|
||||
currently_waiting_confirmation_for_email: 'Очаква се потвърждение за: %{email}'
|
||||
leave_blank_if_you_don_t_want_to_change_it: оставете празно, ако не искате да го променяте
|
||||
title: Редакция на %{resource}
|
||||
unhappy: Недоволни
|
||||
update: Обновяване
|
||||
we_need_your_current_password_to_confirm_your_changes: въведете настоящата си парола за потвърждаване на промените
|
||||
new:
|
||||
sign_up: Регистрация
|
||||
signed_up: Добре дошли! Вие се регистрирахте успешно.
|
||||
signed_up_but_inactive: Регистрирахте се успешно. Въпреки това, не можете да влезете в профила си, защото той все още не е активиран.
|
||||
signed_up_but_locked: Регистрирахте се успешно. Въпреки това, не можете да влезете в профила си, защото той е заключен.
|
||||
signed_up_but_unconfirmed: Писмо с линк за потвърждаване на профила Ви беше изпратено на вашия имейл адрес. Моля, отворете линка, за да активирате Вашия профил.
|
||||
update_needs_confirmation: Обновихте профила си успешно, но трябва да проверим Вашия нов имейл адрес. Моля, проверете пощата си и отворете линка за потвърждаване на новия адрес.
|
||||
updated: Обновихте профила си успешно.
|
||||
updated_but_not_signed_in: Вашият профил бе обновен успешно, но понеже паролата Ви беше променена, трябва да влезнете отново.
|
||||
sessions:
|
||||
already_signed_out: Излязохте успешно.
|
||||
new:
|
||||
sign_in: Вход
|
||||
signed_in: Влязохте успешно.
|
||||
signed_out: Излязохте успешно.
|
||||
shared:
|
||||
links:
|
||||
back: Назад
|
||||
didn_t_receive_confirmation_instructions: Не сте получили инструкции за потвърждаване?
|
||||
didn_t_receive_unlock_instructions: Не сте получили инструкции за отключване?
|
||||
forgot_your_password: Забравена парола?
|
||||
sign_in: Вход
|
||||
sign_in_with_provider: Вход с %{provider}
|
||||
sign_up: Регистрация
|
||||
minimum_password_length:
|
||||
one: "(минимум %{count} символ)"
|
||||
other: "(минимум %{count} символа)"
|
||||
unlocks:
|
||||
new:
|
||||
resend_unlock_instructions: Повторно изпращане на инструкции за отключване
|
||||
send_instructions: Ще получите имейл с инструкции как да отключите профила си до няколко минути.
|
||||
send_paranoid_instructions: Ако профилът Ви съществува в базата ни, ще получите имейл с инструкции за отключването му до няколко минути.
|
||||
unlocked: Профилът Ви е отключен успешно. За да продължите, моля влезте.
|
||||
errors:
|
||||
messages:
|
||||
already_confirmed: е вече потвърден, моля опитайте да влезете в профила си
|
||||
confirmation_period_expired: трябва да се потвърди в рамките на %{period}, моля направете нова заявка за потвърждаване
|
||||
expired: е изтекъл, моля заявете нов
|
||||
not_found: не е намерен
|
||||
not_locked: не бе заключен
|
||||
not_saved:
|
||||
one: 'Една грешка попречи този %{resource} да бъде записан:'
|
||||
other: "%{count} грешки попречиха този %{resource} да бъде записан:"
|
|
@ -1,21 +1,21 @@
|
|||
en:
|
||||
public:
|
||||
event_feedbacks:
|
||||
new: &new_feedbacks_bg
|
||||
feedback_for: "Rating '%{title}'"
|
||||
new: &new_feedbacks_en
|
||||
feedback_for: Rating '%{title}'
|
||||
submit: Submit
|
||||
success: The feedback was submitted successfully
|
||||
conference_feedbacks:
|
||||
new: *new_feedbacks_bg
|
||||
new: *new_feedbacks_en
|
||||
index:
|
||||
feedback_for_the_conference: Feedback for the conference
|
||||
general_feedback_for: "Submit general feedback for \"%{title}\""
|
||||
change_general_feedback_for: "Resubmit general feedback for \"%{title}\""
|
||||
feedback_for: "Submit feedback for \"%{title}\""
|
||||
change_feedback_for: "Resubmit feedback for \"%{title}\""
|
||||
by: "by %{authors}"
|
||||
general_feedback_for: Submit general feedback for "%{title}"
|
||||
change_general_feedback_for: Resubmit general feedback for "%{title}"
|
||||
feedback_for: Submit feedback for "%{title}"
|
||||
change_feedback_for: Resubmit feedback for "%{title}"
|
||||
by: by %{authors}
|
||||
feedback_incentive: We would be happy to receive your feedback about the conference and its events.
|
||||
abstract: "Abstract"
|
||||
abstract: Abstract
|
||||
helpers:
|
||||
submit:
|
||||
event:
|
||||
|
@ -25,90 +25,68 @@ en:
|
|||
create: "Submit application"
|
||||
update: "Update application"
|
||||
actions:
|
||||
are_you_sure: "Are you sure?"
|
||||
clone:
|
||||
button: "Clone %{model}"
|
||||
title: "Clone existing %{model}"
|
||||
are_you_sure: Are you sure?
|
||||
create:
|
||||
button: "Create %{model}"
|
||||
title: "Create a new #{model}"
|
||||
button: Create %{model}
|
||||
title: 'Create a new #{model}'
|
||||
destroy:
|
||||
button: "Destroy %{model}"
|
||||
button: Destroy %{model}
|
||||
edit:
|
||||
button: "Edit %{model}"
|
||||
title: "Editing %{model}"
|
||||
button: Edit %{model}
|
||||
title: Editing %{model}
|
||||
index:
|
||||
button: "Browse %{models}"
|
||||
title: "Browse %{models}"
|
||||
button: Browse %{models}
|
||||
title: Browse %{models}
|
||||
new:
|
||||
title_f: "New %{model}"
|
||||
title_m: "New %{model}"
|
||||
title_c: "New %{model}"
|
||||
title_f: New %{model}
|
||||
title_m: New %{model}
|
||||
view:
|
||||
button: "View %{model}"
|
||||
title: "Viewing %{model}"
|
||||
attributes:
|
||||
average_rating: Average rating
|
||||
rating: Rating
|
||||
button: View %{model}
|
||||
title: Viewing %{model}
|
||||
activerecord:
|
||||
attributes:
|
||||
feedback:
|
||||
author_email: E-mail
|
||||
rating: Rating
|
||||
comment: Comment
|
||||
participation:
|
||||
participant: Participant
|
||||
approved: Confirmed by participant
|
||||
proposition:
|
||||
status: Status
|
||||
statuses:
|
||||
undecided: Undecided
|
||||
approved: Approved
|
||||
rejected: Rejected
|
||||
backup: Backup
|
||||
conference:
|
||||
participants: "Participants"
|
||||
description: "Description"
|
||||
description: Description
|
||||
email: E-mail
|
||||
end_date: "End date"
|
||||
host_name: "Domain name"
|
||||
start_date: "Start date"
|
||||
planned_cfp_end_date: "Planned CFP End date"
|
||||
title: "Title"
|
||||
end_date: End date
|
||||
host_name: Domain name
|
||||
start_date: Start date
|
||||
title: Title
|
||||
event:
|
||||
conference: "Conference"
|
||||
status: "Statis"
|
||||
abstract: "Abstract"
|
||||
agreement: "I accept"
|
||||
description: "Description"
|
||||
language: "Language"
|
||||
length: "Length"
|
||||
notes: "Notes"
|
||||
subtitle: "Sub-title"
|
||||
title: "Title"
|
||||
track: "Track"
|
||||
rank: "Rank"
|
||||
user: "Speaker"
|
||||
participants: "Participants"
|
||||
feedbacks: "Feedback"
|
||||
abstract: Abstract
|
||||
agreement: I accept
|
||||
description: Description
|
||||
language: Language
|
||||
length: Length
|
||||
notes: Notes
|
||||
subtitle: Sub-title
|
||||
title: Title
|
||||
track: Track
|
||||
user: Speaker
|
||||
feedbacks: Feedback
|
||||
event_type:
|
||||
description: "Description"
|
||||
name: "Name"
|
||||
description: Description
|
||||
name: Name
|
||||
minimum_length: Minimum length
|
||||
maximum_length: Maximum length
|
||||
hall:
|
||||
name: "Name"
|
||||
name: Name
|
||||
personal_profile:
|
||||
biography: "Short biography"
|
||||
first_name: "First name"
|
||||
biography: Short bography
|
||||
first_name: First name
|
||||
github: Github account
|
||||
last_name: "Last name"
|
||||
mobile_phone: "Mobile phone"
|
||||
organisation: "Organization"
|
||||
picture: "Photo"
|
||||
public_email: "Public e-mail"
|
||||
last_name: Last name
|
||||
mobile_phone: Mobile phone
|
||||
organisation: Organization
|
||||
picture: Photo
|
||||
public_email: Public e-mail
|
||||
twitter: Twitter account
|
||||
volunteer:
|
||||
language: Language
|
||||
picture: Picture
|
||||
name: Name
|
||||
email: E-mail
|
||||
|
@ -118,206 +96,187 @@ en:
|
|||
food_preferences: Food preference
|
||||
previous_experience: Previous experience
|
||||
notes: Notes
|
||||
terms_accepted: I agree to be contacted by the team
|
||||
language: Language
|
||||
volunteer_team: Volunteer team
|
||||
additional_volunteer_teams: Additional volunteer teams
|
||||
volunteer_teams: Екипи доброволци
|
||||
track:
|
||||
color: "Color"
|
||||
description: "Description"
|
||||
name: "Name"
|
||||
user:
|
||||
current_password: "Current password"
|
||||
email: E-mail
|
||||
language: "Language"
|
||||
password: "Password"
|
||||
password_confirmation: "Password confirmation"
|
||||
remember_me: "Remember me"
|
||||
volunteer_team:
|
||||
name: Name
|
||||
description: Description
|
||||
color: Color
|
||||
description: Description
|
||||
name: Name
|
||||
user:
|
||||
current_password: Current password
|
||||
email: E-mail
|
||||
language: Language
|
||||
password: Password
|
||||
password_confirmation: Password confirmation
|
||||
remember_me: Remember me
|
||||
errors:
|
||||
models:
|
||||
event:
|
||||
attributes:
|
||||
track:
|
||||
must_be_a_valid_track: "must be one of the listed lecture tracks"
|
||||
must_be_a_valid_track: must be one of the listed lecture tracks
|
||||
length:
|
||||
must_be_between: "must be between %{minimum} and %{maximum} minutes"
|
||||
personal_profile:
|
||||
attributes:
|
||||
github:
|
||||
invalid: "can contain only alphabet characters, digits or a dash and cannot start with a dash"
|
||||
invalid: can contain only alphabet characters, digits or a dash and cannot start with a dash
|
||||
twitter:
|
||||
invalid: "can contain a maximum of 15 symbols that need to be alphabet characters, digits or an underscore"
|
||||
invalid: can contain a maximum of 15 symbols that need to be alphabet charachters, digits or an underscore
|
||||
user:
|
||||
attributes:
|
||||
email:
|
||||
invalid: "is not a valid e-mail address"
|
||||
invalid: is not a valid e-mail address
|
||||
password_confirmation:
|
||||
confirmation: "does not match the password"
|
||||
confirmation: does not match the password
|
||||
volunteer:
|
||||
attributes:
|
||||
picture:
|
||||
invalid_content_type: "invalid picture format"
|
||||
volunteer_team:
|
||||
invalid_volunteer_team: "invalid volunteer team"
|
||||
additional_volunteer_teams:
|
||||
invalid_volunteer_team: "invalid volunteer team"
|
||||
models:
|
||||
feedback:
|
||||
one: Feedback
|
||||
other: Feedback
|
||||
participation:
|
||||
one: Participation
|
||||
other: Participation
|
||||
volunteership:
|
||||
one: volunteership
|
||||
other: volunteerships
|
||||
conference:
|
||||
one: "conference"
|
||||
other: "conferences"
|
||||
one: conference
|
||||
other: conferences
|
||||
event:
|
||||
one: "Suggestion"
|
||||
other: "Suggestions"
|
||||
one: Suggestion
|
||||
other: Suggestions
|
||||
event_type:
|
||||
one: "event type"
|
||||
other: "event types"
|
||||
one: event type
|
||||
other: event types
|
||||
hall:
|
||||
one: "hall"
|
||||
other: "halls"
|
||||
one: hall
|
||||
other: halls
|
||||
lecture:
|
||||
one: "Lecture"
|
||||
other: "Lectures"
|
||||
one: Lecture
|
||||
other: Lectures
|
||||
personal_profile:
|
||||
one: "Profile"
|
||||
other: "Profiles"
|
||||
one: Profile
|
||||
other: Profiles
|
||||
proposition:
|
||||
one: "Proposition"
|
||||
other: "Propositions"
|
||||
one: Proposition
|
||||
other: Propositions
|
||||
sponsorship_offer:
|
||||
one: "sponsor"
|
||||
other: "sponsors"
|
||||
one: sponsor
|
||||
other: sponsors
|
||||
track:
|
||||
one: "track"
|
||||
other: "tracks"
|
||||
one: track
|
||||
other: tracks
|
||||
volunteer_team:
|
||||
one: "volunteer team"
|
||||
other: "volunteer teams"
|
||||
user:
|
||||
one: "User"
|
||||
other: "Users"
|
||||
one: User
|
||||
other: Users
|
||||
volunteer:
|
||||
one: "volunteer"
|
||||
other: "volunteers"
|
||||
one: volunteer
|
||||
other: volunteers
|
||||
workshop:
|
||||
one: "Workshop"
|
||||
other: "Workshops"
|
||||
change_pass: "Change password"
|
||||
click_to_unlock: "Click the link below to unlock"
|
||||
confirm_by_clicking: "You can confirm your account by clicking the link below"
|
||||
one: Workshop
|
||||
other: Workshops
|
||||
change_pass: Change password
|
||||
click_to_unlock: Click the link below to unlock
|
||||
confirm_by_clicking: You can confirm your account by clicking the link below
|
||||
confirmations:
|
||||
did_not_receive_confirmation_instructions: "You have not received confirmation instructions?"
|
||||
resend: "Send"
|
||||
resend_confirmation: "Send confirmation E-mail"
|
||||
description: "Description"
|
||||
did_not_get_confirmation: "You did not receive confirmation instructions?"
|
||||
did_not_get_unlock: "You did not receive unlock instructions?"
|
||||
did_not_receive_confirmation_instructions: You have not received confirmation instructions?
|
||||
resend: Send
|
||||
resend_confirmation: Send confirmation E-mail
|
||||
description: Description
|
||||
did_not_get_confirmation: You did not receive confirmation instructions?
|
||||
did_not_get_unlock: You did not receive unlock instructions?
|
||||
do_not_want_pass_reset1: "If you don't want to change your password, please delete this E-mail."
|
||||
do_not_want_pass_reset2: "Your password will not be change unless you click the link above and enter a new password."
|
||||
edit: "Edit"
|
||||
edit_speaker_profile: "Edit profile"
|
||||
edit_talk: "Edit talk"
|
||||
edit_title: "track \"%{track}\", duration: %{len} min"
|
||||
edit_workshop: "Edit workshop"
|
||||
enter: "Enter"
|
||||
do_not_want_pass_reset2: Your password will not be change unless you click the link above and enter a new password.
|
||||
edit: Edit
|
||||
edit_speaker_profile: Edit profile
|
||||
edit_talk: Edit talk
|
||||
edit_title: 'track "%{track}", duration: %{len} min'
|
||||
edit_workshop: Edit workshop
|
||||
enter: Enter
|
||||
errors:
|
||||
messages:
|
||||
improbable_phone: "not a valid phone number"
|
||||
improbable_phone: not a valid phone number
|
||||
event_mailer:
|
||||
acceptance_notification:
|
||||
subject: "Your submission for %{conference} for the %{submission_type} \"%{title}\" has been approved"
|
||||
subject: Your submission for %{conference} for the %{submission_type} "%{title}" has been approved
|
||||
rejection_notification:
|
||||
subject: "Your submission for %{conference} for the %{submission_type} \"%{title}\" has not been approved"
|
||||
volunteer_mailer:
|
||||
success_notification:
|
||||
subject: "Your application for \"volunteership\" on %{conference_name} was received"
|
||||
email_confirmation:
|
||||
subject: "Confirm your e-mail address to participate in %{conference_name}"
|
||||
subject: "Your application for volunteership on %{conference_name} was received"
|
||||
event_states:
|
||||
approved:
|
||||
one: "Approved"
|
||||
other: "Approved"
|
||||
one: Approved
|
||||
other: Approved
|
||||
backup:
|
||||
one: "Backup"
|
||||
other: "Backup"
|
||||
one: Backup
|
||||
other: Backup
|
||||
confirmed:
|
||||
one: "Confirmed"
|
||||
other: "Confirmed"
|
||||
one: Confirmed
|
||||
other: Confirmed
|
||||
rejected:
|
||||
one: "Rejected"
|
||||
other: "Rejected"
|
||||
one: Rejected
|
||||
other: Rejected
|
||||
undecided:
|
||||
one: "Undecided"
|
||||
other: "Undecided"
|
||||
expected_validation: "Awaiting confirmation of %{email}"
|
||||
hello: "Hello, %{name}"
|
||||
home: "Home"
|
||||
one: Undecided
|
||||
other: Undecided
|
||||
expected_validation: Awaiting confirmation of %{email}
|
||||
hello: Hello, %{name}
|
||||
home: Home
|
||||
home_title: "%{conference} - call for participation"
|
||||
lecture_was_successfully_confirmed: "Your lecture was confirmed successfully"
|
||||
license_notice: "Please keep in mind that the presentations will later be published under the CC-BY-ND (Creative Commons – Attribution – No derivatives) license."
|
||||
lecture_was_successfully_confirmed: Your lecture was confirmed successfully
|
||||
license_notice: Please keep in mind that the presentations will later be published under the CC-BY-ND (Creative Commons – Attribution – No derivatives) license.
|
||||
locales:
|
||||
bg: "Bulgarian"
|
||||
bg: Bulgarian
|
||||
en: English
|
||||
login: "Login"
|
||||
login_data: "Account information"
|
||||
login_with: "Log in with %{with}"
|
||||
logout: "Log out"
|
||||
lostpass: "Forgotten password?"
|
||||
meta_data: "Language: %{language}, track: \"%{track}\", duration: %{length} m."
|
||||
my_talks: "My lecture submissions"
|
||||
my_workshops: "My workshop submissions"
|
||||
new_workshop_title: "Submit a workshop"
|
||||
no_talks_submitted: "You are yet to submit a lecture"
|
||||
no_workshops_submitted: "You are yet to submit a workshop"
|
||||
of_motto: "share the freedom"
|
||||
pass_update_hint1: "Do not fill this in unless you want to change your password"
|
||||
login: Login
|
||||
login_data: Account information
|
||||
login_with: Log in with %{with}
|
||||
logout: Log out
|
||||
lostpass: Forgotten password?
|
||||
meta_data: 'Language: %{language}, track: "%{track}", duration: %{length} m.'
|
||||
my_talks: My lecture submissions
|
||||
my_workshops: My workshop submissions
|
||||
new_workshop_title: Submit a workshop
|
||||
no_talks_submitted: You are yet to submit a lecture
|
||||
no_workshops_submitted: You are yet to submit a workshop
|
||||
of_motto: share the freedom
|
||||
pass_update_hint1: Do not fill this in unless you want to change your password
|
||||
pass_update_hint2: "Fill this in if you'd like to change your password or E-mail address"
|
||||
passwords:
|
||||
change_your_password: "Change your password"
|
||||
confirm_your_new_password: "Password confirmation"
|
||||
forgotten_password: "Forgotten password"
|
||||
new_password: "New password"
|
||||
send_instructions: "Send instructions"
|
||||
please_fill_in_your_speaker_profile: "Please fill in the data for your personal profile"
|
||||
registration: "Registration"
|
||||
change_your_password: Change your password
|
||||
confirm_your_new_password: Password confirmation
|
||||
forgotten_password: Forgotten password
|
||||
new_password: New password
|
||||
send_instructions: Send instructions
|
||||
please_fill_in_your_speaker_profile: Please fill in the data for your personal profile
|
||||
registration: Registration
|
||||
registrations:
|
||||
account_cancelation: "Account deletion"
|
||||
add_phone_number: "Add a phone number"
|
||||
are_you_sure: "Are you sure you want to delete your registration"
|
||||
cancel_my_account: "Delete my account"
|
||||
edit_account: "Edit account"
|
||||
account_cancelation: Account deletion
|
||||
add_phone_number: Add a phone number
|
||||
are_you_sure: Are you sure you want to delete your registration
|
||||
cancel_my_account: Delete my account
|
||||
edit_account: Edit account
|
||||
leave_blank_if_you_do_not_want_to_change: "leave blank if you don't want to change it"
|
||||
minimum_characters: "at least %{minimum} symbols"
|
||||
sign_me_up: "Sign me up"
|
||||
sign_up: "Registration"
|
||||
unhappy: "You are not happy?"
|
||||
update: "Update"
|
||||
we_need_your_current_password: "we need your current password in order to confirm the changes"
|
||||
resend_instructions_btn: "Resend instructions"
|
||||
resend_instructions_header: "Resend confirmation instructions"
|
||||
resend_unlock_instructions_title: "Resend unlock instructions"
|
||||
send_lostpass_instructions: "Resend lost password instructions"
|
||||
minimum_characters: at least %{minimum} symbols
|
||||
sign_me_up: Sign me up
|
||||
sign_up: Registration
|
||||
unhappy: You are not happy?
|
||||
update: Update
|
||||
we_need_your_current_password: we need your current password in order to confirm the changes
|
||||
resend_instructions_btn: Resend instructions
|
||||
resend_instructions_header: Resend confirmation instructions
|
||||
resend_unlock_instructions_title: Resend unlock instructions
|
||||
send_lostpass_instructions: Resend lost password instructions
|
||||
sessions:
|
||||
remember_me: "Remember me"
|
||||
sign_in: "Sign in"
|
||||
sign_in_heading: "Sign in"
|
||||
sign_in_with: "Sign in with %{with}"
|
||||
sign_out: "Sign out"
|
||||
remember_me: Remember me
|
||||
sign_in: Sign in
|
||||
sign_in_heading: Sign in
|
||||
sign_in_with: Sign in with %{with}
|
||||
sign_out: Sign out
|
||||
simple_form:
|
||||
error_notification:
|
||||
default_message: "Please see the errors below:"
|
||||
default_message: 'Please see the errors below:'
|
||||
options:
|
||||
volunteer:
|
||||
tshirt_size:
|
||||
|
@ -336,97 +295,92 @@ en:
|
|||
vegan: Vegan
|
||||
hints:
|
||||
feedback:
|
||||
author_email: Your E-mail address if you'd like to share it with us
|
||||
author_email: "Your E-mail address if you'd like to share it with us"
|
||||
rating: Select your rating for the event
|
||||
comment: Express your opinion in greater detail here
|
||||
conference:
|
||||
description: "Conference description"
|
||||
description: Conference description
|
||||
email: Orga team email
|
||||
end_date: "Last day of the conference"
|
||||
start_date: "First day of the conference"
|
||||
planned_cfp_end_date: "The day before all speakers must have submitted their proposals. This field is informative, it is not enforced."
|
||||
title: "Title of the conference"
|
||||
end_date: Last day of the conference
|
||||
start_date: First day of the conference
|
||||
title: Title of the conference
|
||||
tracks:
|
||||
color: "Color"
|
||||
description: "Short description"
|
||||
name: "Track name"
|
||||
color: Color
|
||||
description: Short description
|
||||
name: Track name
|
||||
event:
|
||||
abstract: "An abstract of the event that will be published for the attendees to read (around 1 paragraph)"
|
||||
agreement: "Indicate if you accept your workshop to be recorded and published under the CC-BY-ND (Creative Commons – Attribution – No Derivatives) license"
|
||||
description: "Detailed description of the event (several paragraphs)"
|
||||
language: ""
|
||||
abstract: An abstract of the event that will be published for the attendees to read (around 1 paragraph)
|
||||
agreement: Indicate if you accept your workshop to be recorded and published under the CC-BY-ND (Creative Commons – Attribution – No Derivatives) license
|
||||
description: Detailed description of the event (several paragraphs)
|
||||
language: "Language in which the event will be lead"
|
||||
length: "Length of the event (in minutes). The length of a %{type} is between %{min} and %{max} minutes"
|
||||
notes: "Notes that you'd like the organisation team to read"
|
||||
subtitle: ""
|
||||
title: ""
|
||||
track: "The lecture track for your event"
|
||||
track: The lecture track for your event
|
||||
personal_profile:
|
||||
biography: "Describe yourself with a few sentences, writing about yourself in the third person :)"
|
||||
github: "Your Github username"
|
||||
mobile_phone: "A mobile phone that will be visible only by the organisation team"
|
||||
organisation: "The organisation you represent"
|
||||
picture: "Your photo"
|
||||
biography: Describe yourself with a few sentences, writing about yourself in the third person :)
|
||||
github: Your Github username
|
||||
mobile_phone: A mobile phone that will be visible only by the organisation team
|
||||
organisation: The organisation you represent
|
||||
picture: Your photo
|
||||
public_email: E-mail address that will be visible for the attendees
|
||||
twitter: "Your Twitter handle"
|
||||
twitter: Your Twitter handle
|
||||
volunteer:
|
||||
name: "Keep in mind that this name will be written in your certificate for participation in the conference."
|
||||
email: "Your E-mail address. It will be visible only to the organizers"
|
||||
phone: "Your mobile phone. It will be visible only to the organizers"
|
||||
email: "Your E-mail address. It will be visible only to the organizsers"
|
||||
phone: "Your mobile phone. It will be visible only to the organizsers"
|
||||
picture: "A picture of you in jpeg, png or gif format"
|
||||
volunteer_team: "The volunteer team you'd like to be a part of. You can find a description of each team <a href=\"/volunteer_teams?locale=en\" target=\"_blank\">here</a>. Leave a note in the Notes field if you wish to be a part of any additional teams."
|
||||
volunteer_teams: "The volunteer teams you'd like to be part of. You can find a description of each team <a href=\"/volunteer_teams?locale=en\" target=\"_blank\">here</a>"
|
||||
user:
|
||||
email: Your e-mail address. Will be visible to the organizers only.
|
||||
password: "Password with length between 8 and 128 symbols"
|
||||
password_confirmation: "Repeat the password"
|
||||
'no': "No"
|
||||
password: Password with length between 8 and 128 symbols
|
||||
password_confirmation: Repeat the password
|
||||
'no': false
|
||||
required:
|
||||
mark: "*"
|
||||
text: "Required field"
|
||||
'yes': "Yes"
|
||||
someone_requested_passreset: "Someone requested to change the password of your account. The password can be changed by following the link below"
|
||||
speaker_profile: "Speaker profile"
|
||||
submit_talk_header: "Submit a new talk"
|
||||
text: Required field
|
||||
'yes': true
|
||||
someone_requested_passreset: Someone requested to change the password of your account. The password can be changed by following the link below
|
||||
speaker_profile: Speaker profile
|
||||
submit_talk_header: Submit a new talk
|
||||
suggestion_and_speaker_count: "%{suggestions} submissions by %{speakers} speakers"
|
||||
talks: "Talks"
|
||||
talks: Talks
|
||||
unlocks:
|
||||
did_not_receive_unlock_instructions: "Did not receive unlock instructions?"
|
||||
resend: "Resend"
|
||||
resend_unlock_instructions: "Resend unlock instructions"
|
||||
update: "Update"
|
||||
did_not_receive_unlock_instructions: DId not receive unlock instructions?
|
||||
resend: Resend
|
||||
resend_unlock_instructions: Resend unlock instructions
|
||||
update: Update
|
||||
views:
|
||||
conference:
|
||||
info: "Conference details"
|
||||
see_details: "See details"
|
||||
info: Conference details
|
||||
see_details: See details
|
||||
events:
|
||||
edit_event: "Editing %{event_type} %{title}"
|
||||
event_successfully_created: "Your %{event_type} submission was successfully created"
|
||||
event_successfully_updated: "Your %{event_type} submission was successfully updated"
|
||||
successfully_confirmed: "Your %{event_type} submission was successfully confirmed"
|
||||
error_on_confirmation: "There was an error during the confirmation of your %{event_type} submission"
|
||||
no_events: "You are yet to submit an event"
|
||||
submit_event: "Submit a %{event_type}"
|
||||
edit_event: Editing %{event_type} %{title}
|
||||
event_successfully_created: Your %{event_type} submission was successfully created
|
||||
event_successfully_updated: Your %{event_type} submission was successfully updated
|
||||
successfully_confirmed: Your %{event_type} submission was successfully confirmed
|
||||
error_on_confirmation: There was an error during the confirmation of your %{event_type} submission
|
||||
no_events: You are yet to submit an event
|
||||
submit_event: Submit a %{event_type}
|
||||
navigation:
|
||||
my_submissions: "My submissions"
|
||||
my_submissions: My submissions
|
||||
personal_profiles:
|
||||
successfully_created: "Your personal profile was successfully created"
|
||||
successfully_updated: "Your personal profile was successfully updated"
|
||||
successfully_created: Your personal profile was successfully created
|
||||
successfully_updated: Your personal profile was successfully updated
|
||||
user:
|
||||
info: "User details"
|
||||
info: User details
|
||||
welcome:
|
||||
submit_event: "Submit %{event_type}"
|
||||
submit_event: Submit %{event_type}
|
||||
volunteers:
|
||||
email_not_confirmed: Your e-mail address has not been confirmed yet. Please check your e-mail and click on the link from the confirmation message you received.
|
||||
email_confirmed_successfully: You have successfully confirmed your e-mail address!
|
||||
email_confirmation_error: There was an error during the attempt to confirm your e-mail address.
|
||||
new_volunteer_title: Apply for a volunteer
|
||||
edit_volunteer_title: "Volunteership application of %{name}"
|
||||
apply: Apply for a volunteer
|
||||
withdraw_application: Withdraw your application
|
||||
withdraw_application: Withraw your application
|
||||
successful_application: "Your application was successfully submitted"
|
||||
successful_application_edit: "Your application was successfully updated"
|
||||
error_occurred_while_applying: "There was an error and your application could not be sent"
|
||||
you_successfully_retracted_your_application_for: "Your application was successfully retracted"
|
||||
welcome: "Welcome, %{name}"
|
||||
what_we_ask: "We would like to receive your lecture, workshop, and stand submissions that belong to the following tracks until %{date}:"
|
||||
workshop_was_successfully_confirmed: "The workshop was successfully confirmed"
|
||||
workshops: "Workshops"
|
||||
welcome: Welcome, %{name}
|
||||
what_we_ask: 'We would like to receive your lecture and workshop submissions that belong to the following tracks until %{date}:'
|
||||
workshop_was_successfully_confirmed: The workshop was successfully confirmed
|
||||
workshops: Workshops
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue