classic template fixes
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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, {
|
||||
|
Reference in New Issue
Block a user