Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
23b19cec
Commit
23b19cec
authored
Jan 13, 2020
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
23b19cec
...
...
@@ -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
))
}
...
...
templates/jwinf/contestresults.hbs
deleted
120000 → 0
View file @
5f3d7c9d
../default/contestresults.hbs
\ No newline at end of file
templates/jwinf/contestresults.hbs
0 → 100644
View file @
23b19cec
{{#
*
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
)
~}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment