base.hbs 5.03 KB
Newer Older
1
2
3
4
5
6
7
<!DOCTYPE html>
<html lang="en" style="background-color: #fafafa;">
  <head>
    <meta charset="utf-8">
    <title>Jugendwettbewerb Informatik: Programmieren – einfacher als du denkst!</title>
    <link rel="stylesheet" href="/static/lib/bulma/bulma-0.7.5.css">
    <link rel="icon" href="/static/images/favicon.png" type="image/png">
8
9
10
11
12
    <style>
       ::placeholder {
          color: #888 !important;
       }
    </style>
13
14
15
16
17
18
  </head>
  <body style="background-color: white;">
    <div class="container">
      <div class="columns">
        <div class="column is-two-thirds">
          <p>&nbsp;<p>
19
          {{#if firstlogin }}
20
            <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
21
22
23
24
25
          {{else}}    
            <a href="/">
              <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
            </a>
          {{/if}}
26
27
28
29
30
31
          <h1 class="title">Jugendwettbewerb Informatik</h1>
          <h2 class="subtitle">Programmieren – einfacher als du denkst!</h2>
        </div>
        <div class="column is-one-third">
          &nbsp;
          {{#if logged_in}}
32
            {{#if firstlogin }}{{else}}
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
            <div class="columns alogin">
              <div class="column is-four-fifths">
                Eingeloggt als <em>{{ username }}</em>
                {{#if firstname}}{{#if lastname}}
                  ({{firstname}} {{lastname}})
                {{/if}}{{/if}}
                {{#if teacher}}
                   [Lehrer]
                {{/if}}
                <br>
                <a href="/profile" class="button is-info is-small">👤 &nbsp; Profil</a>
                {{#if teacher}}
                  <a href="/group/" class="button is-info is-small">&nbsp; Gruppenverwaltung</a>
                {{/if}}
              </div>
              <div class="column"><a href="/logout" class="button is-small is-danger" type="submit">&nbsp; Logout</a></div>
            </div>
            <div class="columns alogin">
              <div class="column"></div>
            </div>
53
            {{/if}}
54
          {{else}}
Schuster's avatar
Schuster committed
55
            <!-- form action="/login" method="post">
56
              <div class="columns blogin">
57
                <div class="column is-three-fifths"><input class="input is-small" type="text" name="username" autofocus placeholder="Benutzername" style="width:50%"><input class="input is-small" type="password" name="password" placeholder="Passwort" style="width:50%"></div>
58
59
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" onclick="login();"></div>
              </div>
60
            </form -->
Schuster's avatar
Schuster committed
61
            <form action="/clogin" method="post" autocomplete="off">
62
              <div class="columns blogin">
63
                <div class="column is-three-fifths"><input class="input is-small" type="text" name="code" placeholder="Gruppencode oder Logincode" autofocus></div>
64
65
66
67
68
69
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login"></div>
              </div>
            </form>
            {{#if self_url}}
              {{#each oauth_links}}
                <div class="columns blogin">
70
                  <div class="column is-two-fifth"></div>
71
                    <div class="column">
72
                    <a class="button is-small is-info" href="{{ this.2 }}{{ ../self_url }}/oauth/{{ this.0 }}">{{ this.1 }}</a>
73
74
75
                  </div>
                </div>
              {{/each}}
76
            {{/if}}
77
78
79
          {{/if}}
        </div>
      </div>
80

81
      {{#if firstlogin }}{{else}}
82
83
84
85
86
87
88
89
      <div class="columns alogin">
        <div class="column is-8 is-offset-2">
          <div class="notification is-danger">
            <h3 class="title is-5">Achtung Testplattform!</h3>
            <p>Diese Wettbewerbsplattform ist noch in der Erprobungsphase. Bitten benutzen Sie für die Teilnahme am Jugendwettbewerb Informatik 2020 <a href="https://wettbewerb.jwinf.de">die aktuelle Wettbewerbsplattform</a> unter <a href="https://wettbewerb.jwinf.de">wettbewerb.jwinf.de</a>.</p>
          </div>
        </div>
      </div>
90
      {{/if}}
91
92
93
94
95
96
97
        
      {{~> page}}
    </div>
    &nbsp;
    <footer class="footer">
      <div class="content has-text-centered">
        <p>
98
99
100
101
102
103
          <img src="/static/images/dachmarke_72.png" style="width:119px; height:72px; vertical-align: middle; margin-right:20px;"> Der <strong>Jugendwettbewerb Informatik</strong> ist ein Angebot der
          {{#if firstlogin }}
            Bundesweiten Informatikwettbewerbe.
          {{else}}
            <a href="https://bwinf.de">Bundesweiten Informatikwettbewerbe</a>.
          {{/if}}
104
        </p>
105
106
107
108
109
110
111
112
        <p>
           <a href="mailto:jwinf@bwinf.de">jwinf@bwinf.de</a>
           &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
           <a href="https://bwinf.de/jugendwettbewerb/datenschutz/">Datenschutz</a>
           &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
           <a href="https://bwinf.de/impressum/">Impressum</a>
        </p>
        <!--  <p>Diese Wettbewerbsplattform ist freie Software.</p> -->
113
114
115
116
      </div>
    </footer>
  </body>
</html>