<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:py="http://genshi.edgewall.org/"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  py:strip=""
  >

  <py:match path="minornavigation">
    <py:if test="c.pkg">
    <ul class="tabbed">
      <li>${h.subnav_link(c, h.icon('package') + _('View'), controller='package', action='read', id=c.pkg.name)}</li>
      <li py:if="h.am_authorized(c, actions.EDIT, c.pkg)">
          ${h.subnav_link(c, h.icon('package_edit') + _('Edit'), controller='package', action='edit', id=c.pkg.name)}
      </li>
      <li>${h.subnav_link(c, h.icon('page_stack') + _('History'), controller='package', action='history', id=c.pkg.name)}</li>
      <li py:if="h.am_authorized(c, actions.EDIT_PERMISSIONS, c.pkg)">
        ${h.subnav_link(c, h.icon('lock') + _('Authorization'), controller='package', action='authz', id=c.pkg.name)}
      </li>
    </ul>
    </py:if>
  </py:match>
  
  <xi:include href="../layout.html" />

</html>

