Fix only for users
This commit is contained in:
parent
bc7cfaf5e5
commit
1e4d176719
|
@ -2,10 +2,12 @@
|
||||||
<nav class="tabs is-boxed is-fullwidth">
|
<nav class="tabs is-boxed is-fullwidth">
|
||||||
<div class="container {% if request.get_full_path == "/" %}extra-info{% endif %}">
|
<div class="container {% if request.get_full_path == "/" %}extra-info{% endif %}">
|
||||||
<ul>
|
<ul>
|
||||||
{% if request.get_full_path == "/" %}
|
{% if user.is_authenticated %}
|
||||||
<li><a href="/movie/{{ movie.id }}">Ver</a></li>
|
{% if request.get_full_path == "/" %}
|
||||||
{% else %}
|
<li><a href="/movie/{{ movie.id }}">Ver</a></li>
|
||||||
<li><a href="{{ movie.file_name }}" target="_blank" download>Descargar</a></li>
|
{% else %}
|
||||||
|
<li><a href="{{ movie.file_name }}" target="_blank" download>Descargar</a></li>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue