aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-01-22 18:41:39 +0100
committerhellekin <hellekin@cepheide.org>2021-01-22 18:41:39 +0100
commitee7ad7fb4660a33727922f7b0650913759a5538e (patch)
tree445c7b219d99411c303be8261fd6d919ea41959f
parentfc5482a30a9756eea25f312a09b6056152c9c317 (diff)
downloadincommon-map-0.1.7.tar.gz
Remove duplicate codev0.1.7
-rw-r--r--app/helpers/taxonomies_helper.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/helpers/taxonomies_helper.rb b/app/helpers/taxonomies_helper.rb
index a584177..fe46458 100644
--- a/app/helpers/taxonomies_helper.rb
+++ b/app/helpers/taxonomies_helper.rb
@@ -6,18 +6,4 @@
# frozen_string_literal: true
module TaxonomiesHelper
- def taxonomy_filter
- @taxonomy ||= Taxonomy.first
- html = []
- @taxonomy.categories.each do |cat|
- list = []
- cat.sections.each do |sec|
- list << tag.li(h("#{sec.rank}. #{sec.name}"), id: "section-#{sec.id}", data: { action: "taxonomy#section" })
- end
- html << tag.li(h("#{cat.rank}. #{cat.name}") << tag.ol(list.join.html_safe),
- id: "category-#{cat.id}",
- data: { action: "taxonomy#category" })
- end
- raw(tag.nav(tag.ol(html.join.html_safe), id: "taxonomy-#{@taxonomy.uuid}"))
- end
end