From 45fea420bddcf9d370b681b766a622da6f11eb38 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 17 Jun 2018 20:08:13 +0200 Subject: Add license header to files. --- README.md | 17 +++++ Vagrantfile | 21 +++++- app/assets/stylesheets/_color_scheme.scss | 15 +++++ app/assets/stylesheets/application.css | 15 +++++ app/assets/stylesheets/gallery_links.scss | 19 +++++- app/assets/stylesheets/hmno_banners.scss | 15 +++++ app/assets/stylesheets/hmno_blogg.scss | 15 +++++ app/assets/stylesheets/hmno_header.scss | 16 ++++- app/assets/stylesheets/hmno_main.scss | 15 +++++ app/assets/stylesheets/hmno_page.scss | 16 ++++- app/assets/stylesheets/hmno_sidebars.scss | 15 +++++ .../refinery/pages_controller_decorator.rb | 15 +++++ .../models/refinery/blog_category_decorator.rb | 15 +++++ app/decorators/models/sidebar_post_decorator.rb | 15 +++++ app/helpers/application_helper.rb | 15 +++++ app/helpers/home_page_helper.rb | 15 +++++ app/helpers/sidebar_helper.rb | 15 +++++ app/models/sidebar_blog_category.rb | 15 +++++ app/models/sidebar_module.rb | 15 +++++ app/views/common/_left_sidebar.html.erb | 16 +++++ app/views/common/_right_sidebar.html.erb | 16 +++++ app/views/layouts/application.html.erb | 16 +++++ app/views/refinery/_header.html.erb | 16 +++++ .../refinery/banners/shared/_banner_image.html.erb | 18 ++++- .../blog/admin/categories/_category.html.erb | 16 +++++ .../refinery/blog/admin/categories/_form.html.erb | 16 +++++ app/views/refinery/blog/categories/show.html.erb | 16 +++++ app/views/refinery/blog/posts/show.html.erb | 16 +++++ app/views/refinery/blog/posts/tagged.html.erb | 16 +++++ .../_sidebar_blog_category.html.erb | 16 +++++ app/views/sidebar_modules/_sidebar_module.html.erb | 17 ++++- config/application.rb | 15 +++++ config/deploy.rb | 15 +++++ config/deploy/production.rb | 15 +++++ config/deploy/staging.rb | 15 +++++ config/deploy/templates/postgresql.yml.erb | 16 +++++ config/piwik.yml.erb | 15 +++++ config/routes.rb | 78 +++++----------------- lib/capistrano/tasks/configure_piwik.rake | 18 ++++- lib/capistrano/tasks/configure_puma.rake | 18 ++++- lib/capistrano/tasks/create_secret_token.rake | 18 ++++- lib/capistrano/tasks/refinery_setup.rake | 18 ++++- lib/tasks/dev_load_sample_data.rake | 15 +++++ lib/tasks/dev_setup.rake | 15 +++++ script/setup | 15 +++++ script/year-review.rb | 15 +++++ test/test_helper.rb | 15 +++++ test/unit/helper/sidebar_helper_test.rb | 16 ++++- 48 files changed, 749 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index aad2434..d603eac 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,23 @@ De fleste endringer krever ikke at du stopper og starter serveren på nytt. Ders Send hjerne feilrapporter, rettelser eller andre henvendelser angående koden til hmno-dev@volse.anduin.net. Dersom du ønsker å bli med på den videre utviklingen av koden kan du [melde deg på listen her](https://volse.anduin.net/mailman/listinfo/hmno-dev). +## LISENS + +Copyright (C) 2018 Harald Eilertsen + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License version 3 +as published by the Free Software Foundation. + +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 . + + [1]: https://www.refinerycms.com [2]: https://www.rubyonrails.org [Vagrant]: https://www.vagrantup.com/ diff --git a/Vagrantfile b/Vagrantfile index ce50c39..1d45650 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,6 +1,17 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : -# :mode=ruby: +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 . Vagrant.configure("2") do |config| config.vm.box = "bento/freebsd-10.4" @@ -9,3 +20,7 @@ Vagrant.configure("2") do |config| config.vm.provision :shell, :path => "vagrant/bootstrap.sh" config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: %w[.git/ db/*.sqlite3 public/system/ vendor/bundle/] end + +# -*- mode: ruby -*- +# vi: set ft=ruby : +# :mode=ruby: diff --git a/app/assets/stylesheets/_color_scheme.scss b/app/assets/stylesheets/_color_scheme.scss index c64d2bf..b69a2ea 100644 --- a/app/assets/stylesheets/_color_scheme.scss +++ b/app/assets/stylesheets/_color_scheme.scss @@ -1,3 +1,18 @@ +// This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +// Copyright (C) 2018 Harald Eilertsen +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License version 3 +// as published by the Free Software Foundation. +// +// 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 . + // Color Scheme: // http://colorschemedesigner.com/#1j11TiW8EWTs. // diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index fbd78ca..c56a310 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ /* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. diff --git a/app/assets/stylesheets/gallery_links.scss b/app/assets/stylesheets/gallery_links.scss index 302fd3e..3591543 100644 --- a/app/assets/stylesheets/gallery_links.scss +++ b/app/assets/stylesheets/gallery_links.scss @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ .gallery_link { display: inline-block; width: 225px; @@ -9,8 +24,8 @@ header { h1 { - font-size: 100%; - margin-bottom: 0; + font-size: 100%; + margin-bottom: 0; } margin-bottom: 2mm; diff --git a/app/assets/stylesheets/hmno_banners.scss b/app/assets/stylesheets/hmno_banners.scss index 231d306..f54a7fa 100644 --- a/app/assets/stylesheets/hmno_banners.scss +++ b/app/assets/stylesheets/hmno_banners.scss @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ @import "color_scheme"; #slider { diff --git a/app/assets/stylesheets/hmno_blogg.scss b/app/assets/stylesheets/hmno_blogg.scss index d9b8e66..fda0b77 100644 --- a/app/assets/stylesheets/hmno_blogg.scss +++ b/app/assets/stylesheets/hmno_blogg.scss @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ @import "color_scheme"; #blog_posts { diff --git a/app/assets/stylesheets/hmno_header.scss b/app/assets/stylesheets/hmno_header.scss index 8d822c0..4f722fd 100644 --- a/app/assets/stylesheets/hmno_header.scss +++ b/app/assets/stylesheets/hmno_header.scss @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ @import "color_scheme"; #header { @@ -77,4 +92,3 @@ } } } - diff --git a/app/assets/stylesheets/hmno_main.scss b/app/assets/stylesheets/hmno_main.scss index bd741f7..26a0a29 100644 --- a/app/assets/stylesheets/hmno_main.scss +++ b/app/assets/stylesheets/hmno_main.scss @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ @import "color_scheme"; body { diff --git a/app/assets/stylesheets/hmno_page.scss b/app/assets/stylesheets/hmno_page.scss index deda694..476da14 100644 --- a/app/assets/stylesheets/hmno_page.scss +++ b/app/assets/stylesheets/hmno_page.scss @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ @import "color_scheme"; #page_container { @@ -32,4 +47,3 @@ border-top: 1px solid $fg; } } - diff --git a/app/assets/stylesheets/hmno_sidebars.scss b/app/assets/stylesheets/hmno_sidebars.scss index 664ec5e..c196ac2 100644 --- a/app/assets/stylesheets/hmno_sidebars.scss +++ b/app/assets/stylesheets/hmno_sidebars.scss @@ -1,3 +1,18 @@ +/* This file is part of hmnoweb, a RefineryCMS based webapp for heavymetal.no + * Copyright (C) 2018 Harald Eilertsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License version 3 + * as published by the Free Software Foundation. + * + * 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 . + */ @import "color_scheme"; @mixin sidebar-headers { diff --git a/app/decorators/controllers/refinery/pages_controller_decorator.rb b/app/decorators/controllers/refinery/pages_controller_decorator.rb index 77a9434..6754fe4 100644 --- a/app/decorators/controllers/refinery/pages_controller_decorator.rb +++ b/app/decorators/controllers/refinery/pages_controller_decorator.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 . + ApplicationController.class_eval do include Refinery::Blog::ControllerHelper diff --git a/app/decorators/models/refinery/blog_category_decorator.rb b/app/decorators/models/refinery/blog_category_decorator.rb index 3c4cf08..b4d34a6 100644 --- a/app/decorators/models/refinery/blog_category_decorator.rb +++ b/app/decorators/models/refinery/blog_category_decorator.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 . + Refinery::Blog::Category.class_eval do attr_accessible :sidebar_position, :sidebar_items end diff --git a/app/decorators/models/sidebar_post_decorator.rb b/app/decorators/models/sidebar_post_decorator.rb index 93353bb..a9a28b8 100644 --- a/app/decorators/models/sidebar_post_decorator.rb +++ b/app/decorators/models/sidebar_post_decorator.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 'delegate' class SidebarPostDecorator < SimpleDelegator diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3cce866..8693b56 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 ApplicationHelper def make_choice_from(array) value = 0 diff --git a/app/helpers/home_page_helper.rb b/app/helpers/home_page_helper.rb index 8e165d0..aa9e2d9 100644 --- a/app/helpers/home_page_helper.rb +++ b/app/helpers/home_page_helper.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 HomePageHelper include Refinery::Blog::PostsHelper end diff --git a/app/helpers/sidebar_helper.rb b/app/helpers/sidebar_helper.rb index ad9c6de..dddadf2 100644 --- a/app/helpers/sidebar_helper.rb +++ b/app/helpers/sidebar_helper.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 SidebarHelper def render_sidebar_modules(mods, options = {}) pos = options.delete(:position) diff --git a/app/models/sidebar_blog_category.rb b/app/models/sidebar_blog_category.rb index fb867ac..c6f6ce1 100644 --- a/app/models/sidebar_blog_category.rb +++ b/app/models/sidebar_blog_category.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 SidebarBlogCategory < SidebarModule def initialize(category) @title = category.title diff --git a/app/models/sidebar_module.rb b/app/models/sidebar_module.rb index 1e9bde1..6967f4f 100644 --- a/app/models/sidebar_module.rb +++ b/app/models/sidebar_module.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 +# as published by the Free Software Foundation. +# +# 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 SidebarModule attr_reader :title, :body, :position diff --git a/app/views/common/_left_sidebar.html.erb b/app/views/common/_left_sidebar.html.erb index 9f5a40f..babcd70 100644 --- a/app/views/common/_left_sidebar.html.erb +++ b/app/views/common/_left_sidebar.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License version 3 + as published by the Free Software Foundation. + + 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/app/views/common/_right_sidebar.html.erb b/app/views/common/_right_sidebar.html.erb index 15dfb83..de1d417 100644 --- a/app/views/common/_right_sidebar.html.erb +++ b/app/views/common/_right_sidebar.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License version 3 + as published by the Free Software Foundation. + + 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 . +%>