diff options
| -rw-r--r-- | app/controllers/admin_controller.rb | 4 | ||||
| -rw-r--r-- | app/views/admin/conventions.html.erb | 11 | ||||
| -rw-r--r-- | config/locales/de.yml | 4 | ||||
| -rw-r--r-- | config/locales/en.yml | 4 | ||||
| -rw-r--r-- | config/routes.rb | 1 |
5 files changed, 0 insertions, 24 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> | ||
diff --git a/config/locales/de.yml b/config/locales/de.yml index 1bab646b..4e19bcc1 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml | |||
| @@ -398,10 +398,6 @@ de: | |||
| 398 | housekeeping: "Verwaltung" | 398 | housekeeping: "Verwaltung" |
| 399 | my_account: "Mein Konto" | 399 | my_account: "Mein Konto" |
| 400 | navigation: "Navigation" | 400 | navigation: "Navigation" |
| 401 | conventions: | ||
| 402 | title: "Konventionen beim Anlegen von Nodes" | ||
| 403 | kind: "Art" | ||
| 404 | what_happens: "Was passiert" | ||
| 405 | search_results: | 401 | search_results: |
| 406 | title: "Suchergebnisse" | 402 | title: "Suchergebnisse" |
| 407 | 403 | ||
diff --git a/config/locales/en.yml b/config/locales/en.yml index 2acbe98f..83373bcd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml | |||
| @@ -351,10 +351,6 @@ en: | |||
| 351 | housekeeping: "Housekeeping" | 351 | housekeeping: "Housekeeping" |
| 352 | my_account: "My account" | 352 | my_account: "My account" |
| 353 | navigation: "Navigation" | 353 | navigation: "Navigation" |
| 354 | conventions: | ||
| 355 | title: "Node creation conventions" | ||
| 356 | kind: "Kind" | ||
| 357 | what_happens: "What happens" | ||
| 358 | search_results: | 354 | search_results: |
| 359 | title: "Search Results" | 355 | title: "Search Results" |
| 360 | nodes: | 356 | nodes: |
diff --git a/config/routes.rb b/config/routes.rb index e123a3fe..b7cbbc4c 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
| @@ -102,7 +102,6 @@ Cccms::Application.routes.draw do | |||
| 102 | match '' => 'admin#index', :as => :admin, :via => :get | 102 | match '' => 'admin#index', :as => :admin, :via => :get |
| 103 | match 'search' => 'admin#search', :as => :admin_search, :via => :get | 103 | match 'search' => 'admin#search', :as => :admin_search, :via => :get |
| 104 | match 'menu_search' => 'admin#menu_search', :as => :admin_menu_search, :via => :get | 104 | match 'menu_search' => 'admin#menu_search', :as => :admin_menu_search, :via => :get |
| 105 | match 'conventions' => 'admin#conventions', :as => :admin_conventions, :via => :get | ||
| 106 | match 'dashboard_search' => 'admin#dashboard_search', :as => :admin_dashboard_search, :via => :get | 105 | match 'dashboard_search' => 'admin#dashboard_search', :as => :admin_dashboard_search, :via => :get |
| 107 | match 'log' => 'node_actions#index', :as => :admin_log, :via => :get | 106 | match 'log' => 'node_actions#index', :as => :admin_log, :via => :get |
| 108 | match 'boom' => 'admin#boom', :as => :admin_boom, :via => :get | 107 | match 'boom' => 'admin#boom', :as => :admin_boom, :via => :get |
