aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb15
-rw-r--r--app/helpers/home_page_helper.rb15
-rw-r--r--app/helpers/sidebar_helper.rb15
3 files changed, 45 insertions, 0 deletions
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)