diff --git a/app/controllers/tag_controller.rb b/app/controllers/tag_controller.rb index 717a884e79..4855c384f7 100644 --- a/app/controllers/tag_controller.rb +++ b/app/controllers/tag_controller.rb @@ -566,4 +566,6 @@ def fetch_counts @nodes.size end end + + def topic_tree; end end diff --git a/app/views/tag/topic_tree.html.erb b/app/views/tag/topic_tree.html.erb new file mode 100644 index 0000000000..c6adf8c814 --- /dev/null +++ b/app/views/tag/topic_tree.html.erb @@ -0,0 +1,107 @@ +

Topic Tree

+
+ + +
+
+
+  Water + +
+ + +
+  Soil + +
+ + +
+  Air + +
+ +
+  Industry + +
+ +
+  Climate + +
+ +
+  Organizing + +
+ +
+  Monitoring + +
+ +
+
+ + \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index cb75212597..88baa62445 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -382,6 +382,8 @@ post 'comment/react/delete/:id' => 'comment#react_delete' post 'comment/react/update/:id' => 'comment#react_update' + get 'topic-tree' => 'tag#topic_tree' + # Sample resource route (maps HTTP verbs to controller actions automatically): # resources :products