diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb new file mode 100644 index 0000000..e838d5e --- /dev/null +++ b/app/controllers/admin/groups_controller.rb @@ -0,0 +1,9 @@ +class Admin::GroupsController < OrbitMemberController + + def index + end + + def categories + end + +end \ No newline at end of file diff --git a/app/views/admin/groups/categories.html.erb b/app/views/admin/groups/categories.html.erb new file mode 100644 index 0000000..1eab51a --- /dev/null +++ b/app/views/admin/groups/categories.html.erb @@ -0,0 +1 @@ +this is category. \ No newline at end of file diff --git a/app/views/admin/groups/index.html.erb b/app/views/admin/groups/index.html.erb new file mode 100644 index 0000000..ebc19ee --- /dev/null +++ b/app/views/admin/groups/index.html.erb @@ -0,0 +1 @@ +this is my group page \ No newline at end of file diff --git a/app/views/admin/members/_side_bar.html.erb b/app/views/admin/members/_side_bar.html.erb index c5de6cb..5537a89 100644 --- a/app/views/admin/members/_side_bar.html.erb +++ b/app/views/admin/members/_side_bar.html.erb @@ -16,8 +16,8 @@ <%= content_tag :li, :class => active_for_controllers('plugins') do -%> <%= link_to( ( content_tag(:span, content_tag(:i, nil, :class => 'icons-pie'))), '#') %> <% end -%> - <%= content_tag :li, :class => active_for_controllers('plugins') do -%> - <%= link_to( ( content_tag(:span, content_tag(:i, nil, :class => 'icons-layout'))), '#') %> + <%= content_tag :li, :class => active_for_controllers('groups') do -%> + <%= link_to( ( content_tag(:span, content_tag(:i, nil, :class => 'icons-layout'))), admin_groups_path) %> <% end -%> <% end -%> <% end -%> @@ -49,7 +49,9 @@ diff --git a/config/routes.rb b/config/routes.rb index dafebc8..11b6b5a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -119,6 +119,14 @@ Orbit::Application.routes.draw do match "accept_member" => "members#accept_member" ,:as => :accept_member, via: [:get, :post] match "edit_privilege" => "members#edit_privilege" ,:as => :edit_privilege, via: [:get, :post] end + + # GROUPS START HERE + get "groups/categories" => 'groups#categories' + + resources :groups do + + end + get 'members/:name-:uid/:show_plugin_profile' => "members#show", :as=> :show_plugin_profile