Remove the OpenFest engine
This commit is contained in:
parent
dd607fd8d1
commit
2a1e8e0819
|
@ -1,3 +0,0 @@
|
||||||
[submodule "lib/open_fest/app/vendor/initfest"]
|
|
||||||
path = lib/open_fest/app/vendor/initfest
|
|
||||||
url = https://github.com/initLab/initfest.git
|
|
|
@ -1,8 +0,0 @@
|
||||||
.bundle/
|
|
||||||
log/*.log
|
|
||||||
pkg/
|
|
||||||
test/dummy/db/*.sqlite3
|
|
||||||
test/dummy/db/*.sqlite3-journal
|
|
||||||
test/dummy/log/*.log
|
|
||||||
test/dummy/tmp/
|
|
||||||
test/dummy/.sass-cache
|
|
|
@ -1,15 +0,0 @@
|
||||||
source 'https://rubygems.org'
|
|
||||||
|
|
||||||
# Declare your gem's dependencies in open_fest.gemspec.
|
|
||||||
# Bundler will treat runtime dependencies like base dependencies, and
|
|
||||||
# development dependencies will be added by default to the :development group.
|
|
||||||
gemspec
|
|
||||||
|
|
||||||
# Declare any dependencies that are still in development here instead of in
|
|
||||||
# your gemspec. These might include edge Rails or gems from your path or
|
|
||||||
# Git. Remember to move these dependencies to your gemspec before releasing
|
|
||||||
# your gem to rubygems.org.
|
|
||||||
|
|
||||||
# To use a debugger
|
|
||||||
# gem 'byebug', group: [:development, :test]
|
|
||||||
|
|
|
@ -1,123 +0,0 @@
|
||||||
PATH
|
|
||||||
remote: .
|
|
||||||
specs:
|
|
||||||
open_fest (0.0.1)
|
|
||||||
devise
|
|
||||||
rails (~> 4.2.3)
|
|
||||||
|
|
||||||
GEM
|
|
||||||
remote: https://rubygems.org/
|
|
||||||
specs:
|
|
||||||
actionmailer (4.2.3)
|
|
||||||
actionpack (= 4.2.3)
|
|
||||||
actionview (= 4.2.3)
|
|
||||||
activejob (= 4.2.3)
|
|
||||||
mail (~> 2.5, >= 2.5.4)
|
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
||||||
actionpack (4.2.3)
|
|
||||||
actionview (= 4.2.3)
|
|
||||||
activesupport (= 4.2.3)
|
|
||||||
rack (~> 1.6)
|
|
||||||
rack-test (~> 0.6.2)
|
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
||||||
actionview (4.2.3)
|
|
||||||
activesupport (= 4.2.3)
|
|
||||||
builder (~> 3.1)
|
|
||||||
erubis (~> 2.7.0)
|
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
||||||
activejob (4.2.3)
|
|
||||||
activesupport (= 4.2.3)
|
|
||||||
globalid (>= 0.3.0)
|
|
||||||
activemodel (4.2.3)
|
|
||||||
activesupport (= 4.2.3)
|
|
||||||
builder (~> 3.1)
|
|
||||||
activerecord (4.2.3)
|
|
||||||
activemodel (= 4.2.3)
|
|
||||||
activesupport (= 4.2.3)
|
|
||||||
arel (~> 6.0)
|
|
||||||
activesupport (4.2.3)
|
|
||||||
i18n (~> 0.7)
|
|
||||||
json (~> 1.7, >= 1.7.7)
|
|
||||||
minitest (~> 5.1)
|
|
||||||
thread_safe (~> 0.3, >= 0.3.4)
|
|
||||||
tzinfo (~> 1.1)
|
|
||||||
arel (6.0.2)
|
|
||||||
bcrypt (3.1.10)
|
|
||||||
builder (3.2.2)
|
|
||||||
devise (3.5.1)
|
|
||||||
bcrypt (~> 3.0)
|
|
||||||
orm_adapter (~> 0.1)
|
|
||||||
railties (>= 3.2.6, < 5)
|
|
||||||
responders
|
|
||||||
thread_safe (~> 0.1)
|
|
||||||
warden (~> 1.2.3)
|
|
||||||
erubis (2.7.0)
|
|
||||||
globalid (0.3.5)
|
|
||||||
activesupport (>= 4.1.0)
|
|
||||||
i18n (0.7.0)
|
|
||||||
json (1.8.3)
|
|
||||||
loofah (2.0.2)
|
|
||||||
nokogiri (>= 1.5.9)
|
|
||||||
mail (2.6.3)
|
|
||||||
mime-types (>= 1.16, < 3)
|
|
||||||
mime-types (2.6.1)
|
|
||||||
mini_portile (0.6.2)
|
|
||||||
minitest (5.7.0)
|
|
||||||
nokogiri (1.6.6.2)
|
|
||||||
mini_portile (~> 0.6.0)
|
|
||||||
orm_adapter (0.5.0)
|
|
||||||
rack (1.6.4)
|
|
||||||
rack-test (0.6.3)
|
|
||||||
rack (>= 1.0)
|
|
||||||
rails (4.2.3)
|
|
||||||
actionmailer (= 4.2.3)
|
|
||||||
actionpack (= 4.2.3)
|
|
||||||
actionview (= 4.2.3)
|
|
||||||
activejob (= 4.2.3)
|
|
||||||
activemodel (= 4.2.3)
|
|
||||||
activerecord (= 4.2.3)
|
|
||||||
activesupport (= 4.2.3)
|
|
||||||
bundler (>= 1.3.0, < 2.0)
|
|
||||||
railties (= 4.2.3)
|
|
||||||
sprockets-rails
|
|
||||||
rails-deprecated_sanitizer (1.0.3)
|
|
||||||
activesupport (>= 4.2.0.alpha)
|
|
||||||
rails-dom-testing (1.0.6)
|
|
||||||
activesupport (>= 4.2.0.beta, < 5.0)
|
|
||||||
nokogiri (~> 1.6.0)
|
|
||||||
rails-deprecated_sanitizer (>= 1.0.1)
|
|
||||||
rails-html-sanitizer (1.0.2)
|
|
||||||
loofah (~> 2.0)
|
|
||||||
railties (4.2.3)
|
|
||||||
actionpack (= 4.2.3)
|
|
||||||
activesupport (= 4.2.3)
|
|
||||||
rake (>= 0.8.7)
|
|
||||||
thor (>= 0.18.1, < 2.0)
|
|
||||||
rake (10.4.2)
|
|
||||||
responders (2.1.0)
|
|
||||||
railties (>= 4.2.0, < 5)
|
|
||||||
sprockets (3.2.0)
|
|
||||||
rack (~> 1.0)
|
|
||||||
sprockets-rails (2.3.2)
|
|
||||||
actionpack (>= 3.0)
|
|
||||||
activesupport (>= 3.0)
|
|
||||||
sprockets (>= 2.8, < 4.0)
|
|
||||||
sqlite3 (1.3.10)
|
|
||||||
thor (0.19.1)
|
|
||||||
thread_safe (0.3.5)
|
|
||||||
tzinfo (1.2.2)
|
|
||||||
thread_safe (~> 0.1)
|
|
||||||
warden (1.2.3)
|
|
||||||
rack (>= 1.0)
|
|
||||||
|
|
||||||
PLATFORMS
|
|
||||||
ruby
|
|
||||||
|
|
||||||
DEPENDENCIES
|
|
||||||
open_fest!
|
|
||||||
sqlite3
|
|
||||||
|
|
||||||
BUNDLED WITH
|
|
||||||
1.10.5
|
|
|
@ -1,20 +0,0 @@
|
||||||
Copyright 2015 Petko Bordjukov
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
@ -1,3 +0,0 @@
|
||||||
= OpenFest
|
|
||||||
|
|
||||||
This project rocks and uses MIT-LICENSE.
|
|
|
@ -1,37 +0,0 @@
|
||||||
begin
|
|
||||||
require 'bundler/setup'
|
|
||||||
rescue LoadError
|
|
||||||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'rdoc/task'
|
|
||||||
|
|
||||||
RDoc::Task.new(:rdoc) do |rdoc|
|
|
||||||
rdoc.rdoc_dir = 'rdoc'
|
|
||||||
rdoc.title = 'OpenFest'
|
|
||||||
rdoc.options << '--line-numbers'
|
|
||||||
rdoc.rdoc_files.include('README.rdoc')
|
|
||||||
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
||||||
end
|
|
||||||
|
|
||||||
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
|
||||||
load 'rails/tasks/engine.rake'
|
|
||||||
|
|
||||||
|
|
||||||
load 'rails/tasks/statistics.rake'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Bundler::GemHelper.install_tasks
|
|
||||||
|
|
||||||
require 'rake/testtask'
|
|
||||||
|
|
||||||
Rake::TestTask.new(:test) do |t|
|
|
||||||
t.libs << 'lib'
|
|
||||||
t.libs << 'test'
|
|
||||||
t.pattern = 'test/**/*_test.rb'
|
|
||||||
t.verbose = false
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
task default: :test
|
|
|
@ -1 +0,0 @@
|
||||||
../../vendor/initfest/img
|
|
|
@ -1,15 +0,0 @@
|
||||||
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
||||||
// listed below.
|
|
||||||
//
|
|
||||||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
||||||
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
||||||
//
|
|
||||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
||||||
// compiled file.
|
|
||||||
//
|
|
||||||
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
||||||
// about supported directives.
|
|
||||||
//
|
|
||||||
//= require jquery
|
|
||||||
//= require jquery_ujs
|
|
||||||
//= require_tree .
|
|
|
@ -1,2 +0,0 @@
|
||||||
// Place all the behaviors and hooks related to the matching controller here.
|
|
||||||
// All this logic will automatically be available in application.js.
|
|
|
@ -1 +0,0 @@
|
||||||
../../vendor/initfest/css
|
|
|
@ -1,137 +0,0 @@
|
||||||
.alert-error {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input {
|
|
||||||
position: relative;
|
|
||||||
margin: 0 0 1em 0;
|
|
||||||
border-top: 0.1em dotted #999;
|
|
||||||
padding: 1em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input label {
|
|
||||||
font-size: 1em;
|
|
||||||
display: block;
|
|
||||||
width: 12em;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input {
|
|
||||||
input.string, input.email, input.password, select.select, input.numeric {
|
|
||||||
font-size: 1em;
|
|
||||||
width: 20em;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
|
||||||
height: 15em;
|
|
||||||
width: 45em;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
padding: 5px;
|
|
||||||
display: block;
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
background-color: #F1F1F1;
|
|
||||||
margin-left: 12em;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.input label.boolean {
|
|
||||||
margin-left: 12em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input .hint, .input .error {
|
|
||||||
display: block;
|
|
||||||
clear: both;
|
|
||||||
font-size: 0.75em;
|
|
||||||
font-style: italic;
|
|
||||||
width: 20em;
|
|
||||||
margin: 0 0 0 16em;
|
|
||||||
padding: 1em 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input .error {
|
|
||||||
font-style: normal;
|
|
||||||
padding: 1em 0 0 0;
|
|
||||||
color: #F00;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input .error::before {
|
|
||||||
content: "⇧";
|
|
||||||
display: inline-block;
|
|
||||||
font-size: 2em;
|
|
||||||
margin: 0 0.2em 0 0;
|
|
||||||
transform: translate(0, 0.1em);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
display: block;
|
|
||||||
margin: 2em 0 0 13em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* styling of the button */
|
|
||||||
.btn {
|
|
||||||
background: #233e83;
|
|
||||||
padding: 0.4em 0.8em;
|
|
||||||
border-radius: 0.2em;
|
|
||||||
color: #FFF;
|
|
||||||
border: none;
|
|
||||||
border-bottom: 0.2em solid #7A95DC;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background 200ms, border 200ms, transform 200ms;
|
|
||||||
-webkit-transition: background 200ms, border 200ms, transform 200ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:hover {
|
|
||||||
background: #152551;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:active {
|
|
||||||
background: #597AD2;
|
|
||||||
border-bottom: 0.2em solid #000;
|
|
||||||
transform: translate(0, 0.1em);
|
|
||||||
-webkit-transform: translate(0, 0.1em);
|
|
||||||
}
|
|
||||||
|
|
||||||
.centered {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.large {
|
|
||||||
padding: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-link {
|
|
||||||
background: #233e83;
|
|
||||||
padding: 0.4em 0.8em;
|
|
||||||
border-radius: 0.2em;
|
|
||||||
color: #FFF;
|
|
||||||
border: none;
|
|
||||||
border-bottom: 0.2em solid #7A95DC;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background 200ms, border 200ms, transform 200ms;
|
|
||||||
-webkit-transition: background 200ms, border 200ms, transform 200ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-link:link, .btn-link:active, .btn-link:visited {
|
|
||||||
color: #FFF;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-link:hover {
|
|
||||||
background: #152551;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-link:active {
|
|
||||||
background: #597AD2;
|
|
||||||
border-bottom: 0.2em solid #000;
|
|
||||||
transform: translate(0, 0.1em);
|
|
||||||
-webkit-transform: translate(0, 0.1em);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-link-large {
|
|
||||||
font-size: 2em;
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
@import "font-awesome-sprockets";
|
|
||||||
@import "font-awesome";
|
|
||||||
|
|
||||||
@import 'initfest/styles';
|
|
||||||
@import 'forms';
|
|
|
@ -1,12 +0,0 @@
|
||||||
module OpenFest::Users::DeviseController
|
|
||||||
extend ActiveSupport::Concern
|
|
||||||
|
|
||||||
included do
|
|
||||||
before_filter :require_current_conference!
|
|
||||||
layout 'open_fest/application'
|
|
||||||
end
|
|
||||||
|
|
||||||
def signed_in_root_path(user)
|
|
||||||
root_path
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,18 +0,0 @@
|
||||||
module OpenFest
|
|
||||||
class ApplicationController < ActionController::Base
|
|
||||||
include ::CurrentConferenceAssigning
|
|
||||||
|
|
||||||
before_filter :require_current_conference!
|
|
||||||
before_filter :set_locale
|
|
||||||
|
|
||||||
def set_locale
|
|
||||||
if params[:locale]
|
|
||||||
I18n.locale = params[:locale]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def default_url_options(options = {})
|
|
||||||
options.merge(locale: params[:locale])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,38 +0,0 @@
|
||||||
require_dependency "open_fest/application_controller"
|
|
||||||
|
|
||||||
module OpenFest
|
|
||||||
class EventsController < ApplicationController
|
|
||||||
before_filter :authenticate_user!
|
|
||||||
|
|
||||||
def index
|
|
||||||
end
|
|
||||||
|
|
||||||
def new
|
|
||||||
event_type = current_conference.event_types.find(params[:type])
|
|
||||||
@event = Event.new event_type: event_type
|
|
||||||
end
|
|
||||||
|
|
||||||
def create
|
|
||||||
@event = Event.new event_params
|
|
||||||
@event.conference = current_conference
|
|
||||||
@event.build_proposition proposer: current_user
|
|
||||||
@event.participations.build participant: current_user, approved: true
|
|
||||||
|
|
||||||
if @event.save
|
|
||||||
redirect_to action: :index
|
|
||||||
else
|
|
||||||
render action: :new
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def event_params
|
|
||||||
params.require(:event).permit(
|
|
||||||
:title, :subtitle, :track_id, :length, :language,
|
|
||||||
:abstract, :description, :notes, :agreement,
|
|
||||||
:event_type_id
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,42 +0,0 @@
|
||||||
module OpenFest
|
|
||||||
class PersonalProfilesController < ApplicationController
|
|
||||||
def new
|
|
||||||
@profile = current_user.build_personal_profile(current_conference)
|
|
||||||
end
|
|
||||||
|
|
||||||
def create
|
|
||||||
@profile = current_user.build_personal_profile(current_conference, profile_params)
|
|
||||||
|
|
||||||
if @profile.save
|
|
||||||
flash[:notice] = t('profile.successfully_created')
|
|
||||||
redirect_to root_path
|
|
||||||
else
|
|
||||||
render action: :new
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def edit
|
|
||||||
@profile = current_user.personal_profile(current_conference)
|
|
||||||
end
|
|
||||||
|
|
||||||
def update
|
|
||||||
@profile = current_user.personal_profile(current_conference)
|
|
||||||
|
|
||||||
if @profile.update_attributes(profile_params)
|
|
||||||
flash[:notice] = t('profile.successfully_updated')
|
|
||||||
redirect_to root_path
|
|
||||||
else
|
|
||||||
render action: 'edit'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def profile_params
|
|
||||||
params.require(:personal_profile).permit(
|
|
||||||
:picture, :picture_cache, :first_name, :last_name, :public_email,
|
|
||||||
:organisation, :github, :twitter, :mobile_phone, :biography
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,3 +0,0 @@
|
||||||
class OpenFest::Users::ConfirmationsController < Devise::ConfirmationsController
|
|
||||||
include OpenFest::Users::DeviseController
|
|
||||||
end
|
|
|
@ -1,7 +0,0 @@
|
||||||
class OpenFest::Users::PasswordsController < Devise::PasswordsController
|
|
||||||
include OpenFest::Users::DeviseController
|
|
||||||
|
|
||||||
def after_sending_reset_password_instructions_path_for(resource_name)
|
|
||||||
new_user_session_path
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,43 +0,0 @@
|
||||||
class OpenFest::Users::RegistrationsController < Devise::RegistrationsController
|
|
||||||
include OpenFest::Users::DeviseController
|
|
||||||
|
|
||||||
def edit
|
|
||||||
@user = resource
|
|
||||||
end
|
|
||||||
|
|
||||||
def update
|
|
||||||
@user = User.find(current_user.id)
|
|
||||||
|
|
||||||
successfully_updated =
|
|
||||||
if needs_password?(@user, params)
|
|
||||||
@user.update_with_password(params_for_update)
|
|
||||||
else
|
|
||||||
# remove the virtual current_password attribute
|
|
||||||
# update_without_password doesn't know how to ignore it
|
|
||||||
params[:user].delete(:current_password)
|
|
||||||
@user.update_without_password(params_for_update)
|
|
||||||
end
|
|
||||||
|
|
||||||
if successfully_updated
|
|
||||||
set_flash_message :notice, :updated
|
|
||||||
# Sign in the user bypassing validation in case their password changed
|
|
||||||
sign_in @user, :bypass => true
|
|
||||||
redirect_to after_update_path_for(@user)
|
|
||||||
else
|
|
||||||
render "edit"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def params_for_update
|
|
||||||
params.require(:user).permit(:email, :language, :password, :password_confirmation, :current_password)
|
|
||||||
end
|
|
||||||
|
|
||||||
def needs_password?(user, params)
|
|
||||||
user.email != params[:user][:email] ||
|
|
||||||
params[:user][:password].present? ||
|
|
||||||
params[:user][:password_confirmation].present?
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
|
@ -1,3 +0,0 @@
|
||||||
class OpenFest::Users::SessionsController < Devise::SessionsController
|
|
||||||
include OpenFest::Users::DeviseController
|
|
||||||
end
|
|
|
@ -1,3 +0,0 @@
|
||||||
class OpenFest::Users::UnlocksController < Devise::UnlocksController
|
|
||||||
include OpenFest::Users::DeviseController
|
|
||||||
end
|
|
|
@ -1,9 +0,0 @@
|
||||||
module OpenFest
|
|
||||||
module ApplicationHelper
|
|
||||||
def locale_collection
|
|
||||||
I18n.available_locales.map do |locale|
|
|
||||||
[t("locales.#{locale}"), locale]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,4 +0,0 @@
|
||||||
module OpenFest
|
|
||||||
module WelcomeHelper
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 2afb0ce65bf1718252550379c4bd8c742072ebf3
|
|
|
@ -1,22 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>
|
|
||||||
<% if content_for? :title %>
|
|
||||||
<%= yield :title %> |
|
|
||||||
<% end %>
|
|
||||||
<%= current_conference.try :title %>
|
|
||||||
</title>
|
|
||||||
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
|
||||||
<%= stylesheet_link_tag "open_fest/application", media: "all" %>
|
|
||||||
<%= javascript_include_tag "open_fest/application" %>
|
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<%= render 'open_fest/shared/nav' %>
|
|
||||||
<section class="content">
|
|
||||||
<%= render 'open_fest/shared/flash_messages' %>
|
|
||||||
<%= yield %>
|
|
||||||
</section>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1 +0,0 @@
|
||||||
=> link_to t('views.welcome.submit_event', event_type: event_type.name.mb_chars.downcase), new_event_path(type: event_type.id), class: 'btn-link btn-link-large'
|
|
|
@ -1,6 +0,0 @@
|
||||||
li
|
|
||||||
p
|
|
||||||
strong
|
|
||||||
= track.name
|
|
||||||
span<> –
|
|
||||||
= track.description
|
|
|
@ -1,14 +0,0 @@
|
||||||
h1.entry-title = t :home_title, conference: current_conference.title
|
|
||||||
|
|
||||||
= simple_format current_conference.description
|
|
||||||
|
|
||||||
p = t :what_we_ask
|
|
||||||
|
|
||||||
ul
|
|
||||||
= render partial: 'track', collection: current_conference.tracks
|
|
||||||
|
|
||||||
p = t :license_notice
|
|
||||||
|
|
||||||
- if current_conference.call_for_participation.in_progress?
|
|
||||||
.centered.large
|
|
||||||
= render partial: 'event_type', collection: current_conference.event_types
|
|
|
@ -1,24 +0,0 @@
|
||||||
= simple_form_for @event, wrapper: :default do |form|
|
|
||||||
= form.input :event_type_id, as: :hidden, wrapper: false
|
|
||||||
|
|
||||||
h2= t('submit_event', event_type: @event.event_type.name)
|
|
||||||
|
|
||||||
p
|
|
||||||
= form.error_notification
|
|
||||||
|
|
||||||
.form-inputs
|
|
||||||
= form.input :title, autofocus: true
|
|
||||||
= form.input :subtitle
|
|
||||||
= form.association :track, wrapper: :default, collection: current_conference.tracks
|
|
||||||
|
|
||||||
-# TODO length is different for different types of events (translation problem)
|
|
||||||
= form.input :length
|
|
||||||
|
|
||||||
= form.input :language, as: :radio_buttons, collection: locale_collection, include_blank: false, wrapper: :default, checked: current_user.language
|
|
||||||
= form.input :abstract
|
|
||||||
= form.input :description
|
|
||||||
= form.input :notes
|
|
||||||
|
|
||||||
= form.input :agreement, as: :boolean, wrapper: :default
|
|
||||||
|
|
||||||
= form.button :submit
|
|
|
@ -1,20 +0,0 @@
|
||||||
= simple_form_for @profile, wrapper: :default, url: personal_profile_path do |f|
|
|
||||||
= f.error_notification
|
|
||||||
|
|
||||||
.form-inputs
|
|
||||||
.input.file.required.personal_profile_picture
|
|
||||||
= image_tag(@profile.picture.medium.url) if @profile.picture?
|
|
||||||
= f.input :picture, as: :file, required: true, wrapper: false
|
|
||||||
|
|
||||||
= f.hidden_field :picture_cache, class: 'image_preview', wrapper: false
|
|
||||||
= f.input :first_name, autofocus: true
|
|
||||||
= f.input :last_name
|
|
||||||
= f.input :public_email
|
|
||||||
= f.input :organisation
|
|
||||||
= f.input :github
|
|
||||||
= f.input :twitter
|
|
||||||
= f.input :mobile_phone, input_html: {value: @profile.mobile_phone.try(:phony_formatted, format: :international)}
|
|
||||||
= f.input :biography
|
|
||||||
|
|
||||||
.form-actions
|
|
||||||
= f.button :submit
|
|
|
@ -1,5 +0,0 @@
|
||||||
- content_for(:title) { ":: #{t :personal_profile}" }
|
|
||||||
|
|
||||||
h2.entry-title = t :personal_profile
|
|
||||||
|
|
||||||
= render 'form'
|
|
|
@ -1,5 +0,0 @@
|
||||||
- content_for(:title) { ":: #{t :personal_profile}" }
|
|
||||||
|
|
||||||
h2.entry-title = t :personal_profile
|
|
||||||
|
|
||||||
= render 'form'
|
|
|
@ -1,3 +0,0 @@
|
||||||
div#flash_messages
|
|
||||||
- flash.each do |key, value|
|
|
||||||
= content_tag :div, value, class: "flash #{key}"
|
|
|
@ -1,31 +0,0 @@
|
||||||
nav
|
|
||||||
.content.cf
|
|
||||||
= link_to 'http://www.openfest.org', class: 'logo' do
|
|
||||||
= image_tag 'img/logo.png', alt: 'OpenFest'
|
|
||||||
|
|
||||||
div
|
|
||||||
ul.menu
|
|
||||||
li
|
|
||||||
= link_to t('views.navigation.submit_event'), events_path
|
|
||||||
/ li
|
|
||||||
/ a href="#" = t('views.navigation.become_a_volunteer')
|
|
||||||
/ li
|
|
||||||
/ a href="#" = t('views.navigation.become_a_sponsor')
|
|
||||||
|
|
||||||
- unless user_signed_in?
|
|
||||||
== content_tag :li, class: [('current_page_item' if controller_name == 'sessions')] do
|
|
||||||
= link_to t(:login), new_user_session_path
|
|
||||||
- else
|
|
||||||
== content_tag :li, class: [('current_page_item' if controller_name == 'registrations')] do
|
|
||||||
= link_to t(:edit_speaker_profile), edit_user_registration_path
|
|
||||||
li
|
|
||||||
= link_to t(:logout), destroy_user_session_path, method: :delete
|
|
||||||
li
|
|
||||||
- if I18n.locale == :bg
|
|
||||||
= link_to url_for(request.query_parameters.merge(locale: 'en')), hreflang: 'en' do
|
|
||||||
img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHzSURBVHjaYkxOP8IAB//+Mfz7w8Dwi4HhP5CcJb/n/7evb16/APL/gRFQDiAAw3JuAgAIBEDQ/iswEERjGzBQLEru97ll0g0+3HvqMn1SpqlqGsZMsZsIe0SICA5gt5a/AGIEarCPtFh+6N/ffwxA9OvP/7//QYwff/6fZahmePeB4dNHhi+fGb59Y4zyvHHmCEAAAW3YDzQYaJJ93a+vX79aVf58//69fvEPlpIfnz59+vDhw7t37968efP3b/SXL59OnjwIEEAsDP+YgY53b2b89++/awvLn98MDi2cVxl+/vl6mituCtBghi9f/v/48e/XL86krj9XzwEEEENy8g6gu22rfn78+NGs5Ofr16+ZC58+fvyYwX8rxOxXr169fPny+fPn1//93bJlBUAAsQADZMEBxj9/GBxb2P/9+S/R8u3vzxuyaX8ZHv3j8/YGms3w8ycQARmi2eE37t4ACCDGR4/uSkrKAS35B3TT////wADOgLOBIaXIyjBlwxKAAGKRXjCB0SOEaeu+/y9fMnz4AHQxCP348R/o+l+//sMZQBNLEvif3AcIIMZbty7Ly6t9ZmXl+fXj/38GoHH/UcGfP79//BBiYHjy9+8/oUkNAAHEwt1V/vI/KBY/QSISFqM/GBg+MzB8A6PfYC5EFiDAABqgW776MP0rAAAAAElFTkSuQmCC" title="English" alt="English"
|
|
||||||
- elsif I18n.locale == :en
|
|
||||||
= link_to url_for(request.query_parameters.merge(locale: 'bg')), hreflang: 'bg' do
|
|
||||||
img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFgSURBVHjaYvz69SsDEvj37x+ERGbAwZ9//wACiAUoysXFBST///8P0QOm//+HU0jgxYsXAAHEAlP0H5nxHxtgZGQEWgIQQCx3Pt2RYZL5+/8vQobh/z8gBIN/MAhErEwst77dAgggRoZmhjKXskefH/359weIfv/7DUJ/f//6CyR//fr7C8j99QdEyvPKH5x0ECAAhWOQAgAMg7D+/8nWNVMQDwmCvWTessZJ9VWHCIns0yWxc/MF4FgMUgCAYRBmpf9/sDqY2yWEQBbEYcK0ZuKxIY0FGZ98Z/8KFlcAsTAcYZDX/M369tefv3/+/AGSIJf8+fMbxPgDYoC4QOP//JER+XPqIANAALH83M7ALPvn3z2gcSBTQK4AOwRKQhh/fjP8+cuo8reOgQEggFiA0cP0+w+DpCRQDijK8AekE+SuP38YICQQ/f0LQUDFAAHECIznf0iIAZWLJgUEAAEGADzQZYYqa4w6AAAAAElFTkSuQmCC" title="Български" alt="Български"
|
|
||||||
- else
|
|
||||||
= I18n.locale.inspect
|
|
|
@ -1,15 +0,0 @@
|
||||||
- content_for(:title) { ":: #{t :resend_instructions_header}" }
|
|
||||||
|
|
||||||
h2.entry-title = t :resend_instructions_header
|
|
||||||
|
|
||||||
= simple_form_for(resource, wrapper: :default, as: :user, url: user_confirmation_path) do |f|
|
|
||||||
= f.error_notification
|
|
||||||
= f.full_error :confirmation_token
|
|
||||||
|
|
||||||
.form-inputs
|
|
||||||
= f.input :email, required: true, autofocus: true, hint: false
|
|
||||||
|
|
||||||
.form-actions
|
|
||||||
= f.button :submit, t(:resend_instructions_btn)
|
|
||||||
|
|
||||||
== render 'devise/shared/links'
|
|
|
@ -1,18 +0,0 @@
|
||||||
- content_for(:title) { ":: #{t :change_pass}" }
|
|
||||||
|
|
||||||
h2.entry-title = t :change_pass
|
|
||||||
|
|
||||||
= simple_form_for(resource, wrapper: :default, as: :user, url: user_password_path, html: { method: :put }) do |f|
|
|
||||||
= f.error_notification
|
|
||||||
|
|
||||||
= f.input :reset_password_token, as: :hidden
|
|
||||||
= f.full_error :reset_password_token
|
|
||||||
|
|
||||||
.form-inputs
|
|
||||||
= f.input :password, required: true, autofocus: true
|
|
||||||
= f.input :password_confirmation, required: true
|
|
||||||
|
|
||||||
.form-actions
|
|
||||||
= f.button :submit, t(:change_pass)
|
|
||||||
|
|
||||||
= render 'devise/shared/links'
|
|
|
@ -1,14 +0,0 @@
|
||||||
- content_for(:title) { ":: #{t :lostpass}" }
|
|
||||||
|
|
||||||
h2.entry-title = t :lostpass
|
|
||||||
|
|
||||||
= simple_form_for(resource, wrapper: :default, as: :user, url: user_password_path) do |f|
|
|
||||||
= f.error_notification
|
|
||||||
|
|
||||||
.form-inputs
|
|
||||||
= f.input :email, required: true, autofocus: true, hint: false
|
|
||||||
|
|
||||||
.form-actions
|
|
||||||
= f.button :submit, t(:send_lostpass_instructions)
|
|
||||||
|
|
||||||
== render 'devise/shared/links'
|
|
|
@ -1,25 +0,0 @@
|
||||||
- content_for(:title) { t :edit_speaker_profile }
|
|
||||||
|
|
||||||
= simple_form_for(resource, wrapper: :default, as: :user, url: user_registration_path, html: { method: :put, multipart: true }) do |f|
|
|
||||||
.form_inputs
|
|
||||||
h2
|
|
||||||
- if current_user.personal_profile(current_conference).present?
|
|
||||||
= link_to t(:personal_profile), edit_personal_profile_path
|
|
||||||
- else
|
|
||||||
= link_to t(:personal_profile), new_personal_profile_path
|
|
||||||
|
|
||||||
.form-inputs
|
|
||||||
h3.entry-title = t :login_data
|
|
||||||
= f.input :email, required: true
|
|
||||||
= f.input :language, collection: I18n.available_locales, required: true
|
|
||||||
|
|
||||||
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
|
||||||
p
|
|
||||||
= t :expected_validation, email: resource.unconfirmed_email
|
|
||||||
|
|
||||||
= f.input :password, autocomplete: "off", hint: t(:pass_update_hint1), required: false
|
|
||||||
= f.input :password_confirmation, required: false
|
|
||||||
= f.input :current_password, hint: t(:pass_update_hint2), required: true
|
|
||||||
|
|
||||||
.form-actions
|
|
||||||
= f.button :submit, t(:update)
|
|
|
@ -1,16 +0,0 @@
|
||||||
- content_for(:title) { ":: #{t :registration}" }
|
|
||||||
|
|
||||||
h2.entry-title = t :registration
|
|
||||||
|
|
||||||
= simple_form_for(resource, wrapper: :default, as: :user, url: user_registration_path) do |f|
|
|
||||||
= f.error_notification
|
|
||||||
|
|
||||||
.form-inputs
|
|
||||||
= f.input :email, required: true, autofocus: true
|
|
||||||
= f.input :password, required: true
|
|
||||||
= f.input :password_confirmation, required: true
|
|
||||||
|
|
||||||
.form-actions
|
|
||||||
= f.button :submit
|
|
||||||
|
|
||||||
== render 'devise/shared/links'
|
|
|
@ -1,14 +0,0 @@
|
||||||
- content_for(:title) { "#{t :login}" }
|
|
||||||
|
|
||||||
h2.entry-title = t :login
|
|
||||||
|
|
||||||
= simple_form_for(resource, wrapper: :default, as: :user, url: user_session_path) do |f|
|
|
||||||
.form-inputs
|
|
||||||
= f.input :email, required: false, autofocus: true, hint: false
|
|
||||||
= f.input :password, required: false, hint: false
|
|
||||||
= f.input :remember_me, as: :boolean, wrapper: :default if devise_mapping.rememberable?
|
|
||||||
|
|
||||||
.form-actions
|
|
||||||
= f.button :submit, t(:login)
|
|
||||||
|
|
||||||
== render 'open_fest/users/shared/links'
|
|
|
@ -1,15 +0,0 @@
|
||||||
- if controller_name != 'sessions'
|
|
||||||
= link_to t(:enter), new_user_session_path
|
|
||||||
br
|
|
||||||
|
|
||||||
- if devise_mapping.registerable? && controller_name != 'registrations'
|
|
||||||
= link_to t(:registration), new_user_registration_path
|
|
||||||
br
|
|
||||||
|
|
||||||
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
|
||||||
= link_to t(:lostpass), new_user_password_path
|
|
||||||
br
|
|
||||||
|
|
||||||
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
|
||||||
= link_to t(:did_not_get_confirmation), new_user_confirmation_path
|
|
||||||
br
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
# This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
|
|
||||||
|
|
||||||
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
|
||||||
ENGINE_PATH = File.expand_path('../../lib/open_fest/engine', __FILE__)
|
|
||||||
|
|
||||||
# Set up gems listed in the Gemfile.
|
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
|
||||||
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
|
||||||
|
|
||||||
require 'rails/all'
|
|
||||||
require 'rails/engine/commands'
|
|
|
@ -1,60 +0,0 @@
|
||||||
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
|
||||||
|
|
||||||
en:
|
|
||||||
devise:
|
|
||||||
confirmations:
|
|
||||||
confirmed: "Your email address has been successfully confirmed."
|
|
||||||
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
|
|
||||||
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
|
|
||||||
failure:
|
|
||||||
already_authenticated: "You are already signed in."
|
|
||||||
inactive: "Your account is not activated yet."
|
|
||||||
invalid: "Invalid %{authentication_keys} or password."
|
|
||||||
locked: "Your account is locked."
|
|
||||||
last_attempt: "You have one more attempt before your account is locked."
|
|
||||||
not_found_in_database: "Invalid %{authentication_keys} or password."
|
|
||||||
timeout: "Your session expired. Please sign in again to continue."
|
|
||||||
unauthenticated: "You need to sign in or sign up before continuing."
|
|
||||||
unconfirmed: "You have to confirm your email address before continuing."
|
|
||||||
mailer:
|
|
||||||
confirmation_instructions:
|
|
||||||
subject: "Confirmation instructions"
|
|
||||||
reset_password_instructions:
|
|
||||||
subject: "Reset password instructions"
|
|
||||||
unlock_instructions:
|
|
||||||
subject: "Unlock instructions"
|
|
||||||
omniauth_callbacks:
|
|
||||||
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
|
||||||
success: "Successfully authenticated from %{kind} account."
|
|
||||||
passwords:
|
|
||||||
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
|
||||||
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
|
|
||||||
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
|
||||||
updated: "Your password has been changed successfully. You are now signed in."
|
|
||||||
updated_not_active: "Your password has been changed successfully."
|
|
||||||
registrations:
|
|
||||||
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
|
|
||||||
signed_up: "Welcome! You have signed up successfully."
|
|
||||||
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
|
||||||
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
|
||||||
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
|
||||||
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
|
||||||
updated: "Your account has been updated successfully."
|
|
||||||
sessions:
|
|
||||||
signed_in: "Signed in successfully."
|
|
||||||
signed_out: "Signed out successfully."
|
|
||||||
already_signed_out: "Signed out successfully."
|
|
||||||
unlocks:
|
|
||||||
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
|
|
||||||
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
|
|
||||||
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
|
||||||
errors:
|
|
||||||
messages:
|
|
||||||
already_confirmed: "was already confirmed, please try signing in"
|
|
||||||
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
|
||||||
expired: "has expired, please request a new one"
|
|
||||||
not_found: "not found"
|
|
||||||
not_locked: "was not locked"
|
|
||||||
not_saved:
|
|
||||||
one: "1 error prohibited this %{resource} from being saved:"
|
|
||||||
other: "%{count} errors prohibited this %{resource} from being saved:"
|
|
|
@ -1,32 +0,0 @@
|
||||||
bg:
|
|
||||||
simple_form:
|
|
||||||
"yes": Да
|
|
||||||
"no": Не
|
|
||||||
required:
|
|
||||||
text: Задължително поле
|
|
||||||
mark: '*'
|
|
||||||
error_notification:
|
|
||||||
default_message: 'Моля, разгледайте посочените грешки във формуляра:'
|
|
||||||
hints:
|
|
||||||
user:
|
|
||||||
email: e-mail адресът Ви. Ще бъде видим само от организаторите
|
|
||||||
password: Парола с дължина между 8 и 128 символа
|
|
||||||
password_confirmation: Отново въведената отгоре парола
|
|
||||||
speaker_profile:
|
|
||||||
picture: Ваша снимка
|
|
||||||
organisation: Организацията, която представлявате
|
|
||||||
public_email: E-mail адрес, който ще бъде видим за посетителите
|
|
||||||
mobile_phone: Мобилен телефон, който ще бъде видим само за организаторите
|
|
||||||
biography: Опишете се с няколко изречения, говорейки за себе си в трето лице :)
|
|
||||||
github: Потребителското Ви име в Github
|
|
||||||
twitter: Потребителското Ви име в Twitter
|
|
||||||
event:
|
|
||||||
title: Заглавието на събитието Ви
|
|
||||||
subtitle: Подзаглавието на събитието Ви (ако има такова)
|
|
||||||
track: Потокът от лекции, в който искате да попадне събитието Ви
|
|
||||||
length: Продължителността на събитието може да бъде от 40 до 45 минути
|
|
||||||
language: Език, на който ще бъде водено събитието
|
|
||||||
abstract: Резюме на събитието, което да може да бъде прочетено от посетителите (1 абзац)
|
|
||||||
description: Подробно описание на събитието (няколко абзаца)
|
|
||||||
notes: Забележки, които искате да споделите с организаторския екип
|
|
||||||
agreement: Отбележете съгласни ли сте с това събитието Ви да бъде записано и публикувано под лиценз CC-BY-ND (Creative Commons – Attribution – No Derivatives)
|
|
|
@ -1,32 +0,0 @@
|
||||||
en:
|
|
||||||
simple_form:
|
|
||||||
"yes": Yes
|
|
||||||
"no": No
|
|
||||||
required:
|
|
||||||
text: Required field
|
|
||||||
mark: '*'
|
|
||||||
error_notification:
|
|
||||||
default_message: 'Please see the errors below:'
|
|
||||||
hints:
|
|
||||||
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
|
|
||||||
speaker_profile:
|
|
||||||
picture: Your photo
|
|
||||||
organisation: Your organization
|
|
||||||
public_email: E-mail address, visible to the visitors
|
|
||||||
mobile_phone: Mobile phone, visible for the organizers only
|
|
||||||
biography: Describe yourself in a few sentences in third person :)
|
|
||||||
github: Your Github username
|
|
||||||
twitter: Your Twitter username
|
|
||||||
event:
|
|
||||||
title: Title of your event
|
|
||||||
subtitle: Sub-title of your event (if applicable)
|
|
||||||
track_id: Track for your event
|
|
||||||
length: The length of your event can be from 40 to 45 minutes
|
|
||||||
language: Language in which the event will be presented
|
|
||||||
abstract: Abstract of the event, for the visitors
|
|
||||||
description: Detailed description of the event, visible to the visitors
|
|
||||||
notes: Notes on your event, visible only to the organizers
|
|
||||||
agreement: Indicate if you accept that your event will be recorded and published under the CC-BY-ND (Creative Commons – Attribution – No Derivatives) license
|
|
|
@ -1,76 +0,0 @@
|
||||||
bg:
|
|
||||||
views:
|
|
||||||
welcome:
|
|
||||||
submit_event: "Предложи %{event_type}"
|
|
||||||
home_title: "%{conference} - зов за лектори"
|
|
||||||
what_we_ask: 'Бихме искали да получим предложенията Ви за лекции и уъркшопи, принадлежащи към следните категории до 30 септември 2014г.:'
|
|
||||||
license_notice: 'Имайте предвид, че презентациите ви впоследствие ще бъдат публикувани с лиценз CC-BY-ND (Creative Commons – Attribution – No derivatives).'
|
|
||||||
submit_event: Предложи %{event_type}
|
|
||||||
resend_instructions_header: Повторно изпращане на инструкции за потвърждаване на акаунт
|
|
||||||
resend_instructions_btn: Изпрати отново инструкциите
|
|
||||||
|
|
||||||
enter: Вход
|
|
||||||
login: Вход
|
|
||||||
registration: Регистрация
|
|
||||||
lostpass: Забравена парола?
|
|
||||||
did_not_get_confirmation: Не сте получили инструкции за потвърждение?
|
|
||||||
did_not_get_unlock: Не сте получили инструкции за отключване?
|
|
||||||
change_pass: Промяна на парола
|
|
||||||
send_lostpass_instructions: Изпрати ми инструкции за промяна на парола
|
|
||||||
|
|
||||||
login_data: Данни за вход в системата
|
|
||||||
login_with: "Влез с %{with}"
|
|
||||||
|
|
||||||
speaker_profile: Лекторски профил
|
|
||||||
please_fill_in_your_speaker_profile: Моля, попълнете данните в лекторския си профил.
|
|
||||||
expected_validation: "Очаква се потвърждение на: %{email}"
|
|
||||||
pass_update_hint1: Не попълвайте, ако не желаете да промените паролата си
|
|
||||||
pass_update_hint2: Попълнете, ако искате да промените паролата или e-mail адреса си.
|
|
||||||
update: Обнови
|
|
||||||
|
|
||||||
resend_unlock_instructions_title: Изпрати отново инструкции за отключване
|
|
||||||
|
|
||||||
edit_speaker_profile: Редакция на профил
|
|
||||||
|
|
||||||
edit_workshop: Редакция на уъркшоп
|
|
||||||
|
|
||||||
edit_title: "поток: „%{track}“, продължителност: %{len} мин."
|
|
||||||
abstract: Резюме
|
|
||||||
description: Описание
|
|
||||||
edit: Редактирай
|
|
||||||
|
|
||||||
new_workshop_title: Предложи нов уъркшоп
|
|
||||||
|
|
||||||
my_workshops: Моите предложения за уъркшопи
|
|
||||||
no_workshops_submitted: Все още не сте предложили уъркшоп
|
|
||||||
|
|
||||||
edit_talk: Редакция на лекция
|
|
||||||
|
|
||||||
submit_talk_header: Предложи нова лекция
|
|
||||||
|
|
||||||
my_talks: Моите предложения за лекции
|
|
||||||
no_talks_submitted: Все още не сте предложили лекция
|
|
||||||
|
|
||||||
hello: "Здравейте, %{name}"
|
|
||||||
account_locked: Акаунтът Ви беше заключен поради голям брой неуспешни опити за влизане в него.
|
|
||||||
click_to_unlock: 'Кликнете линкът отдолу, за да го отключите:'
|
|
||||||
|
|
||||||
welcome: "Добре дошли, %{name}"
|
|
||||||
confirm_by_clicking: Можете да потвърдите акаунта си, като кликнете на линка отдолу
|
|
||||||
|
|
||||||
someone_requested_passreset: Някой поиска линк за промяна на парола на акаунта Ви. Паролата може да бъде променена от линкът отдолу.
|
|
||||||
do_not_want_pass_reset1: Ако не желаете да смените паролата си, моля изтрийте това писмо.
|
|
||||||
do_not_want_pass_reset2: Паролата Ви няма да бъде променена, докато не кликнете горния линк и не въведете нова парола.
|
|
||||||
|
|
||||||
home: Начало
|
|
||||||
talks: Лекции
|
|
||||||
workshops: Уъркшопи
|
|
||||||
logout: Изход
|
|
||||||
|
|
||||||
of_motto: да споделим свободата
|
|
||||||
|
|
||||||
meta_data: "Език: %{language}, поток: „%{track}“, продължителност: %{length} мин."
|
|
||||||
suggestion_and_speaker_count: "%{suggestions} предложения от %{speakers} лектори"
|
|
||||||
|
|
||||||
lecture_was_successfully_confirmed: "Лекцията беше потвърдена успешно"
|
|
||||||
workshop_was_successfully_confirmed: "Уъркшопът беше потвърден успешно"
|
|
|
@ -1,71 +0,0 @@
|
||||||
en:
|
|
||||||
home_title: "%{conference} - call for speakers"
|
|
||||||
what_we_ask: 'Please send us applications for talks and workshops in the following categories until September 30, 2014:'
|
|
||||||
license_notice: 'Keep in mind that your workshop/presentation will later be published under the CC-BY-ND (Creative Commons – Attribution – No derivatives) license.'
|
|
||||||
submit_event: Submit %{event_type}
|
|
||||||
resend_instructions_header: Re-send the instructions for confirming an account
|
|
||||||
resend_instructions_btn: Re-send instructions
|
|
||||||
enter: Login
|
|
||||||
login: Login
|
|
||||||
registration: Registration
|
|
||||||
lostpass: Lost password?
|
|
||||||
did_not_get_confirmation: Did not get confirmation instructions?
|
|
||||||
did_not_get_unlock: Did not get unlocking instructions?
|
|
||||||
change_pass: Change password
|
|
||||||
send_lostpass_instructions: Send instructions to reset lost password
|
|
||||||
|
|
||||||
login_data: Login data
|
|
||||||
login_with: "Login with %{with}"
|
|
||||||
|
|
||||||
speaker_profile: Speaker's profile
|
|
||||||
please_fill_in_your_speaker_profile: Please fill in your speaker profile.
|
|
||||||
expected_validation: "Expected confirmation of: %{email}"
|
|
||||||
pass_update_hint1: Do not fill, if you do not want to change your password
|
|
||||||
pass_update_hint2: Fill this if you want to change your password or e-mail.
|
|
||||||
update: Update
|
|
||||||
|
|
||||||
resend_unlock_instructions_title: Re-send unlocking instructions
|
|
||||||
|
|
||||||
edit_speaker_profile: Edit profile
|
|
||||||
|
|
||||||
edit_workshop: Edit workshop
|
|
||||||
|
|
||||||
edit_title: "track: „%{track}“, duration: %{len} min."
|
|
||||||
abstract: Abstract
|
|
||||||
description: Description
|
|
||||||
edit: Edit
|
|
||||||
|
|
||||||
new_workshop_title: Submit new workshop
|
|
||||||
|
|
||||||
my_workshops: My submitted workshops
|
|
||||||
no_workshops_submitted: You have no submissions for workshops
|
|
||||||
|
|
||||||
edit_talk: Edit talk
|
|
||||||
|
|
||||||
submit_talk_header: Submit new talk
|
|
||||||
|
|
||||||
my_talks: My submitted talks
|
|
||||||
no_talks_submitted: You have no submissions for talks
|
|
||||||
|
|
||||||
hello: "Hello, %{name}"
|
|
||||||
account_locked: Your account was locked because of too many failed login attempts.
|
|
||||||
click_to_unlock: 'Click on the link below to unlock it:'
|
|
||||||
|
|
||||||
welcome: "Welcome, %{name}"
|
|
||||||
confirm_by_clicking: 'You can confirm your account by clicking on the link below:'
|
|
||||||
|
|
||||||
someone_requested_passreset: Someone has requested a link to reset the password of your account. Your password can be changed through the link below.
|
|
||||||
do_not_want_pass_reset1: If you don't want to change your password, please delete this message.
|
|
||||||
do_not_want_pass_reset2: Your password will not be changed unless you click on the link above and enter a new password.
|
|
||||||
|
|
||||||
home: Home
|
|
||||||
talks: Lectures
|
|
||||||
workshops: Workshops
|
|
||||||
logout: Logout
|
|
||||||
|
|
||||||
of_motto: share the freedom
|
|
||||||
meta_data: "Language: %{language}, track: \"%{track}\", length: %{length} min."
|
|
||||||
suggestion_and_speaker_count: "%{suggestions} suggestions by %{speakers} speakers"
|
|
||||||
|
|
||||||
lecture_was_successfully_confirmed: "The lecture was successfully confirmed"
|
|
||||||
workshop_was_successfully_confirmed: "The workshop was successfully confirmed"
|
|
|
@ -1,10 +0,0 @@
|
||||||
OpenFest::Engine.routes.draw do
|
|
||||||
root to: 'events#index'
|
|
||||||
|
|
||||||
scope '(/:locale)' do
|
|
||||||
devise_for :users, module: 'open_fest/users'
|
|
||||||
|
|
||||||
resource :personal_profile, path: 'profile'
|
|
||||||
resources :events
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,4 +0,0 @@
|
||||||
require "open_fest/engine"
|
|
||||||
|
|
||||||
module OpenFest
|
|
||||||
end
|
|
|
@ -1,5 +0,0 @@
|
||||||
module OpenFest
|
|
||||||
class Engine < ::Rails::Engine
|
|
||||||
isolate_namespace OpenFest
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,3 +0,0 @@
|
||||||
module OpenFest
|
|
||||||
VERSION = "0.0.1"
|
|
||||||
end
|
|
|
@ -1,4 +0,0 @@
|
||||||
# desc "Explaining what the task does"
|
|
||||||
# task :open_fest do
|
|
||||||
# # Task goes here
|
|
||||||
# end
|
|
|
@ -1,23 +0,0 @@
|
||||||
$:.push File.expand_path("../lib", __FILE__)
|
|
||||||
|
|
||||||
# Maintain your gem's version:
|
|
||||||
require "open_fest/version"
|
|
||||||
|
|
||||||
# Describe your gem and declare its dependencies:
|
|
||||||
Gem::Specification.new do |s|
|
|
||||||
s.name = "open_fest"
|
|
||||||
s.version = OpenFest::VERSION
|
|
||||||
s.authors = ["Petko Bordjukov"]
|
|
||||||
s.email = ["bordjukov@gmail.com"]
|
|
||||||
s.summary = "OpenFest CFP User-facing part"
|
|
||||||
s.license = "MIT"
|
|
||||||
|
|
||||||
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
|
|
||||||
s.test_files = Dir["test/**/*"]
|
|
||||||
|
|
||||||
s.add_dependency "rails", "~> 4.2.3"
|
|
||||||
s.add_dependency "devise", ">= 0"
|
|
||||||
s.add_dependency "font-awesome-sass", ">= 0"
|
|
||||||
|
|
||||||
s.add_development_dependency "sqlite3"
|
|
||||||
end
|
|
|
@ -1,15 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
module OpenFest
|
|
||||||
class WelcomeControllerTest < ActionController::TestCase
|
|
||||||
setup do
|
|
||||||
@routes = Engine.routes
|
|
||||||
end
|
|
||||||
|
|
||||||
test "should get index" do
|
|
||||||
get :index
|
|
||||||
assert_response :success
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,28 +0,0 @@
|
||||||
== README
|
|
||||||
|
|
||||||
This README would normally document whatever steps are necessary to get the
|
|
||||||
application up and running.
|
|
||||||
|
|
||||||
Things you may want to cover:
|
|
||||||
|
|
||||||
* Ruby version
|
|
||||||
|
|
||||||
* System dependencies
|
|
||||||
|
|
||||||
* Configuration
|
|
||||||
|
|
||||||
* Database creation
|
|
||||||
|
|
||||||
* Database initialization
|
|
||||||
|
|
||||||
* How to run the test suite
|
|
||||||
|
|
||||||
* Services (job queues, cache servers, search engines, etc.)
|
|
||||||
|
|
||||||
* Deployment instructions
|
|
||||||
|
|
||||||
* ...
|
|
||||||
|
|
||||||
|
|
||||||
Please feel free to use a different markup language if you do not plan to run
|
|
||||||
<tt>rake doc:app</tt>.
|
|
|
@ -1,6 +0,0 @@
|
||||||
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
||||||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
||||||
|
|
||||||
require File.expand_path('../config/application', __FILE__)
|
|
||||||
|
|
||||||
Rails.application.load_tasks
|
|
|
@ -1,13 +0,0 @@
|
||||||
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
||||||
// listed below.
|
|
||||||
//
|
|
||||||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
||||||
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
||||||
//
|
|
||||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
||||||
// compiled file.
|
|
||||||
//
|
|
||||||
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
||||||
// about supported directives.
|
|
||||||
//
|
|
||||||
//= require_tree .
|
|
|
@ -1,15 +0,0 @@
|
||||||
/*
|
|
||||||
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
||||||
* listed below.
|
|
||||||
*
|
|
||||||
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
||||||
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
||||||
*
|
|
||||||
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
||||||
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
||||||
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
||||||
* file per style scope.
|
|
||||||
*
|
|
||||||
*= require_tree .
|
|
||||||
*= require_self
|
|
||||||
*/
|
|
|
@ -1,5 +0,0 @@
|
||||||
class ApplicationController < ActionController::Base
|
|
||||||
# Prevent CSRF attacks by raising an exception.
|
|
||||||
# For APIs, you may want to use :null_session instead.
|
|
||||||
protect_from_forgery with: :exception
|
|
||||||
end
|
|
|
@ -1,2 +0,0 @@
|
||||||
module ApplicationHelper
|
|
||||||
end
|
|
|
@ -1,14 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Dummy</title>
|
|
||||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
|
||||||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<%= yield %>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
|
||||||
load Gem.bin_path('bundler', 'bundle')
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
|
||||||
require_relative '../config/boot'
|
|
||||||
require 'rails/commands'
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
require_relative '../config/boot'
|
|
||||||
require 'rake'
|
|
||||||
Rake.application.run
|
|
|
@ -1,29 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
require 'pathname'
|
|
||||||
|
|
||||||
# path to your application root.
|
|
||||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
|
||||||
|
|
||||||
Dir.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 || bundle install"
|
|
||||||
|
|
||||||
# puts "\n== Copying sample files =="
|
|
||||||
# unless File.exist?("config/database.yml")
|
|
||||||
# system "cp config/database.yml.sample config/database.yml"
|
|
||||||
# end
|
|
||||||
|
|
||||||
puts "\n== Preparing database =="
|
|
||||||
system "bin/rake db:setup"
|
|
||||||
|
|
||||||
puts "\n== Removing old logs and tempfiles =="
|
|
||||||
system "rm -f log/*"
|
|
||||||
system "rm -rf tmp/cache"
|
|
||||||
|
|
||||||
puts "\n== Restarting application server =="
|
|
||||||
system "touch tmp/restart.txt"
|
|
||||||
end
|
|
|
@ -1,4 +0,0 @@
|
||||||
# This file is used by Rack-based servers to start the application.
|
|
||||||
|
|
||||||
require ::File.expand_path('../config/environment', __FILE__)
|
|
||||||
run Rails.application
|
|
|
@ -1,26 +0,0 @@
|
||||||
require File.expand_path('../boot', __FILE__)
|
|
||||||
|
|
||||||
require 'rails/all'
|
|
||||||
|
|
||||||
Bundler.require(*Rails.groups)
|
|
||||||
require "open_fest"
|
|
||||||
|
|
||||||
module Dummy
|
|
||||||
class Application < Rails::Application
|
|
||||||
# Settings in config/environments/* take precedence over those specified here.
|
|
||||||
# Application configuration should go into files in config/initializers
|
|
||||||
# -- all .rb files in that directory are automatically loaded.
|
|
||||||
|
|
||||||
# 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 = 'Central Time (US & Canada)'
|
|
||||||
|
|
||||||
# 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.default_locale = :de
|
|
||||||
|
|
||||||
# Do not swallow errors in after_commit/after_rollback callbacks.
|
|
||||||
config.active_record.raise_in_transactional_callbacks = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Set up gems listed in the Gemfile.
|
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
|
||||||
|
|
||||||
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
|
||||||
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
|
|
@ -1,25 +0,0 @@
|
||||||
# SQLite version 3.x
|
|
||||||
# gem install sqlite3
|
|
||||||
#
|
|
||||||
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
||||||
# gem 'sqlite3'
|
|
||||||
#
|
|
||||||
default: &default
|
|
||||||
adapter: sqlite3
|
|
||||||
pool: 5
|
|
||||||
timeout: 5000
|
|
||||||
|
|
||||||
development:
|
|
||||||
<<: *default
|
|
||||||
database: db/development.sqlite3
|
|
||||||
|
|
||||||
# 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: db/test.sqlite3
|
|
||||||
|
|
||||||
production:
|
|
||||||
<<: *default
|
|
||||||
database: db/production.sqlite3
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Load the Rails application.
|
|
||||||
require File.expand_path('../application', __FILE__)
|
|
||||||
|
|
||||||
# Initialize the Rails application.
|
|
||||||
Rails.application.initialize!
|
|
|
@ -1,41 +0,0 @@
|
||||||
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 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.cache_classes = false
|
|
||||||
|
|
||||||
# Do not eager load code on boot.
|
|
||||||
config.eager_load = false
|
|
||||||
|
|
||||||
# Show full error reports and disable caching.
|
|
||||||
config.consider_all_requests_local = true
|
|
||||||
config.action_controller.perform_caching = false
|
|
||||||
|
|
||||||
# Don't care if the mailer can't send.
|
|
||||||
config.action_mailer.raise_delivery_errors = false
|
|
||||||
|
|
||||||
# Print deprecation notices to the Rails logger.
|
|
||||||
config.active_support.deprecation = :log
|
|
||||||
|
|
||||||
# Raise an error on page load if there are pending migrations.
|
|
||||||
config.active_record.migration_error = :page_load
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
|
||||||
# yet still be able to expire them through the digest params.
|
|
||||||
config.assets.digest = true
|
|
||||||
|
|
||||||
# Adds additional error checking when serving assets at runtime.
|
|
||||||
# Checks for improperly declared sprockets dependencies.
|
|
||||||
# Raises helpful error messages.
|
|
||||||
config.assets.raise_runtime_errors = true
|
|
||||||
|
|
||||||
# Raises error for missing translations
|
|
||||||
# config.action_view.raise_on_missing_translations = true
|
|
||||||
end
|
|
|
@ -1,79 +0,0 @@
|
||||||
Rails.application.configure do
|
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
|
||||||
|
|
||||||
# Code is not reloaded between requests.
|
|
||||||
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
|
|
||||||
# and those relying on copy on write to perform better.
|
|
||||||
# Rake tasks automatically ignore this option for performance.
|
|
||||||
config.eager_load = true
|
|
||||||
|
|
||||||
# Full error reports are disabled and caching is turned on.
|
|
||||||
config.consider_all_requests_local = false
|
|
||||||
config.action_controller.perform_caching = true
|
|
||||||
|
|
||||||
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
|
||||||
# Add `rack-cache` to your Gemfile before enabling this.
|
|
||||||
# For large-scale production use, consider using a caching reverse proxy like
|
|
||||||
# NGINX, varnish or squid.
|
|
||||||
# config.action_dispatch.rack_cache = true
|
|
||||||
|
|
||||||
# Disable serving static files from the `/public` folder by default since
|
|
||||||
# Apache or NGINX already handles this.
|
|
||||||
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
|
||||||
|
|
||||||
# Compress JavaScripts and CSS.
|
|
||||||
config.assets.js_compressor = :uglifier
|
|
||||||
# config.assets.css_compressor = :sass
|
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
|
||||||
config.assets.compile = false
|
|
||||||
|
|
||||||
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
|
||||||
# yet still be able to expire them through the digest params.
|
|
||||||
config.assets.digest = true
|
|
||||||
|
|
||||||
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
|
||||||
# config.force_ssl = true
|
|
||||||
|
|
||||||
# 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 = [ :subdomain, :uuid ]
|
|
||||||
|
|
||||||
# Use a different logger for distributed setups.
|
|
||||||
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
|
||||||
|
|
||||||
# Use a different cache store in production.
|
|
||||||
# config.cache_store = :mem_cache_store
|
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
|
||||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
|
||||||
|
|
||||||
# Ignore bad email addresses and do not raise email delivery errors.
|
|
||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
|
||||||
# config.action_mailer.raise_delivery_errors = false
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Do not dump schema after migrations.
|
|
||||||
config.active_record.dump_schema_after_migration = false
|
|
||||||
end
|
|
|
@ -1,42 +0,0 @@
|
||||||
Rails.application.configure do
|
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# 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 static file server for tests with Cache-Control for performance.
|
|
||||||
config.serve_static_files = true
|
|
||||||
config.static_cache_control = 'public, max-age=3600'
|
|
||||||
|
|
||||||
# Show full error reports and disable caching.
|
|
||||||
config.consider_all_requests_local = true
|
|
||||||
config.action_controller.perform_caching = false
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Tell Action Mailer not to deliver emails to the real world.
|
|
||||||
# The :test delivery method accumulates sent emails in the
|
|
||||||
# ActionMailer::Base.deliveries array.
|
|
||||||
config.action_mailer.delivery_method = :test
|
|
||||||
|
|
||||||
# Randomize the order test cases are executed.
|
|
||||||
config.active_support.test_order = :random
|
|
||||||
|
|
||||||
# Print deprecation notices to the stderr.
|
|
||||||
config.active_support.deprecation = :stderr
|
|
||||||
|
|
||||||
# Raises error for missing translations
|
|
||||||
# config.action_view.raise_on_missing_translations = true
|
|
||||||
end
|
|
|
@ -1,11 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Version of your assets, change this if you want to expire all your assets.
|
|
||||||
Rails.application.config.assets.version = '1.0'
|
|
||||||
|
|
||||||
# Add additional assets to the asset load path
|
|
||||||
# Rails.application.config.assets.paths << Emoji.images_path
|
|
||||||
|
|
||||||
# Precompile additional assets.
|
|
||||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
|
||||||
# Rails.application.config.assets.precompile += %w( search.js )
|
|
|
@ -1,7 +0,0 @@
|
||||||
# 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| 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.
|
|
||||||
# Rails.backtrace_cleaner.remove_silencers!
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
Rails.application.config.action_dispatch.cookies_serializer = :json
|
|
|
@ -1,4 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
|
||||||
Rails.application.config.filter_parameters += [:password]
|
|
|
@ -1,16 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Add new inflection rules using the following format. Inflections
|
|
||||||
# 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.uncountable %w( fish sheep )
|
|
||||||
# end
|
|
||||||
|
|
||||||
# These inflection rules are supported but not enabled by default:
|
|
||||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
||||||
# inflect.acronym 'RESTful'
|
|
||||||
# end
|
|
|
@ -1,4 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Add new mime types for use in respond_to blocks:
|
|
||||||
# Mime::Type.register "text/richtext", :rtf
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
Rails.application.config.session_store :cookie_store, key: '_dummy_session'
|
|
|
@ -1,14 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# This file contains settings for ActionController::ParamsWrapper which
|
|
||||||
# is enabled by default.
|
|
||||||
|
|
||||||
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
|
||||||
ActiveSupport.on_load(:action_controller) do
|
|
||||||
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
|
||||||
end
|
|
||||||
|
|
||||||
# To enable root element in JSON for ActiveRecord objects.
|
|
||||||
# ActiveSupport.on_load(:active_record) do
|
|
||||||
# self.include_root_in_json = true
|
|
||||||
# end
|
|
|
@ -1,23 +0,0 @@
|
||||||
# Files in the config/locales directory are used for internationalization
|
|
||||||
# and are automatically loaded by Rails. If you want to use locales other
|
|
||||||
# than English, add the necessary files in this directory.
|
|
||||||
#
|
|
||||||
# To use the locales, use `I18n.t`:
|
|
||||||
#
|
|
||||||
# I18n.t 'hello'
|
|
||||||
#
|
|
||||||
# In views, this is aliased to just `t`:
|
|
||||||
#
|
|
||||||
# <%= t('hello') %>
|
|
||||||
#
|
|
||||||
# To use a different locale, set it with `I18n.locale`:
|
|
||||||
#
|
|
||||||
# I18n.locale = :es
|
|
||||||
#
|
|
||||||
# This would use the information in config/locales/es.yml.
|
|
||||||
#
|
|
||||||
# To learn more, please read the Rails Internationalization guide
|
|
||||||
# available at http://guides.rubyonrails.org/i18n.html.
|
|
||||||
|
|
||||||
en:
|
|
||||||
hello: "Hello world"
|
|
|
@ -1,4 +0,0 @@
|
||||||
Rails.application.routes.draw do
|
|
||||||
|
|
||||||
mount OpenFest::Engine => "/open_fest"
|
|
||||||
end
|
|
|
@ -1,22 +0,0 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Your secret key is used for verifying the integrity of signed cookies.
|
|
||||||
# If you change this key, all old signed cookies will become invalid!
|
|
||||||
|
|
||||||
# Make sure the secret is at least 30 characters and all random,
|
|
||||||
# no regular words or you'll be exposed to dictionary attacks.
|
|
||||||
# You can use `rake secret` to generate a secure secret key.
|
|
||||||
|
|
||||||
# Make sure the secrets in this file are kept private
|
|
||||||
# if you're sharing your code publicly.
|
|
||||||
|
|
||||||
development:
|
|
||||||
secret_key_base: 6141476e69d5ff0cc454b9755d96964cd1bd47e33d69f7a02e1cb081938e39f0b5621db41c0a266b4024fdffed06df5afd000ad907df3ae26f47a1aacbea065e
|
|
||||||
|
|
||||||
test:
|
|
||||||
secret_key_base: dd128f1733c4a426ba24ccf0ce8f77876a81b64e7169b64714d8363dff5e5a8c7f51391823980fe98aed3487d6aad8055597c002e0183b7257f0a21a83fe947b
|
|
||||||
|
|
||||||
# Do not keep production secrets in the repository,
|
|
||||||
# instead read values from the environment.
|
|
||||||
production:
|
|
||||||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
|
|
@ -1,67 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>The page you were looking for doesn't exist (404)</title>
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-color: #EFEFEF;
|
|
||||||
color: #2E2F30;
|
|
||||||
text-align: center;
|
|
||||||
font-family: arial, sans-serif;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog {
|
|
||||||
width: 95%;
|
|
||||||
max-width: 33em;
|
|
||||||
margin: 4em auto 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog > div {
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
border-right-color: #999;
|
|
||||||
border-left-color: #999;
|
|
||||||
border-bottom-color: #BBB;
|
|
||||||
border-top: #B00100 solid 4px;
|
|
||||||
border-top-left-radius: 9px;
|
|
||||||
border-top-right-radius: 9px;
|
|
||||||
background-color: white;
|
|
||||||
padding: 7px 12% 0;
|
|
||||||
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 100%;
|
|
||||||
color: #730E15;
|
|
||||||
line-height: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog > p {
|
|
||||||
margin: 0 0 1em;
|
|
||||||
padding: 1em;
|
|
||||||
background-color: #F7F7F7;
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
border-right-color: #999;
|
|
||||||
border-left-color: #999;
|
|
||||||
border-bottom-color: #999;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
border-top-color: #DADADA;
|
|
||||||
color: #666;
|
|
||||||
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- This file lives in public/404.html -->
|
|
||||||
<div class="dialog">
|
|
||||||
<div>
|
|
||||||
<h1>The page you were looking for doesn't exist.</h1>
|
|
||||||
<p>You may have mistyped the address or the page may have moved.</p>
|
|
||||||
</div>
|
|
||||||
<p>If you are the application owner check the logs for more information.</p>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,67 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>The change you wanted was rejected (422)</title>
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-color: #EFEFEF;
|
|
||||||
color: #2E2F30;
|
|
||||||
text-align: center;
|
|
||||||
font-family: arial, sans-serif;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog {
|
|
||||||
width: 95%;
|
|
||||||
max-width: 33em;
|
|
||||||
margin: 4em auto 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog > div {
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
border-right-color: #999;
|
|
||||||
border-left-color: #999;
|
|
||||||
border-bottom-color: #BBB;
|
|
||||||
border-top: #B00100 solid 4px;
|
|
||||||
border-top-left-radius: 9px;
|
|
||||||
border-top-right-radius: 9px;
|
|
||||||
background-color: white;
|
|
||||||
padding: 7px 12% 0;
|
|
||||||
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 100%;
|
|
||||||
color: #730E15;
|
|
||||||
line-height: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog > p {
|
|
||||||
margin: 0 0 1em;
|
|
||||||
padding: 1em;
|
|
||||||
background-color: #F7F7F7;
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
border-right-color: #999;
|
|
||||||
border-left-color: #999;
|
|
||||||
border-bottom-color: #999;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
border-top-color: #DADADA;
|
|
||||||
color: #666;
|
|
||||||
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- This file lives in public/422.html -->
|
|
||||||
<div class="dialog">
|
|
||||||
<div>
|
|
||||||
<h1>The change you wanted was rejected.</h1>
|
|
||||||
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
||||||
</div>
|
|
||||||
<p>If you are the application owner check the logs for more information.</p>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,66 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>We're sorry, but something went wrong (500)</title>
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-color: #EFEFEF;
|
|
||||||
color: #2E2F30;
|
|
||||||
text-align: center;
|
|
||||||
font-family: arial, sans-serif;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog {
|
|
||||||
width: 95%;
|
|
||||||
max-width: 33em;
|
|
||||||
margin: 4em auto 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog > div {
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
border-right-color: #999;
|
|
||||||
border-left-color: #999;
|
|
||||||
border-bottom-color: #BBB;
|
|
||||||
border-top: #B00100 solid 4px;
|
|
||||||
border-top-left-radius: 9px;
|
|
||||||
border-top-right-radius: 9px;
|
|
||||||
background-color: white;
|
|
||||||
padding: 7px 12% 0;
|
|
||||||
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 100%;
|
|
||||||
color: #730E15;
|
|
||||||
line-height: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dialog > p {
|
|
||||||
margin: 0 0 1em;
|
|
||||||
padding: 1em;
|
|
||||||
background-color: #F7F7F7;
|
|
||||||
border: 1px solid #CCC;
|
|
||||||
border-right-color: #999;
|
|
||||||
border-left-color: #999;
|
|
||||||
border-bottom-color: #999;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
border-top-color: #DADADA;
|
|
||||||
color: #666;
|
|
||||||
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- This file lives in public/500.html -->
|
|
||||||
<div class="dialog">
|
|
||||||
<div>
|
|
||||||
<h1>We're sorry, but something went wrong.</h1>
|
|
||||||
</div>
|
|
||||||
<p>If you are the application owner check the logs for more information.</p>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,10 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class NavigationTest < ActionDispatch::IntegrationTest
|
|
||||||
fixtures :all
|
|
||||||
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class OpenFestTest < ActiveSupport::TestCase
|
|
||||||
test "truth" do
|
|
||||||
assert_kind_of Module, OpenFest
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,20 +0,0 @@
|
||||||
# Configure Rails Environment
|
|
||||||
ENV["RAILS_ENV"] = "test"
|
|
||||||
|
|
||||||
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
|
||||||
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
|
||||||
ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
|
|
||||||
require "rails/test_help"
|
|
||||||
|
|
||||||
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
|
||||||
# to be shown.
|
|
||||||
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
|
||||||
|
|
||||||
# Load support files
|
|
||||||
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
||||||
|
|
||||||
# Load fixtures from the engine
|
|
||||||
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
|
||||||
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
|
||||||
ActiveSupport::TestCase.fixtures :all
|
|
||||||
end
|
|
Loading…
Reference in New Issue