hide export link for past releases and anonymous user (#78262) #12

Merged
lguerin merged 1 commits from wip/78262-export-link into main 2023-06-08 14:42:17 +02:00
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@
{% endif %}
{% else %}
<h3>{{ day.day|date:"d/m/Y" }}</h3>
<a href="{% url 'project-summary-history-day' slug=object.slug year=day.day.year month=day.day.month day=day.day.day %}">Exporter</a>
{% if user.is_authenticated %}
<a href="{% url 'project-summary-history-day' slug=object.slug year=day.day.year month=day.day.month day=day.day.day %}">Exporter</a>
{% endif %}
{% endif %}
<p>
{% for module in day.modules.values %}