forked from saurabh/orbit4-5
groups started
This commit is contained in:
parent
16dae228b1
commit
f71b5d6bbb
|
@ -0,0 +1,9 @@
|
|||
class Admin::GroupsController < OrbitMemberController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def categories
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
this is category.
|
|
@ -0,0 +1 @@
|
|||
this is my group page
|
|
@ -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="">
|
||||
<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>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue