some fixes after review

This commit is contained in:
jorenchik
2024-10-26 14:01:49 +03:00
parent bb2ddd8cf5
commit 9367f9a6e4
4 changed files with 252 additions and 167 deletions

View File

@@ -130,6 +130,7 @@
if caption == "" {
caption = items.pos().first()
}
longtable(
titles: (
"Ievades/izvades vērtības nosaukums",
@@ -234,9 +235,25 @@
link_str,
date,
) = {
if link_str == "" {
[#author #title Aplūkots #date.display("[day].[month].[year]")]
} else {
[#author #title Pieejams: #link(link_str) aplūkots #date.display("[day].[month].[year]")]
}
let author_part = ""
if author != "" {
author_part = [#author. ]
}
let title_part = ""
if title != "" {
title_part = [#title. ]
}
let link_part = ""
if link_str != "" {
link_part = [Pieejams: #link(link_str). ]
}
let date_part = ""
if date != none {
date_part = [Aplūkots #date.display("[day].[month].[year]"). ]
}
[#author_part#title_part#link_part#date_part]
}