Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
0344f4d4
Commit
0344f4d4
authored
May 06, 2017
by
Julian Rother
Browse files
Added permission type "none"
parent
01434b3e
Changes
3
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
0344f4d4
...
...
@@ -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'
,
'Öffentl
ich verfügbar'
return
'
none'
,
'N
ich
t
verfügbar'
app
.
jinja_env
.
globals
[
'navbar'
]
=
[]
# iconlib can be 'bootstrap'
...
...
static/moderator.js
View file @
0344f4d4
...
...
@@ -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">
'
;
...
...
templates/macros.html
View file @
0344f4d4
...
...
@@ -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 %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment