Skip to content

Commit

Permalink
Merge branch 'release-v1.7' of github.com:okfn/ckan into release-v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Apr 30, 2012
2 parents 89812cc + 879c91c commit 50f7475
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ckan/templates/package/layout.html
Expand Up @@ -34,18 +34,20 @@
</li>
</py:otherwise>
</py:choose>
<li class="${'active' if c.action=='history' else ''}">${h.subnav_link(h.icon('page_stack') + _('History'), controller='package', action='history', id=c.pkg.name)}</li>

<li class="${'active' if c.action=='related' else ''}">${h.subnav_link(h.icon('package') + _('Related') + ' (%s)' % c.related_count, controller='related', action='list', id=c.pkg.name)}</li>


<py:if test="h.check_access('package_update',{'id':c.pkg.id})">
<li class="divider">|</li>
</py:if>
<li class="${'active' if c.action=='history' else ''}">${h.subnav_link(h.icon('page_stack') + _('History'), controller='package', action='history', id=c.pkg.name)}</li>

<py:if test="h.check_access('package_update',{'id':c.pkg.id})">
<li class="${'active' if c.action=='edit' else ''}">
${h.subnav_link(h.icon('package_edit') + _('Settings'), controller='package', action='edit', id=c.pkg.name)}
</li>
</py:if>


<li class="${'active' if c.action=='authz' else ''}" py:if="h.check_access('package_edit_permissions',{'id':c.pkg.id})">
${h.subnav_link(h.icon('lock') + _('Authorization'), controller='package', action='authz', id=c.pkg.name)}
</li>
Expand Down

0 comments on commit 50f7475

Please sign in to comment.