templates: remove empty anchors (#18185)

This commit is contained in:
Frédéric Péters 2019-12-24 17:05:50 +01:00
parent 47829f9d76
commit 1a4d79712a
4 changed files with 7 additions and 7 deletions

View File

@ -9,9 +9,9 @@
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="#">{{object.label}}</a>
<a href="">{{object.label}}</a>
{% else %}
<a href="#">{% trans "New Desk" %}</a>
<a href="">{% trans "New Desk" %}</a>
{% endif %}
{% endblock %}

View File

@ -9,9 +9,9 @@
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="#">{{object}}</a>
<a href="">{{object}}</a>
{% else %}
<a href="#">{% trans "New time period exception" %}</a>
<a href="">{% trans "New time period exception" %}</a>
{% endif %}
{% endblock %}

View File

@ -20,7 +20,7 @@
<ul class="objects-list single-links">
{% for exception in object_list %}
<li>
<a href="{% if user_can_manage %}{% url 'chrono-manager-time-period-exception-edit' pk=exception.id %}{% else %}#{% endif %}">{{ exception }}</a>
<a {% if user_can_manage %}href="{% url 'chrono-manager-time-period-exception-edit' pk=exception.id %}"{% endif %}>{{ exception }}</a>
{% if user_can_manage %}<a rel="popup" class="delete" href="{% url 'chrono-manager-time-period-exception-delete' pk=exception.id %}">{% trans "remove" %}</a>{% endif %}
</li>
{% endfor %}

View File

@ -9,9 +9,9 @@
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="#">{{object}}</a>
<a href="">{{object}}</a>
{% else %}
<a href="#">{% trans "New Time Period" %}</a>
<a href="">{% trans "New Time Period" %}</a>
{% endif %}
{% endblock %}