classic template fixes

This commit is contained in:
2025-10-02 15:26:55 +02:00
parent 85a6ed8d44
commit 768ba54856
2 changed files with 2 additions and 10 deletions

View File

@@ -98,9 +98,7 @@
let info_fields = (
("study_programme", study_programme, false),
("study_branch", study_branch, false),
(
if not is_none(author) and author.contains(", ") {"authors" } else { "author" }, author, true
),
("author", author, true),
("supervisor", supervisor, false),
)
context {

View File

@@ -11,14 +11,8 @@
content
) = {
let force_langs = ("cs", "en");
assert_not_none(title, "title");
assert_dict_has(force_langs, title, "title");
assert_not_none(study_programme, "study programme");
assert_in_arr(language, study_programme, "study programme");
assert_not_none(study_branch, "study branch");
assert_in_arr(language, study_branch, "study branch");
assert_dict_has((language,), title, "title");
mainpage(faculty_id, language, none, title, author, supervisor, study_programme, study_branch);
default_styling(true, faculty_color, {