summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'helpers')
-rw-r--r--helpers/extra_image_helpers.rb2
-rw-r--r--helpers/navigation_helpers.rb31
2 files changed, 32 insertions, 1 deletions
diff --git a/helpers/extra_image_helpers.rb b/helpers/extra_image_helpers.rb
index 8a1040d..47cda2d 100644
--- a/helpers/extra_image_helpers.rb
+++ b/helpers/extra_image_helpers.rb
@@ -22,7 +22,7 @@ module ExtraImageHelpers
thumb_path = "/img/#{thumb_name}"
container_opts = options.delete(:container_opts) || {}
- image_link = content_tag(:a, href: path) do
+ image_link = content_tag(:a, href: path, class: "th") do
image_tag(thumb_path, options)
end
diff --git a/helpers/navigation_helpers.rb b/helpers/navigation_helpers.rb
new file mode 100644
index 0000000..f4cd56e
--- /dev/null
+++ b/helpers/navigation_helpers.rb
@@ -0,0 +1,31 @@
+module NavigationHelpers
+
+ def navigation_items
+ {
+ ["Aktuelles", "/aktuelles/index.html"] => [
+ ["Blog", "/aktuelles/blog.html"],
+ ["Kalender", "/aktuelles/kalender.html"]
+ ],
+ ["Entdecken", "/entdecken/index.html"] => [
+ ["Die Räume", "/entdecken/raeume.html"],
+ ["Der Verein", "/entdecken/verein.html"],
+ ["Das Wiki", "/entdecken/wiki.html"],
+ ["Mailinglisten", "/entdecken/mailinglisten.html"]
+ ],
+ ["Mitmachen!", "/mitmachen/index.html"] => [
+ ["Projekte", "/mitmachen/projekte.html"],
+ ["Regelmässige Treffen", "/mitmachen/regelmaessige_termine.html"]
+ ],
+ ["Unterstützen", "/unterstuetzen/index.html"] => [
+ ["Mitglied werden", "/unterstuetzen/mitglied_werden.html"],
+ ["Förderer", "/unterstuetzen/foerderer.html"],
+ ["Sponsoren", "/unterstuetzen/sponsoren.html"]
+ ],
+ ["Kontakt", "/kontakt/index.html"] => [
+ ["Wegbeschreibung", "/kontakt/lage.html"],
+ ["Kontaktmöglichkeiten", "/kontakt/kontakt.html"]
+ ]
+ }
+ end
+
+end