1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00
mycorrhiza/templates/http_stuff.qtpl

43 lines
884 B
Plaintext
Raw Normal View History

2020-08-31 17:52:26 +00:00
{% func BaseHTML(title, body string) %}
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/static/common.css">
<title>{%s title %}</title>
</head>
<body>
{%s= body %}
</body>
</html>
{% endfunc %}
2020-08-31 18:16:22 +00:00
{% func HyphaListHTML(tbody string, pageCount int) %}
2020-08-31 17:52:26 +00:00
<main>
2020-08-31 18:16:22 +00:00
<h1>List of hyphae</h1>
<p>This wiki has {%d pageCount %} hyphae.</p>
2020-08-31 17:52:26 +00:00
<table>
<thead>
<tr>
2020-08-31 18:16:22 +00:00
<th>Full name</th>
<th>Binary part type</th>
2020-08-31 17:52:26 +00:00
</tr>
</thead>
<tbody>
{%s= tbody %}
</tbody>
</table>
</main>
{% endfunc %}
2020-08-31 18:16:22 +00:00
{% func HyphaListRowHTML(hyphaName, binaryMime string, binaryPresent bool) %}
<tr>
<td><a href="/page/{%s hyphaName %}">{%s hyphaName %}</a></td>
{% if binaryPresent %}
<td>{%s binaryMime %}</td>
{% else %}
<td></td>
{% endif %}
</tr>
{% endfunc %}