Browse Source

Merge branch 'sksp2022-strategicka' of gitea.ks.matfyz.cz:KSP/ksp into sksp2022-strategicka

master
David Klement 2 years ago
parent
commit
a79fc82f20
  1. 2
      server/bin/build
  2. 4
      server/hra/web/pages.py

2
server/bin/build

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

4
server/hra/web/pages.py

@ -255,6 +255,10 @@ def web_index():
b.a(href=u)(u) b.a(href=u)(u)
b.br() 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.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() return b.print_file()

Loading…
Cancel
Save