Skip to content
Snippets Groups Projects
Commit 74765a37 authored by Tomasz Wolniewicz's avatar Tomasz Wolniewicz
Browse files

Adding the 'problems' argument to the status page

parent d78c1f9c
No related branches found
No related tags found
1 merge request!5Adding newest commits from the TW fork
...@@ -163,4 +163,9 @@ $data = []; ...@@ -163,4 +163,9 @@ $data = [];
$data['participants'] = $participants; $data['participants'] = $participants;
$data['votingOnly'] = $votingOnly; $data['votingOnly'] = $votingOnly;
$data['candidates'] = $candidates; $data['candidates'] = $candidates;
if (isset($_GET['problems'])) {
$data['problem_switch'] = 1;
} else {
$data['problem_switch'] = 0;
}
echo $twig->render('status.html', $data); echo $twig->render('status.html', $data);
...@@ -209,5 +209,9 @@ function deselectAll(){ ...@@ -209,5 +209,9 @@ function deselectAll(){
}); });
}); });
if ({{problem_switch}} == 1) {
$('.feed-ok').hide();
$('#problem_filter').prop('checked', true);
}
</script> </script>
{% endblock javascripts %} {% endblock javascripts %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment