Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
1759f3c4
Commit
1759f3c4
authored
Aug 03, 2018
by
Robert Czechowski
Browse files
Index template
parent
43af1188
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/index.hbs
0 → 100644
View file @
1759f3c4
<div
style=
"display:inline;float:right;text-align:right;"
>
{{#if
logged_in
}}
Eingeloggt als
<em>
{{
username
}}
</em>
{{#if
firstname
}}
{{#if
lastname
}}
(
{{
firstname
}}
{{
lastname
}}
)
{{/if}}{{/if}}
{{#if
teacher
}}
[Lehrer]
{{/if}}
<a
href=
"/logout"
>
Logout
</a>
{{else}}
<form
action=
"login"
method=
"post"
>
Benutzername:
<input
type=
"text"
name=
"username"
value=
"
{{
username
}}
"
autofocus
size=
"8"
>
Passwort:
<input
type=
"password"
name=
"password"
value=
""
size=
"8"
>
<input
type=
"submit"
value=
"log in"
>
</form>
<form
action=
"clogin"
method=
"post"
>
Gruppencode / Teilnahmecode:
<input
type=
"text"
name=
"code"
value=
"
{{
code
}}
"
size=
"8"
>
<input
type=
"submit"
value=
"log in"
>
</form>
<a
href=
"https://testpms.bwinf.de/app/PMS/wa/OAuth2/authorize?client_id=bwinf-junior-league&scope=authenticate&response_type=code&state=42&redirect_uri=http://localhost:8080/oauth"
>
PMS-Login für Lehrer
</a>
{{/if}}
</div>
<h1>
Jugendwettbewerb Informatik
</h1>
<p><a
href=
"/contest"
>
Wettbewerb
</a>
{{#if
teacher
}}
<p><a
href=
"/group"
>
Gruppenverwaltung
</a>
{{/if}}
{{#if
logged_in
}}
<p><a
href=
"/profile"
>
Profil
</a>
{{/if}}
\ No newline at end of file
Write
Preview
Markdown
is supported
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