1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-12-05 01:04:21 +00:00
royalnet/templates/components/wikibox.html

21 lines
718 B
HTML
Raw Normal View History

2019-01-04 01:29:30 +00:00
<script>
function createpage() {
var key = document.getElementById("input-key").value;
window.location.href = `/wiki/${key}`;
}
</script>
2018-09-13 22:49:22 +00:00
<div class="box">
<div class="upper-box">
Pagine Wiki
</div>
<div class="lower-box">
2019-01-08 18:43:26 +00:00
<ul class="multicolumn">
2018-09-13 22:49:22 +00:00
{% for page in wiki_pages %}
2019-02-03 18:34:17 +00:00
<li class="{% if page.locked %}list-locked{% endif %}"><a href="/wiki/{{ page.key }}">{{ page.key }}</a></li>
2018-09-13 22:49:22 +00:00
{% endfor %}
</ul>
{% if g.user %}
oppure... <input id="input-key" name="key" type="text" placeholder="Nome pagina" class="half"><button onclick="createpage()">Crea</button>
{% endif %}
2018-09-13 22:49:22 +00:00
</div>
</div>