mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
some fixes after review
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user