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
026953f9
Commit
026953f9
authored
Jun 12, 2019
by
Robert Czechowski
Browse files
Show real contest name in task
parent
c27613f1
Pipeline
#130
passed with stages
in 17 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/functions.rs
View file @
026953f9
...
...
@@ -443,6 +443,7 @@ pub fn show_task<T: MedalConnection>(conn: &T, task_id: u32, session_token: Stri
let
taskpath
=
format!
(
"{}{}"
,
c
.location
,
t
.location
);
data
.insert
(
"contestname"
.to_string
(),
to_json
(
&
c
.name
));
data
.insert
(
"name"
.to_string
(),
to_json
(
&
tg
.name
));
data
.insert
(
"taskid"
.to_string
(),
to_json
(
&
task_id
));
data
.insert
(
"csrftoken"
.to_string
(),
to_json
(
&
session
.csrf_token
));
...
...
templates/task.hbs
View file @
026953f9
...
...
@@ -72,7 +72,7 @@ text-decoration: none;
<div
id=
"bar"
>
<div
id=
"menu"
>
<a
href=
"/contest/
{{
contestid
}}
"
>
{{
contestname
}}
JwInf 2018
</a>
<a
href=
"/contest/
{{
contestid
}}
"
>
{{
contestname
}}
</a>
</div>
<div>
{{
name
}}
...
...
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