diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-09-23 08:44:31 +0200 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-09-23 08:44:31 +0200 |
commit | 7fc6575a7a38daa21a26e2b179a92ca809b61eea (patch) | |
tree | 679498b3fd59aa375c6c6ce7ba48ed3d6a6e11d7 /helpers | |
parent | 35239fc1f4641db1e602383b43cc29b151cde9b9 (diff) | |
parent | 1c177d628ffdb693483b1c39b94b5f19adcd8095 (diff) |
Merge branch 'replace-bootstrap-with-foundation'
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/extra_image_helpers.rb | 2 | ||||
-rw-r--r-- | helpers/navigation_helpers.rb | 31 |
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 |