Skip to content

Commit

Permalink
[#2939] Remove some authz links from legacy templates
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 10, 2012
1 parent 76a7d51 commit d265e12
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions ckan/templates_legacy/admin/index.html
Expand Up @@ -8,9 +8,6 @@

<div py:match="content">
<h3>Current Sysadmins</h3>
<p>You can change sysadmins on the <a
href="${h.url_for('ckanadmin',
action='authz')}">authorization page</a>.</p>
<ul>
<li py:for="user in c.sysadmins">
${h.linked_user(user)}
Expand Down
3 changes: 0 additions & 3 deletions ckan/templates_legacy/admin/layout.html
Expand Up @@ -9,9 +9,6 @@
<li class="${'active' if c.action=='index' else ''}">
<a href="${h.url_for('ckanadmin', action='index')}">Home</a>
</li>
<li class="${'active' if c.action=='authz' else ''}">
<a href="${h.url_for('ckanadmin', action='authz')}">Authorization</a>
</li>
<li class="${'active' if c.action=='trash' else ''}">
<a href="${h.url_for('ckanadmin', action='trash')}">Trash</a>
</li>
Expand Down
3 changes: 0 additions & 3 deletions ckan/templates_legacy/group/layout.html
Expand Up @@ -23,9 +23,6 @@
<!-- TODO: We need to be able to change the URL below based on the type of the group -->
${h.subnav_named_route(h.icon('group_edit') + _('Edit'), c.group.type + '_action', action='edit', id=c.group.name )}
</li>
<li class="${'active' if c.action=='authz' else ''}" py:if="h.check_access('group_edit_permissions',{'id':c.group.id})">
${h.subnav_named_route(h.icon('lock') + _('Authorization'), c.group.type + '_action', controller='group', action='authz', id=c.group.name)}
</li>
</py:when>
<py:otherwise>
<li class="${'active' if c.action=='index' else ''}">
Expand Down
4 changes: 0 additions & 4 deletions ckan/templates_legacy/package/layout.html
Expand Up @@ -53,10 +53,6 @@
${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>
<li py:if="c.user" style="float:right;">
${h.follow_button('dataset', c.pkg_dict.id)}
</li>
Expand Down

0 comments on commit d265e12

Please sign in to comment.