## -*- coding: utf-8 -*- ## ## ## Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. ## <%! import pkg.server.api as api %>\ <%namespace name="shared" file="../shared.shtml" inheritable="True"/>\ <%page args="g_vars"/>\ <% CLIENT_API_VERSION = 12 base = g_vars["base"] catalog = api.CatalogInterface(CLIENT_API_VERSION, base) config = api.ConfigInterface(CLIENT_API_VERSION, base) request = api.RequestInterface(CLIENT_API_VERSION, base) g_vars["catalog"] = catalog g_vars["config"] = config g_vars["request"] = request rpath = request.path_info.strip("/") comps = rpath.split("/") pub = g_vars["pub"] if pub and comps[0] == pub: # Ignore publisher component of path. comps.pop(0) g_vars["web_config"] = { "locale-region": comps[0] } %>\ <%include file="../config.shtml" args="g_vars=g_vars"/>\ <%def name="global_menu_items(g_vars)"><% if g_vars["config"].mirror: # Only statistics are available in mirror mode. return [("stats.shtml", "Statistics")] if g_vars["http_depot"]: # Apache can't return statistics via the BUI # but does have a top level list of all repositories. return [ ("/", "Repositories"), ("catalog.shtml", "Packages"), ("search.shtml", "Search"), ] return [ ("catalog.shtml", "Packages"), ("search.shtml", "Search"), ("stats.shtml", "Statistics") ] %>%def>\ <%def name="document_class()"><% return "" %>%def>\ <%def name="page_crumbs(g_vars)"><% return [ ("index.shtml", "Home") ] %>%def>\