Strategická: Zobrazení pravidel

This commit is contained in:
Jiří Kalvoda 2022-09-23 13:45:22 +02:00
parent 9704c02849
commit 913d35db94
2 changed files with 6 additions and 0 deletions

View file

@ -25,3 +25,5 @@ cp ../klient/jsmn.h static/client
)
unlink static/client.git
ln -sr static/client/.git static/client.git
pandoc ../pravidla.md --to=pdf -o static/pravidla.pdf

View file

@ -255,6 +255,10 @@ def web_index():
b.a(href=u)(u)
b.br()
b.line().li("Git: ", b._pre(f"git clone {app.url_for('static', filename='client.git', _external=True)}", style="margin: 0pt 0pt"))
b.h3("Pravidla")
with b.p():
u = app.url_for('static', filename='pravidla.pdf')
b.a(href=u)("V PDF")
return b.print_file()