From 6c9922a87fb72b958b78014c45b6cd1efafdd30e Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 12 Nov 2020 23:39:13 +0100 Subject: Add Stimulus Map and Taxonomy (WIP) This commit add StimulusJS interaction for the map and taxonomy, as well as styling. It provides preliminary work to hook up live data on the map from the taxonomy. --- app/views/taxonomies/_taxonomy.html.erb | 8 ++++++++ app/views/taxonomies/filter/_taxonomy.html.erb | 1 + app/views/taxonomies/filter/show.html.erb | 1 + app/views/taxonomies/index.html.erb | 5 +++++ app/views/taxonomies/show.html.erb | 1 + 5 files changed, 16 insertions(+) create mode 100644 app/views/taxonomies/_taxonomy.html.erb create mode 100644 app/views/taxonomies/filter/_taxonomy.html.erb create mode 100644 app/views/taxonomies/filter/show.html.erb create mode 100644 app/views/taxonomies/index.html.erb create mode 100644 app/views/taxonomies/show.html.erb (limited to 'app/views/taxonomies') diff --git a/app/views/taxonomies/_taxonomy.html.erb b/app/views/taxonomies/_taxonomy.html.erb new file mode 100644 index 0000000..eff6931 --- /dev/null +++ b/app/views/taxonomies/_taxonomy.html.erb @@ -0,0 +1,8 @@ +
+

<%= taxonomy.name %>

+

<%= h taxonomy.summary %>

+
<%= m taxonomy.description %>
+ +
+
+ diff --git a/app/views/taxonomies/filter/_taxonomy.html.erb b/app/views/taxonomies/filter/_taxonomy.html.erb new file mode 100644 index 0000000..99e9c89 --- /dev/null +++ b/app/views/taxonomies/filter/_taxonomy.html.erb @@ -0,0 +1 @@ +<%= taxonomy_filter %> diff --git a/app/views/taxonomies/filter/show.html.erb b/app/views/taxonomies/filter/show.html.erb new file mode 100644 index 0000000..99e9c89 --- /dev/null +++ b/app/views/taxonomies/filter/show.html.erb @@ -0,0 +1 @@ +<%= taxonomy_filter %> diff --git a/app/views/taxonomies/index.html.erb b/app/views/taxonomies/index.html.erb new file mode 100644 index 0000000..d060f6c --- /dev/null +++ b/app/views/taxonomies/index.html.erb @@ -0,0 +1,5 @@ +
+

Available Taxonomies

+ + <%= render collection: @taxonomies: %> +
diff --git a/app/views/taxonomies/show.html.erb b/app/views/taxonomies/show.html.erb new file mode 100644 index 0000000..99e9c89 --- /dev/null +++ b/app/views/taxonomies/show.html.erb @@ -0,0 +1 @@ +<%= taxonomy_filter %> -- cgit v1.2.3