[h1 $(l10n therapy)]
[div .patient
- [h2 . [a "/cards/#{id%.*}.vcf" ⬅ $(VCF FN |HTML)]]
+ [h2 . [a "/cards/#${id%.*}.vcf" ⬅ $(VCF FN |HTML)]]
]
[div .therapies
| sed -E ':X;N;$!bX; s;^[\n ]+;;; s;[\n ]+$;;; s;(\n.*\n|\n); - ;;'
)"
if [ "${tpy%.*}.${tpy#*.}" = "${id}" ]; then
- printf '[a .item .therapy .current href="/therapies/%s" . %s]' \
+ printf '[a .item .therapy .current href="/therapies/%s" . %s] ' \
"${tpy%.*}/${tpy#*.}" "$(HTML "${tpydates:--}")"
else
- printf '[a .item .therapy href="/therapies/%s" . %s]' \
+ printf '[a .item .therapy href="/therapies/%s" . %s] ' \
"${tpy%.*}/${tpy#*.}" "$(HTML "${tpydates:--}")"
fi
- done |sort -r
+ done |sort -n
)
+ [a .item .therapy href="/therapies/${id%%.*}/new" . +]
]
EOF