From 8e13e19461e7fae0037a17378a3e4732ed131e21 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 21 Sep 2018 14:39:07 +0200 Subject: Add license header to source files. --- Capfile | 16 ++++++++++++++++ Gemfile | 16 ++++++++++++++++ config.ru | 16 ++++++++++++++++ config/deploy.rb | 16 ++++++++++++++++ config/deploy/production.rb | 16 ++++++++++++++++ config/deploy/staging.rb | 16 ++++++++++++++++ config/puma.rb | 16 ++++++++++++++++ lib/band.rb | 16 ++++++++++++++++ lib/contact.rb | 16 ++++++++++++++++ lib/member.rb | 16 ++++++++++++++++ lib/pdf_form.rb | 16 ++++++++++++++++ lib/registration.rb | 16 ++++++++++++++++ lib/song.rb | 16 ++++++++++++++++ public/mobile-styles.css | 16 ++++++++++++++++ public/regform.js | 16 ++++++++++++++++ public/styles.css | 16 ++++++++++++++++ registration.rb | 16 ++++++++++++++++ spec/contact_spec.rb | 16 ++++++++++++++++ spec/email_spec.rb | 16 ++++++++++++++++ spec/features/register_band_spec.rb | 16 ++++++++++++++++ spec/pdf_form_spec.rb | 16 ++++++++++++++++ spec/registration_spec.rb | 16 ++++++++++++++++ spec/spec_helper.rb | 16 ++++++++++++++++ spec/support/band_factory.rb | 16 ++++++++++++++++ spec/support/contact_factory.rb | 16 ++++++++++++++++ spec/support/submit_form_helper.rb | 16 ++++++++++++++++ test_pdf.rb | 16 ++++++++++++++++ views/index.erb | 17 +++++++++++++++++ views/layout.erb | 17 +++++++++++++++++ views/member.erb | 17 +++++++++++++++++ views/registration_closed.erb | 17 +++++++++++++++++ views/registration_email.erb | 17 +++++++++++++++++ views/song.erb | 17 +++++++++++++++++ views/submitted.erb | 17 +++++++++++++++++ 34 files changed, 551 insertions(+) diff --git a/Capfile b/Capfile index f694590..4a04f22 100644 --- a/Capfile +++ b/Capfile @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + # Load DSL and set up stages require 'capistrano/setup' diff --git a/Gemfile b/Gemfile index e1f873c..470f383 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + source "https://rubygems.org" gem "sinatra" diff --git a/config.ru b/config.ru index a772481..2e2b0fa 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require './registration.rb' base_path = ENV['NUREG_BASE'] || '/' diff --git a/config/deploy.rb b/config/deploy.rb index 8240df3..702960b 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + # config valid only for current version of Capistrano lock '3.11.0' diff --git a/config/deploy/production.rb b/config/deploy/production.rb index d9620a1..9e5b250 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -1 +1,17 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + server 'volse.anduin.net', user: 'norskurskog', roles: %w{app db web} diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index 20732be..c8f4101 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + server 'volse.local', user: 'norskurskog', roles: %w{app db web} # Ask for which branch to deploy, default is current branch. diff --git a/config/puma.rb b/config/puma.rb index 04856d0..efe7b9b 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,5 +1,21 @@ #!/usr/bin/env puma +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + if @config.environment_str == "production" root = File.expand_path('../', File.dirname(__FILE__)) socket = "unix://#{root}/tmp/sockets/puma.sock" diff --git a/lib/band.rb b/lib/band.rb index dc69642..4e1ca81 100644 --- a/lib/band.rb +++ b/lib/band.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require_relative 'contact' require_relative 'member' require_relative 'song' diff --git a/lib/contact.rb b/lib/contact.rb index 4df29e8..5cf42e6 100644 --- a/lib/contact.rb +++ b/lib/contact.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + class Contact attr_reader :name, :street, :postcode, :city, :phone, :email diff --git a/lib/member.rb b/lib/member.rb index 598b5f4..695ea75 100644 --- a/lib/member.rb +++ b/lib/member.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + class Member attr_reader :name, :instrument, :age diff --git a/lib/pdf_form.rb b/lib/pdf_form.rb index b8b156c..6add3ef 100644 --- a/lib/pdf_form.rb +++ b/lib/pdf_form.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require 'prawn' require 'prawn/measurement_extensions' diff --git a/lib/registration.rb b/lib/registration.rb index 7d1e704..9d5e57e 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require_relative 'band' require_relative 'pdf_form' require 'date' diff --git a/lib/song.rb b/lib/song.rb index 482834e..a3968f4 100644 --- a/lib/song.rb +++ b/lib/song.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + class Song attr_reader :title, :time, :isrc, :composers, :performers, :notes diff --git a/public/mobile-styles.css b/public/mobile-styles.css index 11cb3da..f22ae71 100644 --- a/public/mobile-styles.css +++ b/public/mobile-styles.css @@ -1,3 +1,19 @@ +/* Band registration form for Norsk Urskog Metal Sampler + * Copyright (C) 2015-2018 Harald Eilersen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ body { color: #afafaf; background-color: #131a1a; diff --git a/public/regform.js b/public/regform.js index 332557d..ac3934b 100644 --- a/public/regform.js +++ b/public/regform.js @@ -1,3 +1,19 @@ +/* Band registration form for Norsk Urskog Metal Sampler + * Copyright (C) 2015-2018 Harald Eilersen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ document.addEventListener("DOMContentLoaded", function() { for (let details of document.getElementsByClassName('song-details')) { details.classList.add('collapsed'); diff --git a/public/styles.css b/public/styles.css index 3c41e64..6ebcef5 100644 --- a/public/styles.css +++ b/public/styles.css @@ -1,3 +1,19 @@ +/* Band registration form for Norsk Urskog Metal Sampler + * Copyright (C) 2015-2018 Harald Eilersen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ body { color: #afafaf; background-color: #131a1a; diff --git a/registration.rb b/registration.rb index 1a9efe1..ea7fdf3 100644 --- a/registration.rb +++ b/registration.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require 'mustermann' require 'sinatra/base' require 'sinatra/url_for' diff --git a/spec/contact_spec.rb b/spec/contact_spec.rb index 980626b..48844fc 100644 --- a/spec/contact_spec.rb +++ b/spec/contact_spec.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require 'spec_helper' describe Contact do diff --git a/spec/email_spec.rb b/spec/email_spec.rb index e68d77f..7860307 100644 --- a/spec/email_spec.rb +++ b/spec/email_spec.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require 'spec_helper' require 'net/smtp' diff --git a/spec/features/register_band_spec.rb b/spec/features/register_band_spec.rb index 5d812bc..fa5b675 100644 --- a/spec/features/register_band_spec.rb +++ b/spec/features/register_band_spec.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require 'spec_helper' feature "Submit registration form" do diff --git a/spec/pdf_form_spec.rb b/spec/pdf_form_spec.rb index 334678a..69a1159 100644 --- a/spec/pdf_form_spec.rb +++ b/spec/pdf_form_spec.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require "spec_helper" describe "create_pdf_file_name" do diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb index 3ccfbe7..7208d5a 100644 --- a/spec/registration_spec.rb +++ b/spec/registration_spec.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require "prawn" require 'rack/session/cookie' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index aaf466a..c7ff485 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + ENV['RACK_ENV'] = 'test' require_relative '../registration' diff --git a/spec/support/band_factory.rb b/spec/support/band_factory.rb index b092653..9b1a693 100644 --- a/spec/support/band_factory.rb +++ b/spec/support/band_factory.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + module BandFactory def create_band_params(options = {}) opts = { diff --git a/spec/support/contact_factory.rb b/spec/support/contact_factory.rb index f05e9a1..e04d84f 100644 --- a/spec/support/contact_factory.rb +++ b/spec/support/contact_factory.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + module ContactFactory def create_contact_params(params = {}) par = { diff --git a/spec/support/submit_form_helper.rb b/spec/support/submit_form_helper.rb index b9a64aa..e06a480 100644 --- a/spec/support/submit_form_helper.rb +++ b/spec/support/submit_form_helper.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + module SubmitFormHelper def fill_in_form_with(params) fill_in 'Bandnavn:', with: params['name'] diff --git a/test_pdf.rb b/test_pdf.rb index 8328ee6..580b8b2 100644 --- a/test_pdf.rb +++ b/test_pdf.rb @@ -1,3 +1,19 @@ +# Band registration form for Norsk Urskog Metal Sampler +# Copyright (C) 2015-2018 Harald Eilersen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require_relative 'lib/registration' require 'prawn' diff --git a/views/index.erb b/views/index.erb index 7d069a1..949bbb4 100644 --- a/views/index.erb +++ b/views/index.erb @@ -1,3 +1,20 @@ +<%# + # Band registration form for Norsk Urskog Metal Sampler + # Copyright (C) 2015-2018 Harald Eilersen + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU Affero General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU Affero General Public License for more details. + # + # You should have received a copy of the GNU Affero General Public License + # along with this program. If not, see . +%>

Norsk Urskog Underground Metal Sampler

<%=asciidoc :_form_heading, attributes: { "contact_email" => settings.contact_email } %> diff --git a/views/layout.erb b/views/layout.erb index 84d3437..f1e84c0 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -1,3 +1,20 @@ +<%# + # Band registration form for Norsk Urskog Metal Sampler + # Copyright (C) 2015-2018 Harald Eilersen + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU Affero General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU Affero General Public License for more details. + # + # You should have received a copy of the GNU Affero General Public License + # along with this program. If not, see . +%> diff --git a/views/member.erb b/views/member.erb index dcdfb85..93332aa 100644 --- a/views/member.erb +++ b/views/member.erb @@ -1,3 +1,20 @@ +<%# + # Band registration form for Norsk Urskog Metal Sampler + # Copyright (C) 2015-2018 Harald Eilersen + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU Affero General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU Affero General Public License for more details. + # + # You should have received a copy of the GNU Affero General Public License + # along with this program. If not, see . +%>
diff --git a/views/registration_closed.erb b/views/registration_closed.erb index 2005d2b..fc27b04 100644 --- a/views/registration_closed.erb +++ b/views/registration_closed.erb @@ -1,3 +1,20 @@ +<%# + # Band registration form for Norsk Urskog Metal Sampler + # Copyright (C) 2015-2018 Harald Eilersen + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU Affero General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU Affero General Public License for more details. + # + # You should have received a copy of the GNU Affero General Public License + # along with this program. If not, see . +%>

Registreringen er stengt

Registrering til Norsk Urskog 2016 er nå stengt. Vi takker alle som har meldt seg på, og håper vi see på konsertene eller i løpet av Inferno! Dersom du har lyst å bli med på neste utgave av Norsk Urskog Metal Sampler, så følg med når vi åpner registrering for neste utgave igjen.

diff --git a/views/registration_email.erb b/views/registration_email.erb index cfb965a..12e90e0 100644 --- a/views/registration_email.erb +++ b/views/registration_email.erb @@ -1,3 +1,20 @@ +<%# + # Band registration form for Norsk Urskog Metal Sampler + # Copyright (C) 2015-2018 Harald Eilersen + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU Affero General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU Affero General Public License for more details. + # + # You should have received a copy of the GNU Affero General Public License + # along with this program. If not, see . +%> Påmelding til Norsk Urskog 2019 for <%= @band.name %> Takk for din påmelding til Norsk Urskog Metal Sampler 2019. Vennligst sjekk diff --git a/views/song.erb b/views/song.erb index f2495d3..94fc9a8 100644 --- a/views/song.erb +++ b/views/song.erb @@ -1,3 +1,20 @@ +<%# + # Band registration form for Norsk Urskog Metal Sampler + # Copyright (C) 2015-2018 Harald Eilersen + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU Affero General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU Affero General Public License for more details. + # + # You should have received a copy of the GNU Affero General Public License + # along with this program. If not, see . +%>