Compare commits
No commits in common. "7cdf44b901e448f63db2ebe28513fb1c4c160ef5" and "306eb20257db1ec8f7ba95d4ee0d22ab57693131" have entirely different histories.
7cdf44b901
...
306eb20257
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -70,10 +70,10 @@ Usefull context:
|
||||||
{% translate "Admin" %}
|
{% translate "Admin" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if user.is_authenticated %}
|
||||||
<a class="nav-item" href="{% url "profile" %}" target="new">
|
<a class="nav-item" href="{% url "profile" %}" target="new">
|
||||||
{% translate "Profile" %}
|
{% translate "Profile" %}
|
||||||
</a>
|
</a>
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<a class="nav-item" href="{% url "logout" %}" title="{% translate "Disconnect" %}"
|
<a class="nav-item" href="{% url "logout" %}" title="{% translate "Disconnect" %}"
|
||||||
aria-label="{% translate "Disconnect" %}">
|
aria-label="{% translate "Disconnect" %}">
|
||||||
<i class="fa fa-power-off"></i>
|
<i class="fa fa-power-off"></i>
|
||||||
|
|
|
@ -4,19 +4,15 @@
|
||||||
{% 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 'page-edit,program-edit,episode-edit' %}
|
{% if view_name in 'program-edit,bla' %}
|
||||||
<a href="{% url view_name|detail_view page.slug %}" target="_self">
|
<!--
|
||||||
<small>
|
<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>
|
|
||||||
</small>
|
|
||||||
</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">
|
||||||
<small>
|
<span title="{% translate 'Edit' %} {{ page }}">{% translate 'Edit' %} 🖉 </span>
|
||||||
<span title="{% translate 'Edit' %} {{ page }}">{% translate 'Edit' %} </span>
|
|
||||||
<i class="fa-solid fa-pencil"></i>
|
|
||||||
</small>
|
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
<br/>
|
<br/>
|
||||||
<input type="submit" value="Update" class="button is-success">
|
<input type="submit" value="Update" class="button is-success">
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
{% include "aircox/playlist_inline.html" %}
|
{% include "aircox/playlist_inline.html" %}
|
||||||
|
|
||||||
<input type="submit" value="Update" class="button is-success">
|
<input type="submit" value="Update" class="button is-success">
|
||||||
|
|
|
@ -139,8 +139,3 @@ def do_verbose_name(obj, plural=False):
|
||||||
@register.filter(name="edit_view")
|
@register.filter(name="edit_view")
|
||||||
def do_edit_view(obj):
|
def do_edit_view(obj):
|
||||||
return "%s-edit" % obj.split("-")[0]
|
return "%s-edit" % obj.split("-")[0]
|
||||||
|
|
||||||
|
|
||||||
@register.filter(name="detail_view")
|
|
||||||
def do_detail_view(obj):
|
|
||||||
return "%s-detail" % obj.split("-")[0]
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user