From 187fc7c14434df5ac0296c05e4fae5cc3c42f1b5 Mon Sep 17 00:00:00 2001 From: Dorian Koch <doriank@fsmpi.rwth-aachen.de> Date: Fri, 27 Sep 2024 23:28:54 +0200 Subject: [PATCH] Add link to beta site --- templates/base.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/templates/base.html b/templates/base.html index e483c7c..efc4816 100644 --- a/templates/base.html +++ b/templates/base.html @@ -81,6 +81,22 @@ {{ navbaricon(n) }} {% endfor %} + <li> + <a href="https://beta.video.fsmpi.rwth-aachen.de" style="padding: 10px 6px; margin-left: 1em; color: rgb(10, 156, 10);"> + <span aria-hidden="true" class="fa fa-external-link-square-alt"></span> + Zur neuen Seite + </a> + + <script> + $(function() { + $('a[href="https://beta.video.fsmpi.rwth-aachen.de"]').on('click', function(e) { + e.preventDefault(); + window.location.href = 'https://beta.video.fsmpi.rwth-aachen.de' + window.location.pathname; + }); + }); + </script> + </li> + {% for grouper, list in navbar|rejectattr("group", "none")|groupby("group") if ismod() %} <li{% if request.endpoint in list|map(attribute='endpoint') %} class="active dropdown"{% endif %}> <a data-toggle="dropdown" data-boundary="viewport" class="dropdown-toggle" style="padding: 10px 6px; cursor: pointer;">{{ grouper }}<span class="caret"></span></a> -- GitLab