groups started

This commit is contained in:
Harry Bomrah 2015-03-12 19:02:48 +08:00
parent 16dae228b1
commit f71b5d6bbb
5 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,9 @@
class Admin::GroupsController < OrbitMemberController
def index
end
def categories
end
end

View File

@ -0,0 +1 @@
this is category.

View File

@ -0,0 +1 @@
this is my group page

View File

@ -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 @@
</div>
<div class="sub-nav-block" data-icons="&#xe070;">
<h4><%= t(:groups) %></h4>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('members', 'roles','member_infos')) do -%>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('groups')) do -%>
<%= content_tag :li, link_to((content_tag(:span, "My Groups")), admin_groups_path), :class => active_for_action('groups', 'index') %>
<%= content_tag :li, link_to((content_tag(:span, "Categories")), admin_groups_categories_path), :class => active_for_action('groups','group_category') %>
<% end -%>
</div>
</div>

View File

@ -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