Skip to content

Commit

Permalink
Remove unused hide_actions from listing templates
Browse files Browse the repository at this point in the history
It was not set anywhere in the Wagtail code base, so was not used for
anything.
  • Loading branch information
mx-moth committed Dec 13, 2015
1 parent 0ba4ce1 commit 5ef26d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -3,7 +3,7 @@
{# The title field for a page in the page listing, when in 'explore' mode #}

<h2>
{% if page_perms.can_edit and 'edit' not in hide_actions|default:'' %}
{% if page_perms.can_edit %}
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" title="{% trans 'Edit this page' %}">{{ page.title }}</a>
{% else %}
{{ page.title }}
Expand Down
Expand Up @@ -4,7 +4,7 @@
{# The title field for a parent page when the listing is in 'explore' mode #}

<h2>
{% if parent_page_perms.can_edit and 'edit' not in hide_actions|default:'' %}
{% if parent_page_perms.can_edit %}
<a href="{% url 'wagtailadmin_pages:edit' parent_page.id %}">{{ parent_page.title }}</a>
{% else %}
{{ parent_page.title }}
Expand Down

0 comments on commit 5ef26d4

Please sign in to comment.