Hide check status in problem detail for hidden subtask
This commit is contained in:
parent
b2a91af011
commit
c36884846d
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
||||||
{% extends "common-content.html" %}
|
{% extends "common-content.html" %}
|
||||||
|
|
||||||
|
{% set has_hidden_subtasks = request.in_contest_mode and request.participation.contest.format.has_hidden_subtasks %}
|
||||||
|
|
||||||
{% block content_media %}
|
{% block content_media %}
|
||||||
{% include "comments/media-css.html" %}
|
{% include "comments/media-css.html" %}
|
||||||
<style>
|
<style>
|
||||||
|
@ -91,7 +94,7 @@
|
||||||
|
|
||||||
{% block title_row %}
|
{% block title_row %}
|
||||||
<div class="problem-title">
|
<div class="problem-title">
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated and not has_hidden_subtasks %}
|
||||||
{% if problem.id in completed_problem_ids %}
|
{% if problem.id in completed_problem_ids %}
|
||||||
<a href="{{ url('user_submissions', problem.code, request.user.username) }}">
|
<a href="{{ url('user_submissions', problem.code, request.user.username) }}">
|
||||||
{% if problem.is_public or request.in_contest_mode %}
|
{% if problem.is_public or request.in_contest_mode %}
|
||||||
|
|
Loading…
Reference in a new issue