diff --git a/server.py b/server.py index 5e9bc695f8df761b59411a7eccae522e81402277..b778cbfe3950a46fbecf20c96465f30558a2fe0a 100644 --- a/server.py +++ b/server.py @@ -190,7 +190,7 @@ def permdescr(perms): return 'l2p', 'Nur für Teilnehmer der Veranstaltung verfügbar' if password: return 'password', 'Nur für Nutzer mit Passwort verfügbar' - return 'public', 'Öffentlich verfügbar' + return 'none', 'Nicht verfügbar' app.jinja_env.globals['navbar'] = [] # iconlib can be 'bootstrap' diff --git a/static/moderator.js b/static/moderator.js index 8c4910d7ad5c9ed58e4bd53df77af9ee50b15c58..ed9cb376f85ca7512b3d98e60bbdfcec5afc1bd6 100644 --- a/static/moderator.js +++ b/static/moderator.js @@ -165,11 +165,14 @@ var moderator = { case 'public': permstring = ''; break; + case 'none': + permstring = '(Kein Zugriff)'; + break; case 'rwth': - permstring = '(rwth intern)' + permstring = '(RWTH-intern)' break; case 'fsmpi': - permstring = '(fsmpi intern)' + permstring = '(FS-intern)' break; case 'l2p': permstring = '(' + perm.param1 + ')' @@ -185,6 +188,7 @@ var moderator = { html += '<option value="rwth">RWTH intern</option>'; html += '<option value="fsmpi">FSMPI intern</option>'; html += '<option value="l2p">L2P Lernraum</option>'; + html += '<option value="none">Kein Zugriff</option>'; html += '</select>'; html += '<input class="col-xs-12 passwordinput authuser" type="text" placeholder="Benutzername">'; html += '<input class="col-xs-12 passwordinput authpassword" type="text" placeholder="Passwort">'; diff --git a/templates/macros.html b/templates/macros.html index d9d8f230228a269418a927ccb2443574cf079c6b..63d34cb8cd775980edf318e0d83a597ce1fc9424 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -277,6 +277,9 @@ $('#embedcodebtn').popover( {% if permdescription[0] == 'public' %} {% set permlogos = '<span class="fa fa-globe" aria-hidden="true"></span>' %} {% endif %} + {% if permdescription[0] == 'none' %} + {% set permlogos = '<span class="fa fa-ban" aria-hidden="true"></span>' %} + {% endif %} {% if permdescription[0] == 'password' %} {% set permlogos = '<span class="fa fa-lock" aria-hidden="true"></span>' %} {% endif %}