Commit 36023199 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Reformat index.hbs

parent 733716ef
<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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment