Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
wizards
mffzoom
Commits
bd1007db
Commit
bd1007db
authored
May 04, 2020
by
Martin Mareš
Browse files
App: Secret sets of rooms :)
parent
aa575774
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/templates/main.html
View file @
bd1007db
...
...
@@ -24,6 +24,9 @@
<select
name=
rooms
>
<option
value=
i{{
"
selected
"
if
g.rooms=
="i"
else
""
}}
>
CompSci rooms
</option>
<option
value=
m{{
"
selected
"
if
g.rooms=
="m"
else
""
}}
>
Math rooms
</option>
{% if g.rooms not in ["i", "m"] %}
<option
value=
{{g.rooms}}
selected
>
Extra rooms
</option>
{% endif %}
</select>
<input
type=
submit
name=
submit
value=
"Submit"
>
</form>
...
...
app/zoom.py
View file @
bd1007db
...
...
@@ -88,6 +88,10 @@ room_list = {
(
'ZM7'
,
'zoom-m-7@d3s.mff.cuni.cz'
),
(
'ZM8'
,
'zoom-m-8@d3s.mff.cuni.cz'
),
],
'krakorec'
:
[
(
'MJ'
,
'mj@ucw.cz'
),
(
'KAM'
,
'zoom@kam.mff.cuni.cz'
),
],
}
@
app
.
route
(
'/'
)
...
...
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