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

Show that contest is over when the time is up

parent 74901775
...@@ -297,6 +297,10 @@ pub fn show_contest<T: MedalConnection>(conn: &T, contest_id: i32, session_token ...@@ -297,6 +297,10 @@ pub fn show_contest<T: MedalConnection>(conn: &T, contest_id: i32, session_token
} }
} }
if c.duration > 0 {
data.insert("duration".to_string(), to_json(&true));
}
Ok(("contest".to_owned(), data)) Ok(("contest".to_owned(), data))
} }
......
...@@ -86,8 +86,12 @@ ...@@ -86,8 +86,12 @@
{{#if participation_start_date}} {{#if participation_start_date}}
<p> <p>
{{#if time_left}} {{#if duration}}
Verbleibenden Zeit: {{time_left}} {{#if time_left}}
Verbleibenden Zeit: {{time_left}}
{{else}}
Die Zeit ist abgelaufen. Du kannst nun die Aufgaben nicht mehr öffnen.
{{/if}}
{{/if}} {{/if}}
</p> </p>
......
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