base.hbs 5.99 KB
Newer Older
1
2
3
4
<!DOCTYPE html>
<html lang="en" style="background-color: #fafafa;">
  <head>
    <meta charset="utf-8">
5
    <meta name="viewport" content="width=450">
6
    <title>Jugendwettbewerb Informatik: Programmieren – leichter, als du denkst!</title>
7
    <link rel="stylesheet" href="/static/lib/bulma/medal-bulma-0.7.5.css">
8
    <link rel="icon" href="/static/images/favicon.png" type="image/png">
9
10
11
12
    <style>
       ::placeholder {
          color: #888 !important;
       }
13
14
15
16
       .blogin {
          padding: 0px;
          margin: -20px;
       }
17
    </style>
18
  </head>
19
  <body style="background-color: {{#if server_message}}#fbebeb{{else}}white{{/if}};">
20
    <div class="container" style="padding: 1.5rem;">
21
      <div class="columns">
22
        <div class="column is-7">
23
          {{#if firstlogin }}
24
            <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
25
          {{else}}
26
27
28
29
            <a href="/">
              <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
            </a>
          {{/if}}
30
          <h1 class="title">Jugendwettbewerb Informatik</h1>
31
          <h2 class="subtitle">Programmieren – leichter, als du denkst!</h2>
32
        </div>
33
        <div class="column is-5">
34
          {{#if logged_in}}
35
            {{#if firstlogin }}{{else}}
36
              <div class="columns" style="margin-bottom: 0px;">
37
                <div class="column is-8">
38
39
                  Eingeloggt als <em>{{ username }}</em>
                  {{#if firstname}}{{#if lastname}}
40
                    {{firstname}} {{lastname}}
41
42
43
44
45
46
                  {{/if}}{{/if}}
                  {{#if teacher}}
                    [Lehrer]
                  {{/if}}
                </div>
                <div class="column"><a href="/logout" class="button is-small is-danger" type="submit">&nbsp; Logout</a></div>
47
              </div>
48
49
50
51
52
              <div class="columns">
                <div class="column">
                  <a href="/profile" class="button is-info is-small">👤 &nbsp; Profil</a>
                  {{#if teacher}}
                    <a href="/group/" class="button is-warning is-small">&nbsp; Gruppenverwaltung</a>
53
                    <a href="/teacher" class="button is-success is-small">👨‍🏫 &nbsp; Lehrer-Informationen</a>
54
55
                  {{/if}}
                  {{#if admin}}
56
                    <a href="/admin/" class="button is-primary is-small">&nbsp; Administration</a>
57
58
                  {{/if}}
                </div>
59
              </div>
60
            {{/if}}
61
          {{else}}
Schuster's avatar
Schuster committed
62
            <!-- form action="/login" method="post">
63
              <div class="columns blogin">
64
                <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>
65
66
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" onclick="login();"></div>
              </div>
67
            </form -->
68
69
            <form action="/clogin" method="post" autocomplete="off" class="columns blogin">
              <!-- <div class=> -->
70
                <div class="column is-8"><input class="input is-small" type="text" name="code" placeholder="Gruppencode oder Logincode" autofocus></div>
71
72
73
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" style="font-weight:bold;">
                   &nbsp; <a href="https://bwinf.de/jugendwettbewerb/teilnehmen/schueler/" style="font-size: small;"> (?)</a>
                </div>
74
              <!-- </div> -->
75
76
77
78
            </form>
            {{#if self_url}}
              {{#each oauth_links}}
                <div class="columns blogin">
79
80
81
                  <div class="column">
                     <a class="button is-small is-info"  style="font-weight:bold;float:right;" href="{{ this.2 }}{{ ../self_url }}/oauth/{{ this.0 }}">{{ this.1 }}</a>
                     <div style="clear:both;"></div>
82
83
84
                  </div>
                </div>
              {{/each}}
85
            {{/if}}
86
87
88
          {{/if}}
        </div>
      </div>
89

90
91
      {{#if server_message}}
        {{#if firstlogin }}{{else}}
92
          <div class="columns">
93
94
95
96
97
            <div class="column is-8 is-offset-2">
              <div class="notification is-danger">
                {{{ server_message }}}
              </div>
            </div>
98
          </div>
99
        {{/if}}
100
      {{/if}}
101

102
103
104
105
106
      {{~> page}}
    </div>
    <footer class="footer">
      <div class="content has-text-centered">
        <p>
107
108
109
110
111
112
          <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}}
113
        </p>
114
        <p>
115
116
117
118
          {{#if medal_version}}
            <nobr>Medal v{{medal_version}}</nobr>
            &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
          {{/if}}
119
           <a href="https://git.bwinf.de/bwinf/medal">Quellcode</a>
120
121
122
123
           &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>
124
           &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
125
           <nobr>🖂 <a href="mailto:jugendwettbewerb@bwinf.de">jugendwettbewerb@bwinf.de</a></nobr>
126
           {{#if teacher}}
127
128
129
130
             &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
             <nobr>☏ 0228 9762 6999</nobr>
             &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
             <nobr><a href="https://git.bwinf.de/bwinf/medal/-/issues/new">Bug melden</a></nobr>
131
           {{/if}}
132
133
        </p>
        <!--  <p>Diese Wettbewerbsplattform ist freie Software.</p> -->
134
135
136
137
      </div>
    </footer>
  </body>
</html>