templates/edit-link: use fontawesome icons
This commit is contained in:
parent
306eb20257
commit
f8401c76e3
|
@ -4,15 +4,17 @@
|
||||||
{% if user.is_authenticated and can_edit %}
|
{% if user.is_authenticated and can_edit %}
|
||||||
{% with request.resolver_match.view_name as view_name %}
|
{% with request.resolver_match.view_name as view_name %}
|
||||||
|
|
||||||
{% if view_name in 'program-edit,bla' %}
|
{% if view_name in 'page-edit,program-edit,episode-edit' %}
|
||||||
<!--
|
<!--
|
||||||
<a href="{% url 'program-detail' page.slug %}" target="_self">
|
<a href="{% url 'program-detail' page.slug %}" target="_self">
|
||||||
<span title="{% translate 'View' %} {{ page }}">{% translate 'View' %} 👁 </span>
|
<span title="{% translate 'View' %} {{ page }}">{% translate 'View' %} </span>
|
||||||
|
<i class="fa-regular fa-eye"></i>
|
||||||
</a>
|
</a>
|
||||||
-->
|
-->
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url view_name|edit_view page.pk %}" target="_self">
|
<a href="{% url view_name|edit_view page.pk %}" target="_self">
|
||||||
<span title="{% translate 'Edit' %} {{ page }}">{% translate 'Edit' %} 🖉 </span>
|
<span title="{% translate 'Edit' %} {{ page }}">{% translate 'Edit' %} </span>
|
||||||
|
<i class="fa-solid fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user