Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu search #193

Merged
merged 1 commit into from
Jun 8, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/lib/navigation/content_management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def menu_contents
:url => :sub_level,
:options => {:class=>'content top_level', "data-menu"=>"content"},
:if => lambda{current_organization},
:items=> [ menu_providers, menu_sync_management, menu_system_templates, menu_promotions, menu_changeset]
:items=> [ menu_providers, menu_content_search, menu_sync_management, menu_system_templates, menu_promotions, menu_changeset]
}
end

Expand Down Expand Up @@ -90,6 +90,19 @@ def menu_sync_management

end

def menu_content_search
{:key => :content_search,
:name =>_("Content Search"),
:if => lambda{AppConfig.katello? && (current_organization.syncable? || Provider.any_readable?(current_organization))},
:options => {:class=>'content second_level', "data-menu"=>"content"},
:url =>content_search_index_path,

}


end


def menu_sync_status
{:key => :sync_status,
:name =>_("Sync Status"),
Expand Down