diff --git a/server.py b/server.py index d9efcca610fce6e4f69ee1e34117ceb4dd7c1c5a..71289fbc217c6cc61eaf853d5b850bdcb8c502ee 100644 --- a/server.py +++ b/server.py @@ -140,6 +140,7 @@ def permdescr(perms): password = False l2p_courses = [] rwth_intern = False + fsmpi_intern = False for perm in perms: if perm['type'] == 'public': public = True @@ -149,12 +150,16 @@ def permdescr(perms): l2p_courses.append(perm['param1']) elif perm['type'] == 'rwth': rwth_intern = True + elif perm['type'] == 'fsmpi': + fsmpi_intern = True if public or not perms: return 'public', 'Öffentlich verfügbar' if rwth_intern: if password: return 'rwth', 'Nur für RWTH-Angehörige und Nutzer mit Passwort verfügbar' return 'rwth', 'Nur für RWTH-Angehörige verfügbar' + if fsmpi_intern: + return 'fsmpi', 'Nur für Fachschaftler verfügbar' if l2p_courses: if password: return 'l2p', 'Nur für Teilnehmer der Veranstaltung und Nutzer mit Passwort verfügbar' diff --git a/static/fsmpi.png b/static/fsmpi.png new file mode 100644 index 0000000000000000000000000000000000000000..7643592d76740b3bd62ed350bbcf89085d5ebe59 Binary files /dev/null and b/static/fsmpi.png differ diff --git a/static/moderator.js b/static/moderator.js index a229320eb112210e0a776ed9b1a73e8068539468..4f832d629253ef2ab3c2599647d930e1910d01c8 100644 --- a/static/moderator.js +++ b/static/moderator.js @@ -165,6 +165,9 @@ var moderator = { case 'rwth': permstring = '(rwth intern)' break; + case 'fsmpi': + permstring = '(fsmpi intern)' + break; case 'l2p': permstring = '(' + perm.param1 + ')' break; @@ -177,6 +180,7 @@ var moderator = { html += '<option value="public">Öffentlich</option>'; html += '<option selected value="password">Passwort</option>'; html += '<option value="rwth">RWTH intern</option>'; + html += '<option value="fsmpi">FSMPI intern</option>'; html += '<option value="l2p">L2P Lernraum</option>'; html += '</select>'; html += '<input class="col-xs-12 passwordinput authuser" type="text" placeholder="Benutzername">'; diff --git a/templates/macros.html b/templates/macros.html index 82774d13d46f39378d4725ceeec875ffd940de29..dcc74645e83213c5605ad1391f950b692c2182f5 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -203,6 +203,9 @@ $('#embedcodebtn').popover( {% if permdescription[0] == 'rwth' %} {% set permlogos = '<span class="fa" aria-hidden="true" style="width: 25px; height: 20px; background-size: cover; background-image: url(\'/static/rwth.png\');"></span>' %} {% endif %} + {% if permdescription[0] == 'fsmpi' %} + {% set permlogos = '<span class="fa" aria-hidden="true" style="width: 25px; height: 20px; background-size: cover; background-image: url(\'/static/fsmpi.png\');"></span>' %} + {% endif %} {% if ismod() %} <button class="btn btn-default modmoderator_permissioneditor" data-type="{{ type }}" data-id="{{ id }}">