Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Lynchburg Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lynchburg
Lynchburg Server
Commits
f55602b2
Commit
f55602b2
authored
4 years ago
by
Nils G.
Browse files
Options
Downloads
Patches
Plain Diff
Added ability to set info text via controller
parent
1f1a3a01
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
controllers/default.py
+5
-2
5 additions, 2 deletions
controllers/default.py
views/default/info_popup.html
+6
-0
6 additions, 0 deletions
views/default/info_popup.html
views/default/login.html
+2
-0
2 additions, 0 deletions
views/default/login.html
with
13 additions
and
2 deletions
controllers/default.py
+
5
−
2
View file @
f55602b2
...
@@ -5,5 +5,8 @@ def index():
...
@@ -5,5 +5,8 @@ def index():
def
content
():
def
content
():
player_record
,
room_record
=
COOKIE_GET
()
player_record
,
room_record
=
COOKIE_GET
()
response
.
view
=
"
default/login.html
"
return
dict
()
if
not
player_record
or
not
room_record
:
#No cookie set - Show login form
response
.
view
=
"
default/login.html
"
return
dict
()
This diff is collapsed.
Click to expand it.
views/default/info_popup.html
0 → 100644
+
6
−
0
View file @
f55602b2
{{try:}}
{{if info:}}
<script
type=
"text/javascript"
>
set_info
(
"
{{=info}}
"
);
</script>
{{pass}}
{{except NameError:}}
{{pass}}
This diff is collapsed.
Click to expand it.
views/default/login.html
+
2
−
0
View file @
f55602b2
{{include 'default/info_popup.html'}}
<form
id=
"form_login"
>
<form
id=
"form_login"
>
<input
type=
"text"
id=
"room_code"
placeholder=
"Room Code"
maxlength=
"4"
><br><br>
<input
type=
"text"
id=
"room_code"
placeholder=
"Room Code"
maxlength=
"4"
><br><br>
<input
type=
"text"
id=
"user_name"
placeholder=
"User Name"
maxlength=
"15"
><br><br>
<input
type=
"text"
id=
"user_name"
placeholder=
"User Name"
maxlength=
"15"
><br><br>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment