index.hbs 1.16 KB
Newer Older
Robert Czechowski's avatar
Robert Czechowski committed
1
<div style="display:inline;float:right;text-align:right;">
Robert Czechowski's avatar
Robert Czechowski committed
2
3
4
5
6
7
8
9
10
11
  {{#if logged_in}}
    Eingeloggt als <em>{{ username }}</em>

    {{#if firstname}}{{#if lastname}}
      ({{firstname}} {{lastname}})
    {{/if}}{{/if}}

    {{#if teacher}}
      [Lehrer]
    {{/if}}
12

Robert Czechowski's avatar
Robert Czechowski committed
13
14
15
16
17
18
19
20
21
    <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>
22

Robert Czechowski's avatar
Robert Czechowski committed
23
24
25
26
27
    <form action="clogin" method="post">
      Gruppencode / Teilnahmecode:
      <input type="text" name="code" value="{{ code }}" size="8">
      <input type="submit" value="log in">
    </form>
28
29
30
31
32
    
    {{#if self_url}}
      {{#each oauth_links}}
        <a href="{{ this.2 }}{{ self_url }}/oauth/{{ this.0 }}">{{ this.1 }}</a>
      {{/each}}
Robert Czechowski's avatar
Robert Czechowski committed
33
34
35
    {{/if}}

  {{/if}}
Robert Czechowski's avatar
Robert Czechowski committed
36
37
38
39
</div>

<h1>Jugendwettbewerb Informatik</h1>

40
<p><a href="/contest">Wettbewerb</a></p>
Robert Czechowski's avatar
Robert Czechowski committed
41
42

{{#if teacher}}
Robert Czechowski's avatar
Robert Czechowski committed
43
  <p><a href="/group">Gruppenverwaltung</a></p>
Robert Czechowski's avatar
Robert Czechowski committed
44
45
46
{{/if}}

{{#if logged_in}}
Robert Czechowski's avatar
Robert Czechowski committed
47
  <p><a href="/profile">Profil</a></p>
48
{{/if}}