diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/admin_controller.rb | 4 | ||||
| -rw-r--r-- | app/views/admin/conventions.html.erb | 11 |
2 files changed, 0 insertions, 15 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index c23cec04..13bbfd56 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb | |||
| @@ -12,10 +12,6 @@ class AdminController < ApplicationController | |||
| 12 | @actions = NodeAction.order(:occurred_at => :desc, :id => :desc).limit(5) | 12 | @actions = NodeAction.order(:occurred_at => :desc, :id => :desc).limit(5) |
| 13 | end | 13 | end |
| 14 | 14 | ||
| 15 | def conventions | ||
| 16 | @node_kinds = CccConventions::NODE_KINDS | ||
| 17 | end | ||
| 18 | |||
| 19 | def search | 15 | def search |
| 20 | @results = Node.editor_search(params[:search_term]) | 16 | @results = Node.editor_search(params[:search_term]) |
| 21 | 17 | ||
diff --git a/app/views/admin/conventions.html.erb b/app/views/admin/conventions.html.erb deleted file mode 100644 index 434c2e9c..00000000 --- a/app/views/admin/conventions.html.erb +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | <h1><%= t(".title") %></h1> | ||
| 2 | |||
| 3 | <table id="conventions"> | ||
| 4 | <tr><th><%= t(".kind") %></th><th><%= t(".what_happens") %></th></tr> | ||
| 5 | <% @node_kinds.each do |kind, config| %> | ||
| 6 | <tr> | ||
| 7 | <td><%= kind %></td> | ||
| 8 | <td><%= resolve_kind_text(config[:label]) %> — <%= resolve_kind_text(config[:hint]) %></td> | ||
| 9 | </tr> | ||
| 10 | <% end %> | ||
| 11 | </table> | ||
