Files
sport-prog-club/app/templates/course.html
T
Кирилл ЯценкоandClaude Opus 5 f1ce72876e
Выкатка / deploy (push) Successful in 2m0s
Уведомления, ошибки площадок и мелочи страниц — тоже на трёх языках
Переведены сообщения бота и уведомлений, ошибки Codeforces, LeetCode и OIDC
(они видны студенту на странице аккаунтов), подписи слотов курса, месяцы
на тепловой карте, размеры файлов.

Фоновые задачи говорят на языке портала: контекстная переменная языка теперь
пуста по умолчанию и разворачивается в DEFAULT_LANGUAGE — у рассылки нет
запроса, а значит, и выбранного языка.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 20:40:47 +05:00

47 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "base.html" %}
{% from "_ui.html" import empty %}
{% block title %}{{ settings.course_title or _("Курс") }} — {{ settings.app_name }}{% endblock %}
{% block content %}
<div class="page-head">
<div>
<p class="eyebrow">{{ _("курс") }}</p>
<h1>{{ settings.course_title or _("Курс") }}</h1>
<p class="sub">{{ settings.course_subtitle or _("Конспекты лекций, практики и домашние задания по неделям.") }}</p>
</div>
<div class="row" style="gap:8px">
<a class="btn ghost small" href="/course/about">{{ icon("book") }} {{ _("О курсе") }}</a>
<a class="btn ghost small" href="/course/authors">{{ icon("users") }} {{ _("Авторы") }}</a>
</div>
</div>
{% if error %}<div class="flash err">{{ icon("alert") }}<span>{{ error }}</span></div>{% endif %}
{% if weeks %}
<div class="grid two">
{% for week in weeks %}
<div class="card stretch">
<div class="row between">
<h3 style="margin:0"><a href="{{ week.url }}">{{ week.title }}</a></h3>
{% if not week.slots %}<span class="badge" title="{{ _("материалы ещё не выложены") }}">{{ _("впереди") }}</span>{% endif %}
</div>
{% if week.lecture_title %}
<p class="small" style="margin:8px 0 0"><span class="muted">{{ _("лекция:") }}</span> {{ week.lecture_title }}</p>
{% endif %}
{% if week.seminar_title %}
<p class="small" style="margin:4px 0 0"><span class="muted">{{ _("семинар:") }}</span> {{ week.seminar_title }}</p>
{% endif %}
{% if week.slots %}
<div class="row push-bottom" style="gap:6px; flex-wrap:wrap">
{% for slot in week.slots %}
<a class="btn ghost small" href="{{ week.url }}/{{ slot.key }}">{{ _(slot.label) }}</a>
{% endfor %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% else %}
<div class="card">{{ empty("layers", _("Курс ещё не выгружен на портал.")) }}</div>
{% endif %}
{% endblock %}