aboutsummaryrefslogtreecommitdiff
path: root/app/views/taxonomies
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/taxonomies')
-rw-r--r--app/views/taxonomies/_taxonomy.html.erb2
-rw-r--r--app/views/taxonomies/index.html.erb2
-rw-r--r--app/views/taxonomies/show.html.erb13
3 files changed, 15 insertions, 2 deletions
diff --git a/app/views/taxonomies/_taxonomy.html.erb b/app/views/taxonomies/_taxonomy.html.erb
index eb2dd79..79df167 100644
--- a/app/views/taxonomies/_taxonomy.html.erb
+++ b/app/views/taxonomies/_taxonomy.html.erb
@@ -1,4 +1,4 @@
-<section id="taxonomy-<%= taxonomy.to_param %>" data-controller="taxonomy" data-taxonomy-uuid="<%= taxonomy.uuid %>">
+<section class="on" id="taxonomy-<%= taxonomy.to_param %>" data-controller="taxonomy" data-taxonomy-uuid="<%= taxonomy.uuid %>">
<h3><%= taxonomy.name %></h3>
<p class="summary"><%= h taxonomy.summary %></p>
<div class="description"><%= m taxonomy.description %></div>
diff --git a/app/views/taxonomies/index.html.erb b/app/views/taxonomies/index.html.erb
index 705b0d4..fcbcb8b 100644
--- a/app/views/taxonomies/index.html.erb
+++ b/app/views/taxonomies/index.html.erb
@@ -1,5 +1,5 @@
<section id="taxonomies">
<h2>Available Taxonomies</h2>
- <%= render collection: @taxonomies %>
+ <%= render partial: :taxonomy, collection: @taxonomies %>
</section>
diff --git a/app/views/taxonomies/show.html.erb b/app/views/taxonomies/show.html.erb
index 99e9c89..3971acf 100644
--- a/app/views/taxonomies/show.html.erb
+++ b/app/views/taxonomies/show.html.erb
@@ -1 +1,14 @@
+<%#= map_container %>
+
<%= taxonomy_filter %>
+
+<% content_for :aside do %>
+ <div class="on" data-controller="taxonomy" data-taxonomy-uuid="<%= @taxonomy.to_param %>">
+ <div class="leaflet-bar leaftlet-control" id="taxonomy-toggle">
+ <button data-action="taxonomy#toggle" data-target="taxonomy.toggle"></button>
+ </div>
+ <div data-target="taxonomy.filter"></div>
+ </div>
+<% end %>
+
+