Skip to content
Snippets Groups Projects
Commit 0344f4d4 authored by Julian Rother's avatar Julian Rother
Browse files

Added permission type "none"

parent 01434b3e
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
......@@ -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">';
......
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment