Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 23, 2024
1 parent 17b8f3b commit cca9daa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
9 changes: 7 additions & 2 deletions contest/quiz/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,13 @@ <h1 class="text-3xl font-bold tracking-tight text-gray-900">{% current_page_titl
{% endblock heading %}
</header>
{% block main %}
<main class="bg-fixed bg-center {% block main_bg_style %}{% endblock main_bg_style %}">
<div class="mx-auto max-w-2xl py-6 px-6 lg:px-8 {% block main_container_bg_style %}bg-gray-100/85 shadow{% endblock main_container_bg_style %}">
<main class="bg-fixed bg-center
{% block main_bg_style %}
{% endblock main_bg_style %}">
<div class="mx-auto max-w-2xl py-6 px-6 lg:px-8
{% block main_container_bg_style %}
bg-gray-100/85 shadow
{% endblock main_container_bg_style %}">
{% block content %}
{% endblock content %}
</div>
Expand Down
7 changes: 5 additions & 2 deletions contest/quiz/templates/contest_review.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{% extends "base.html" %}
{% load my_humanize humanize %}
{% block main_bg_style %}bg-img-contest{% endblock main_bg_style %}
{% block main_container_bg_style %}{% endblock main_container_bg_style %}
{% block main_bg_style %}
bg-img-contest
{% endblock main_bg_style %}
{% block main_container_bg_style %}
{% endblock main_container_bg_style %}
{% block content %}
<aside class="my-4 -mx-6 lg:-mx-8 p-4 sm:px-6 lg:px-8 bg-white shadow">
<p class="prose">提交时刻:{{ response.submit_at }}({{ response.submit_at | naturaltime }})。</p>
Expand Down
4 changes: 3 additions & 1 deletion contest/quiz/templates/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<script type='module' src="{% static 'js/dist/index_and_info.js' %}"></script>
{{ status | json_script:"data:status" }}
{% endblock scripts %}
{% block main_bg_style %}bg-img-info{% endblock main_bg_style %}
{% block main_bg_style %}
bg-img-info
{% endblock main_bg_style %}
{% block content %}
<div class="prose mb-4 prose-a:no-underline">
<h2>成绩</h2>
Expand Down

0 comments on commit cca9daa

Please sign in to comment.