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

Show message and link to login page if contest can not be started

parent afce8aa0
...@@ -62,12 +62,12 @@ ...@@ -62,12 +62,12 @@
</div> </div>
</div> </div>
{{/if}} {{/if}}
<div class="columns" id="bare_content"> <div class="columns" id="bare_content">
{{/if}} {{/if}}
<div class="column is-8 is-offset-2"> <div class="column is-8 is-offset-2">
<div style="min-height: 400px; margin-bottom:100px;"> <div style="min-height: 400px; margin-bottom:100px;">
<h3 class="title is-4">{{ contest.name }}</h3> <h3 class="title is-4">Wettbewerb: {{ contest.name }}</h3>
{{#if contest.duration}}<h4 class="subtitle is-5">Dauer: {{contest.duration}} Minuten</h4>{{/if}} {{#if contest.duration}}<h4 class="subtitle is-5">Dauer: {{contest.duration}} Minuten</h4>{{/if}}
{{#if participation_start_date}} {{#if participation_start_date}}
...@@ -89,10 +89,10 @@ ...@@ -89,10 +89,10 @@
</div> </div>
{{/each}} {{/each}}
<hr> <hr>
<p> <p>
Punktestand: {{ total_points }} ★ / {{ max_total_points }}&nbsp; ({{ relative_points }} %) Punktestand: {{ total_points }} ★ / {{ max_total_points }}&nbsp; ({{ relative_points }} %)
</p> </p>
{{else}} {{else}}
...@@ -105,10 +105,17 @@ ...@@ -105,10 +105,17 @@
</p> </p>
<p>Der Wettbewerb kann nach dem Starten nicht mehr pausiert werden.</p> <p>Der Wettbewerb kann nach dem Starten nicht mehr pausiert werden.</p>
{{else}}
<p>Du kannst diesen Wettbewerb im Moment nicht starten.</p>
{{#if logged_in}}
{{else}}
<p>Möglicherweise musst du dich zunächst <a href="/login">einloggen</a>.</p>
{{/if}}
{{/if}} {{/if}}
{{/if}} {{/if}}
</div> </div>
</div> </div>
{{#if not_bare}} {{#if not_bare}}
</div> </div>
</div> </div>
......
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