Skip to content

Commit

Permalink
Merge pull request #1 from fsbraun/patch-1
Browse files Browse the repository at this point in the history
Remove unnecessary escapes filter where translations
  • Loading branch information
corentinbettiol authored Jan 25, 2023
2 parents c51760b + a7c5df2 commit ee0a6ce
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions cms/templates/admin/cms/page/tree/actions_dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
>
<a{% if not has_copy_page_permission %} class="cms-pagetree-dropdown-item-disabled"{% endif %} href="#" title="{% filter escapejs %}{% trans "Copy" %}{% endfilter %}">
<span class="cms-icon cms-icon-copy"></span>
<span>{% filter escapejs %}{% trans "Copy" %}{% endfilter %}<span>
<span>{% trans "Copy" %}<span>
</a>
</li>
<li
Expand All @@ -25,7 +25,7 @@
<a{% if not has_move_page_permission %} class="cms-pagetree-dropdown-item-disabled"{% endif %}
href="#" title="{% filter escapejs %}{% trans "Cut" %}{% endfilter %}">
<span class="cms-icon cms-icon-scissors"></span>
<span>{% filter escapejs %}{% trans "Cut" %}{% endfilter %}<span>
<span>{% trans "Cut" %}<span>
</a>
</li>
<li>
Expand All @@ -34,7 +34,7 @@
class="{% if has_add_permission %}js-cms-tree-item-paste{% endif %}
{% if not has_add_permission or not paste_enabled %} cms-pagetree-dropdown-item-disabled{% endif %}">
<span class="cms-icon cms-icon-alias"></span>
<span>{% filter escapejs %}{% trans "Paste" %}{% endfilter %}</span>
<span>{% trans "Paste" %}</span>
</a>
</li>
<li>
Expand All @@ -44,21 +44,21 @@
<a href="#" class="cms-pagetree-dropdown-item-disabled">
{% endif %}
<span class="cms-icon cms-icon-bin"></span>
<span>{% filter escapejs %}{% trans "Delete" %}...{% endfilter %}</span>
<span>{% trans "Delete" %}...</span>
</a>
</li>
{% if has_change_permission and page.is_potential_home %}
<li class="js-cms-tree-item-set-home">
<a href="{% url opts|admin_urlname:'set_home' page.id %}" title="{% filter escapejs %}{% trans "Set as home" %}{% endfilter %}">
<span class="cms-icon cms-icon-home"></span>
<span>{% filter escapejs %}{% trans "Set as home" %}{% endfilter %}</span>
<span>{% trans "Set as home" %}</span>
</a>
</li>
{% else %}
<li class="js-cms-tree-item-set-home">
<a href="#" class="cms-pagetree-dropdown-item-disabled">
<span class="cms-icon cms-icon-home"></span>
<span>{% filter escapejs %}{% trans "Set as home" %}{% endfilter %}</span>
<span>{% trans "Set as home" %}</span>
</a>
</li>
{% endif %}
Expand All @@ -69,7 +69,7 @@
<a href="#" class="cms-pagetree-dropdown-item-disabled">
{% endif %}
<span class="cms-icon cms-icon-cogs"></span>
<span>{% filter escapejs %}{% trans "Advanced settings" %}{% endfilter %}</span>
<span>{% trans "Advanced settings" %}</span>
</a>
</li>
{% if CMS_PERMISSION %}
Expand All @@ -80,7 +80,7 @@
<a href="#" class="cms-pagetree-dropdown-item-disabled">
{% endif %}
<span class="cms-icon cms-icon-lock"></span>
<span>{% filter escapejs %}{% trans "Permissions" %}{% endfilter %}</span>
<span>{% trans "Permissions" %}</span>
</a>
</li>
{% endif %}
Expand All @@ -94,27 +94,27 @@
<p title="{% filter escapejs %}{% trans "publication end date" %}{% endfilter %}: {{ page.publication_end_date|date:"Y-m-d" }}"><strong>{% filter escapejs %}{% trans "publication end date" %}{% endfilter %}:</strong> {{ page.publication_end_date|date:"Y-m-d" }}</p>
{% endif %}
<p title="{% filter escapejs %}{% trans "is restricted" %}: {% if page_is_restricted %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}{% endfilter %}">
<strong>{% filter escapejs %}{% trans "is restricted" %}{% endfilter %}:</strong>
<strong>{% trans "is restricted" %}:</strong>
{% if page_is_restricted %}
{% filter escapejs %}{% trans "Yes" %}{% endfilter %}
{% trans "Yes" %}
{% else %}
{% filter escapejs %}{% trans "No" %}{% endfilter %}
{% trans "No" %}
{% endif %}
</p>
{% if page.changed_by %}
<p title="{% filter escapejs %}{% trans "last change by" %}{% endfilter %}: {{ page.changed_by }}"><strong>{% filter escapejs %}{% trans "last change by" %}{% endfilter %}:</strong> {{ page.changed_by }}</p>
<p title="{% filter escapejs %}{% trans "last change by" %}{% endfilter %}: {{ page.changed_by }}"><strong>{% trans "last change by" %}:</strong> {{ page.changed_by }}</p>
{% endif %}
{% if page.changed_date %}
<p title="{% filter escapejs %}{% trans "last change on" %}{% endfilter %}: {{ page.changed_date|date:"Y-m-d H:i:s" }}"><strong>{% filter escapejs %}{% trans "last change on" %}{% endfilter %}:</strong> {{ page.changed_date|date:"Y-m-d H:i:s" }}</p>
<p title="{% filter escapejs %}{% trans "last change on" %}{% endfilter %}: {{ page.changed_date|date:"Y-m-d H:i:s" }}"><strong>{{% trans "last change on" %}:</strong> {{ page.changed_date|date:"Y-m-d H:i:s" }}</p>
{% endif %}
{% if page.get_template_display %}
<p title="{% filter escapejs %}{% trans "template" %}{% endfilter %}: {{ page.get_template_display }}"><strong>{% filter escapejs %}{% trans "template" %}{% endfilter %}:</strong> {{ page.get_template_display }}</p>
<p title="{% filter escapejs %}{% trans "template" %}{% endfilter %}: {{ page.get_template_display }}"><strong>{% trans "template" %}:</strong> {{ page.get_template_display }}</p>
{% endif %}
{% if metadata %}
<p title="{% filter escapejs %}{% trans "meta" %}{% endfilter %}: {{ metadata }}"><strong>{% filter escapejs %}{% trans "meta" %}{% endfilter %}:</strong> {{ metadata }}</p>
<p title="{% filter escapejs %}{% trans "meta" %}{% endfilter %}: {{ metadata }}"><strong>{% trans "meta" %}:</strong> {{ metadata }}</p>
{% endif %}
{% if page.site %}
<p title="{% filter escapejs %}{% trans "site" %}{% endfilter %}: {{ page.site }}"><strong>{% filter escapejs %}{% trans "site" %}{% endfilter %}:</strong> {{ page.site }}</p>
<p title="{% filter escapejs %}{% trans "site" %}{% endfilter %}: {{ page.site }}"><strong>{% trans "site" %}:</strong> {{ page.site }}</p>
{% endif %}
</li>
</ul>
Expand Down

0 comments on commit ee0a6ce

Please sign in to comment.