From d3d7a8fc7f324aa42a375a72575b6e2930a79364 Mon Sep 17 00:00:00 2001 From: Fidel Ramos Date: Sat, 19 Oct 2019 20:33:30 +0000 Subject: [PATCH] Open external LINKS in new window, relative LINKS in same window This is an improvement over commit 90e3ee38f so it's not necessary to change the structure of the LINKS setting, just set relative links and they will be open in the same window, same as the `MAIN_MENU`. --- templates/base.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/templates/base.html b/templates/base.html index a5dc1fa..444872a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -116,14 +116,9 @@ {% endfor %} {% endif %} - {% for link_tuple in LINKS %} - {% if link_tuple|length == 2 %} - {% set name, link = link_tuple %} -
  • {{ name }}
  • - {% else %} - {% set name, link, new_window = link_tuple %} -
  • {{ name }}
  • - {% endif %} + {% for name, link in LINKS %} + {# Open external links in new window, relative links in the same window #} +
  • {{ name }}
  • {% endfor %}