diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-06-17 20:08:13 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-06-17 20:08:13 +0200 |
commit | 45fea420bddcf9d370b681b766a622da6f11eb38 (patch) | |
tree | cdc16b4532e97037d304ba3e67b31e0213a6492d | |
parent | 28a384eea2793d741fde1fe338c16ca2c197c2fa (diff) | |
download | hmnoweb-45fea420bddcf9d370b681b766a622da6f11eb38.tar.gz hmnoweb-45fea420bddcf9d370b681b766a622da6f11eb38.tar.bz2 hmnoweb-45fea420bddcf9d370b681b766a622da6f11eb38.zip |
Add license header to files.
48 files changed, 749 insertions, 77 deletions
@@ -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 <haraldei@anduin.net> + +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 <https://www.gnu.org/licenses/>. + + [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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. 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 <haraldei@anduin.net> +// +// 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 <https://www.gnu.org/licenses/>. + // 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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ /* * 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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ .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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ @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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ @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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ @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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ @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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ @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 <haraldei@anduin.net> + * + * 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 <http://www.gnu.org/licenses/>. + */ @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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + 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 <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <div id="left_sidebar"> <%= render_sidebar_modules @sidebar_modules, :position => 1 %> </div> 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 <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <div id="right_sidebar"> <% if page_has_side_body?(@page) %> <div class="sidebar_module"> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 547013d..620bc65 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <!DOCTYPE html> <%= render '/refinery/html_tag' %> <% site_bar = render('refinery/site_bar', :head => true) -%> diff --git a/app/views/refinery/_header.html.erb b/app/views/refinery/_header.html.erb index 7215e57..a1a146c 100644 --- a/app/views/refinery/_header.html.erb +++ b/app/views/refinery/_header.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <div id='logo'> <%= link_to image_tag("logo.png", :alt => "Heavymetal.no"), refinery.root_path %> </div> diff --git a/app/views/refinery/banners/shared/_banner_image.html.erb b/app/views/refinery/banners/shared/_banner_image.html.erb index c368c9a..ffaebae 100644 --- a/app/views/refinery/banners/shared/_banner_image.html.erb +++ b/app/views/refinery/banners/shared/_banner_image.html.erb @@ -1 +1,17 @@ -<%= link_to(image_fu(banner_image.image, '500x'), banner_image.url, :target => "_blank") %>
\ No newline at end of file +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> +<%= link_to(image_fu(banner_image.image, '500x'), banner_image.url, :target => "_blank") %> diff --git a/app/views/refinery/blog/admin/categories/_category.html.erb b/app/views/refinery/blog/admin/categories/_category.html.erb index 1c65c33..2c9e1e6 100644 --- a/app/views/refinery/blog/admin/categories/_category.html.erb +++ b/app/views/refinery/blog/admin/categories/_category.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(category) -%>"> <span class='title'> <%= category.title %> diff --git a/app/views/refinery/blog/admin/categories/_form.html.erb b/app/views/refinery/blog/admin/categories/_form.html.erb index 69ac0e7..b359a2c 100644 --- a/app/views/refinery/blog/admin/categories/_form.html.erb +++ b/app/views/refinery/blog/admin/categories/_form.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <%= form_for [refinery, :blog_admin, @category] do |f| -%> <%= render :partial => "/refinery/admin/error_messages", :locals => { diff --git a/app/views/refinery/blog/categories/show.html.erb b/app/views/refinery/blog/categories/show.html.erb index 6228c7a..f3832e7 100644 --- a/app/views/refinery/blog/categories/show.html.erb +++ b/app/views/refinery/blog/categories/show.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <% content_for :body_content_title, @category.title %> <% content_for :body do %> diff --git a/app/views/refinery/blog/posts/show.html.erb b/app/views/refinery/blog/posts/show.html.erb index 42229cf..5d64429 100644 --- a/app/views/refinery/blog/posts/show.html.erb +++ b/app/views/refinery/blog/posts/show.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <% content_for :body do %> <div id="show_blog_post"> <%= render 'post' %> diff --git a/app/views/refinery/blog/posts/tagged.html.erb b/app/views/refinery/blog/posts/tagged.html.erb index ed31107..2daaa60 100644 --- a/app/views/refinery/blog/posts/tagged.html.erb +++ b/app/views/refinery/blog/posts/tagged.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <% content_for :title, "#{t('.posts_tagged')} '#{@tag_name.titleize}'" %> <% content_for :body_content_title, "#{t('.posts_tagged')} “#{@tag_name.titleize}”".html_safe -%> diff --git a/app/views/sidebar_modules/_sidebar_blog_category.html.erb b/app/views/sidebar_modules/_sidebar_blog_category.html.erb index 006b963..3196c8c 100644 --- a/app/views/sidebar_modules/_sidebar_blog_category.html.erb +++ b/app/views/sidebar_modules/_sidebar_blog_category.html.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <% content_for "sidebar_module_#{sidebar_module.title}_body" do %> <% sidebar_module.body.each do |post| %> <%= content_tag :header, :class => :sidebar_blog_headline do %> diff --git a/app/views/sidebar_modules/_sidebar_module.html.erb b/app/views/sidebar_modules/_sidebar_module.html.erb index ecd5375..5bf01bc 100644 --- a/app/views/sidebar_modules/_sidebar_module.html.erb +++ b/app/views/sidebar_modules/_sidebar_module.html.erb @@ -1,5 +1,20 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <div id="sidebar_module_<%= sidebar_module.title.parameterize %>" class="sidebar_module"> <h1><%= sidebar_module.title %></h1> <div class="inner"><%= content_for "sidebar_module_#{sidebar_module.title}_body" %></div> </div> - diff --git a/config/application.rb b/config/application.rb index dbefb32..2d290fa 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + require File.expand_path('../boot', __FILE__) # Pick the frameworks you want: diff --git a/config/deploy.rb b/config/deploy.rb index 367ae18..a8c217c 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + lock '3.10.1' set :application, 'hmno' diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 81993f8..bd065a6 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -1,2 +1,17 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + server 'volse.anduin.net', :user => 'hmno', :roles => %w{web app db} set :branch, 'master' diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index 8c9e0be..e61863a 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + server 'volse.local', :user => 'hmno', :roles => %w{web app db} set :piwik_disabled, true diff --git a/config/deploy/templates/postgresql.yml.erb b/config/deploy/templates/postgresql.yml.erb index 96a1b57..25d53e5 100644 --- a/config/deploy/templates/postgresql.yml.erb +++ b/config/deploy/templates/postgresql.yml.erb @@ -1,3 +1,19 @@ +<%# + This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no + Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> + + 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 <https://www.gnu.org/licenses/>. +%> <%= fetch :stage %>: adapter: postgresql encoding: <%= fetch :pg_encoding %> diff --git a/config/piwik.yml.erb b/config/piwik.yml.erb index 045ca08..10b4fcc 100644 --- a/config/piwik.yml.erb +++ b/config/piwik.yml.erb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + # Configuration: # # disabled diff --git a/config/routes.rb b/config/routes.rb index 0c10b0d..36a78c5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,66 +1,18 @@ -BetaWebApp::Application.routes.draw do +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. - # This line mounts Refinery's routes at the root of your application. - # This means, any requests to the root URL of your application will go to Refinery::PagesController#home. - # If you would like to change where this extension is mounted, simply change the :at option to something different. - # - # We ask that you don't use the :as option here, as Refinery relies on it being the default of "refinery" +BetaWebApp::Application.routes.draw do mount Refinery::Core::Engine, at: ENV['RAILS_RELATIVE_URL_ROOT'] || '/' - - # The priority is based upon order of creation: - # first created -> highest priority. - - # Sample of regular route: - # match 'products/:id' => 'catalog#view' - # Keep in mind you can assign values other than :controller and :action - - # Sample of named route: - # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase - # This route can be invoked with purchase_url(:id => product.id) - - # Sample resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Sample resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Sample resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Sample resource route with more complex sub-resources - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', :on => :collection - # end - # end - - # Sample resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end - - # You can have the root of your site routed with "root" - # just remember to delete public/index.html. - # root :to => 'welcome#index' - - # See how all your routes lay out with "rake routes" - - # This is a legacy wild controller route that's not recommended for RESTful applications. - # Note: This route will make all actions in every controller accessible via GET requests. - # match ':controller(/:action(/:id))(.:format)' end diff --git a/lib/capistrano/tasks/configure_piwik.rake b/lib/capistrano/tasks/configure_piwik.rake index 54f458b..612b765 100644 --- a/lib/capistrano/tasks/configure_piwik.rake +++ b/lib/capistrano/tasks/configure_piwik.rake @@ -1,4 +1,18 @@ -# :mode=ruby: +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + namespace :deploy do namespace :piwik do desc 'Configure piwik for site' @@ -25,3 +39,5 @@ namespace :deploy do before 'deploy:check:linked_files', 'deploy:piwik:configure' end + +# :mode=ruby: diff --git a/lib/capistrano/tasks/configure_puma.rake b/lib/capistrano/tasks/configure_puma.rake index ccea36b..46e1daa 100644 --- a/lib/capistrano/tasks/configure_puma.rake +++ b/lib/capistrano/tasks/configure_puma.rake @@ -1,4 +1,18 @@ -# :mode=ruby: +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + namespace :deploy do desc 'Configure Puma' task :configure_puma do @@ -13,3 +27,5 @@ namespace :deploy do before 'deploy:finishing', 'deploy:generate_secret_token' end + +# :mode=ruby: diff --git a/lib/capistrano/tasks/create_secret_token.rake b/lib/capistrano/tasks/create_secret_token.rake index e51a486..01658cf 100644 --- a/lib/capistrano/tasks/create_secret_token.rake +++ b/lib/capistrano/tasks/create_secret_token.rake @@ -1,4 +1,18 @@ -# :mode=ruby: +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + require 'securerandom' namespace :deploy do @@ -15,3 +29,5 @@ namespace :deploy do before 'deploy:check:linked_files', 'deploy:generate_secret_token' end + +# :mode=ruby: diff --git a/lib/capistrano/tasks/refinery_setup.rake b/lib/capistrano/tasks/refinery_setup.rake index 8192130..4978800 100644 --- a/lib/capistrano/tasks/refinery_setup.rake +++ b/lib/capistrano/tasks/refinery_setup.rake @@ -1,4 +1,18 @@ -# :mode=ruby: +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + require 'securerandom' require 'active_support/inflector' @@ -20,3 +34,5 @@ namespace :deploy do before 'deploy:check:linked_files', 'deploy:refinery:setup' end + +# :mode=ruby: diff --git a/lib/tasks/dev_load_sample_data.rake b/lib/tasks/dev_load_sample_data.rake index c9333b9..da43843 100644 --- a/lib/tasks/dev_load_sample_data.rake +++ b/lib/tasks/dev_load_sample_data.rake @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + namespace :dev do task :create_sample_user => [:environment] do Refinery::User.create(:username => "sample user", diff --git a/lib/tasks/dev_setup.rake b/lib/tasks/dev_setup.rake index 7042710..7d7cbc7 100644 --- a/lib/tasks/dev_setup.rake +++ b/lib/tasks/dev_setup.rake @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + # Rake task for local development setup namespace :dev do diff --git a/script/setup b/script/setup index 2fa783d..6d6b9cf 100755 --- a/script/setup +++ b/script/setup @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + ruby_status=$(rbenv version |& awk '{ printf $4 " " $5 " " $6 }'|sed -r 's/[ ]+$//') echo \"${ruby_status}\" if [[ "${ruby_status}" == "is not installed" ]] diff --git a/script/year-review.rb b/script/year-review.rb index 3e25b1d..566c489 100644 --- a/script/year-review.rb +++ b/script/year-review.rb @@ -1,5 +1,20 @@ #!/usr/bin/env ruby +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> # +# 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 <https://www.gnu.org/licenses/>. + + # Run with reils runner like this: # # RAILS_ENV=production rails runner script/year-review.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 085926e..59d3a04 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + require 'rubygems' require 'spork' diff --git a/test/unit/helper/sidebar_helper_test.rb b/test/unit/helper/sidebar_helper_test.rb index 10ae63f..89b0fb3 100644 --- a/test/unit/helper/sidebar_helper_test.rb +++ b/test/unit/helper/sidebar_helper_test.rb @@ -1,3 +1,18 @@ +# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no +# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net> +# +# 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 <https://www.gnu.org/licenses/>. + require File.dirname(__FILE__) + '/../../test_helper' require 'action_view/test_case' @@ -47,4 +62,3 @@ class SidebarHelperTest < ActionView::TestCase assert_select "#sidebar_module_module-2", :count => 1 end end - |