diff --git a/app/controllers/admin_panel_controller.rb b/app/controllers/admin_panel_controller.rb
new file mode 100644
index 0000000..54473ac
--- /dev/null
+++ b/app/controllers/admin_panel_controller.rb
@@ -0,0 +1,2 @@
+class AdminPanelController < ApplicationController
+end
diff --git a/app/helpers/admin_panel_helper.rb b/app/helpers/admin_panel_helper.rb
new file mode 100644
index 0000000..d92c958
--- /dev/null
+++ b/app/helpers/admin_panel_helper.rb
@@ -0,0 +1,2 @@
+module AdminPanelHelper
+end
diff --git a/app/views/admin_panel/index.rhtml b/app/views/admin_panel/index.rhtml
new file mode 100644
index 0000000..dfc8d75
--- /dev/null
+++ b/app/views/admin_panel/index.rhtml
@@ -0,0 +1,9 @@
+
<%= _('Administrator Panel') %>
+
+<%= _('You, as an virtual community administrator, has the following options:')%>
+
+
+ - <%= link_to _('Enable/disable features'), :controller => 'features' %>
+ - <%= link_to _('Manage Tags'), :controller => 'manage_tags' %>
+ - <%= link_to _('Edit the Visual Design'), :controller => 'edit_template'%>
+
diff --git a/config/routes.rb b/config/routes.rb
index 57ad251..eb470fa 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -26,6 +26,7 @@ ActionController::Routing::Routes.draw do |map|
map.comatose_admin 'cms/:profile'
# administrative tasks for a virtual community
+ map.connect 'admin', :controller => 'admin_panel', :action => 'index'
map.connect 'admin/:controller/:action/:id'
diff --git a/test/functional/admin_panel_controller_test.rb b/test/functional/admin_panel_controller_test.rb
new file mode 100644
index 0000000..98f001a
--- /dev/null
+++ b/test/functional/admin_panel_controller_test.rb
@@ -0,0 +1,18 @@
+require File.dirname(__FILE__) + '/../test_helper'
+require 'admin_panel_controller'
+
+# Re-raise errors caught by the controller.
+class AdminPanelController; def rescue_action(e) raise e end; end
+
+class AdminPanelControllerTest < Test::Unit::TestCase
+ def setup
+ @controller = AdminPanelController.new
+ @request = ActionController::TestRequest.new
+ @response = ActionController::TestResponse.new
+ end
+
+ # Replace this with your real tests.
+ def test_truth
+ assert true
+ end
+end
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb
index 8da57f2..281720f 100644
--- a/test/integration/routing_test.rb
+++ b/test/integration/routing_test.rb
@@ -34,11 +34,21 @@ class RoutingTest < ActionController::IntegrationTest
# virtual community administrative controllers (admin/*)
################################################################
+
+ def test_admin_panel_controller
+ assert_routing('/admin', :controller => 'admin_panel', :action => 'index')
+ end
+
def test_features_controller
assert_routing('/admin/features', :controller => 'features', :action => 'index')
+ assert_routing('/admin/features/update', :controller => 'features', :action => 'update')
+ end
+
+ def test_manage_tags_controller
+ assert_routing('/admin/manage_tags', :controller => 'manage_tags', :action => 'index')
end
- # platform administrative conttollers (metaadmin/*)
+ # platform administrative controllers (metaadmin/*)
################################################################
# external public controllers
--
libgit2 0.21.2