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
36023199
Commit
36023199
authored
Sep 13, 2018
by
Robert Czechowski
Browse files
Reformat index.hbs
parent
733716ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/index.hbs
View file @
36023199
<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>
{{#if
oauth_url
}}
{{#if
self_url
}}
<a
href=
"
{{
oauth_url
}}{{
self_url
}}
/oauth"
>
PMS-Login für Lehrer
</a>
{{/if}}
{{/if}}
{{/if}}
{{#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>
{{#if
oauth_url
}}
{{#if
self_url
}}
<a
href=
"
{{
oauth_url
}}{{
self_url
}}
/oauth"
>
PMS-Login für Lehrer
</a>
{{/if}}
{{/if}}
{{/if}}
</div>
<h1>
Jugendwettbewerb Informatik
</h1>
<p><a
href=
"/contest"
>
Wettbewerb
</a>
<p><a
href=
"/contest"
>
Wettbewerb
</a>
</p>
{{#if
teacher
}}
<p><a
href=
"/group"
>
Gruppenverwaltung
</a>
<p><a
href=
"/group"
>
Gruppenverwaltung
</a>
</p>
{{/if}}
{{#if
logged_in
}}
<p><a
href=
"/profile"
>
Profil
</a>
<p><a
href=
"/profile"
>
Profil
</a>
</p>
{{/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