From 6ce4fbfc361990c8126b052c85ebe40a69dcbc32 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Wed, 14 Jul 2021 12:29:46 +0200 Subject: [PATCH] Show PDF files always in new tabs --- aleksis/apps/resint/templates/resint/group/list.html | 3 ++- aleksis/apps/resint/templates/resint/poster/list.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/aleksis/apps/resint/templates/resint/group/list.html b/aleksis/apps/resint/templates/resint/group/list.html index a0e248f..33f18e2 100644 --- a/aleksis/apps/resint/templates/resint/group/list.html +++ b/aleksis/apps/resint/templates/resint/group/list.html @@ -29,7 +29,8 @@ <tr> <td>{{ poster_group.name }}</td> <td> - <a href="{% url "poster_show_current" poster_group.slug %}"><code>{{ poster_group.filename }}</code></a> + <a href="{% url "poster_show_current" poster_group.slug %}" target="_blank"> + <code>{{ poster_group.filename }}</code></a> </td> <td>{{ poster_group.publishing_day_name }}</td> <td>{{ poster_group.publishing_time }}</td> diff --git a/aleksis/apps/resint/templates/resint/poster/list.html b/aleksis/apps/resint/templates/resint/poster/list.html index f152f85..6850881 100644 --- a/aleksis/apps/resint/templates/resint/poster/list.html +++ b/aleksis/apps/resint/templates/resint/poster/list.html @@ -15,7 +15,7 @@ {% if current_poster %} <p class="margin-bottom"> <i class="material-icons left">picture_as_pdf</i> - <a href="{{ current_poster.pdf.url }}"> + <a href="{{ current_poster.pdf.url }}" target="_blank"> {% blocktrans with week=current_poster.week year=current_poster.year %} Week {{ week }}/{{ year }} {% endblocktrans %} @@ -34,7 +34,7 @@ {% endwith %} </div> <div class="card-action"> - <a href="{% url "poster_show_current" group.slug %}"> + <a href="{% url "poster_show_current" group.slug %}" target="_blank"> {% trans "Show current PDF" %} </a> </div> -- GitLab