Commit 23b19cec authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Add based templates 'groupresults' for template set 'jwinf'

parent 5f3d7c9d
Pipeline #305 failed with stage
in 6 minutes and 27 seconds
......@@ -336,6 +336,7 @@ pub fn show_contest_results<T: MedalConnection>(conn: &T, contest_id: i32, sessi
tasks: Vec::new() };
data.insert("contest".to_string(), to_json(&ci));
data.insert("parent".to_string(), to_json(&"base"));
Ok(("contestresults".to_owned(), data))
}
......
../default/contestresults.hbs
\ No newline at end of file
{{#*inline "page"}}
<div class="columns">
<div class="column is-12 is-offset-1">
/ <a href="/">Startseite</a> / <a href="../..">Wettbewerbsübersicht</a> / <a href="..">{{contest.name}}</a> / Gruppenergebnisse
</div>
</div>
<div class="columns">
<div class="column is-8 is-offset-2">
<h3 class="title is-4">Ergebnisse in {{contest.name}}</h3>
</div></div>
<style>
td { padding-left: 15px;}
</style>
{{#if result}}
<table class="table">
<tr>
<td>Gruppe</td>
<td>Teilnehmer</td>
<td>Punkte</td>
<tr>
<td></td>
<td></td>
<td>Summe</td>
{{#each taskname}}
<td>{{this}}</td>
{{/each}}
</tr>
{{#each result}}
<tr><td><a href="/group/{{this.1}}">{{this.0}}</a></td></tr>
{{#each this.2}}
<tr><td></td>
<td><a href="/user/{{this.1}}">{{this.0}}</a></td>
{{#each this.2}}
<td>{{this}}</td>
{{/each}}
{{/each}}
</tr>
{{/each}}
</table>
{{else}}
<em>Für diesen Wettbewerb sind noch keine Ergebnisse ihrer Gruppen verzeichnet.</em>
{{/if}}
</div>
</div>
{{/inline}}
{{~> (parent)~}}
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