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
a0ebfe8f
Commit
a0ebfe8f
authored
Jan 31, 2020
by
Robert Czechowski
Browse files
Show that contest is over when the time is up
parent
74901775
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
a0ebfe8f
...
@@ -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
))
}
}
...
...
templates/jwinf/contest.hbs
View file @
a0ebfe8f
...
@@ -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>
...
...
Robert Czechowski
@zgtm
mentioned in issue
#50 (closed)
·
Jan 31, 2020
mentioned in issue
#50 (closed)
mentioned in issue #50
Toggle commit list
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