dbot-tripsit/tripsit/views/factsheet.jade
Georg 03326d7d78
Init
Signed-off-by: Georg <georg@lysergic.dev>
2021-08-24 21:35:25 +02:00

33 lines
821 B
Plaintext

extends ../layout
block content
p.text1
u
b ↳
a(href='/') Index
>
a(href='/factsheet') Factsheets
> #{drug.name}
table.table1
thead
tr
th.theader(style='width: 25%;')
| #{drug.name}
th.theader(style='width: 75%;')
| Info
table.table2
tbody.tbody1
for property, name in drug.properties
- name = name.charAt(0).toUpperCase() + name.slice(1);
tr
td.tlefttext(style='width: 25%;')
b #{name}
td.ttext(style='width: 75%;')
- if (typeof(property) === 'string'){
| #{property}
-} else {
-each line in property
| #{line}
br
-}