Commit 026953f9 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Show real contest name in task

parent c27613f1
Pipeline #130 passed with stages
in 17 minutes and 44 seconds
...@@ -443,6 +443,7 @@ pub fn show_task<T: MedalConnection>(conn: &T, task_id: u32, session_token: Stri ...@@ -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); 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("name".to_string(), to_json(&tg.name));
data.insert("taskid".to_string(), to_json(&task_id)); data.insert("taskid".to_string(), to_json(&task_id));
data.insert("csrftoken".to_string(), to_json(&session.csrf_token)); data.insert("csrftoken".to_string(), to_json(&session.csrf_token));
......
...@@ -72,7 +72,7 @@ text-decoration: none; ...@@ -72,7 +72,7 @@ text-decoration: none;
<div id="bar"> <div id="bar">
<div id="menu"> <div id="menu">
<a href="/contest/{{contestid}}">{{contestname}}JwInf 2018</a> <a href="/contest/{{contestid}}">{{contestname}}</a>
</div> </div>
<div> <div>
{{name}} {{name}}
......
Supports Markdown
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