classic template fixes
This commit is contained in:
@@ -98,9 +98,7 @@
|
|||||||
let info_fields = (
|
let info_fields = (
|
||||||
("study_programme", study_programme, false),
|
("study_programme", study_programme, false),
|
||||||
("study_branch", study_branch, false),
|
("study_branch", study_branch, false),
|
||||||
(
|
("author", author, true),
|
||||||
if not is_none(author) and author.contains(", ") {"authors" } else { "author" }, author, true
|
|
||||||
),
|
|
||||||
("supervisor", supervisor, false),
|
("supervisor", supervisor, false),
|
||||||
)
|
)
|
||||||
context {
|
context {
|
||||||
|
@@ -11,14 +11,8 @@
|
|||||||
|
|
||||||
content
|
content
|
||||||
) = {
|
) = {
|
||||||
let force_langs = ("cs", "en");
|
|
||||||
assert_not_none(title, "title");
|
assert_not_none(title, "title");
|
||||||
assert_dict_has(force_langs, title, "title");
|
assert_dict_has((language,), 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");
|
|
||||||
|
|
||||||
mainpage(faculty_id, language, none, title, author, supervisor, study_programme, study_branch);
|
mainpage(faculty_id, language, none, title, author, supervisor, study_programme, study_branch);
|
||||||
default_styling(true, faculty_color, {
|
default_styling(true, faculty_color, {
|
||||||
|
Reference in New Issue
Block a user