mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +00:00
21 lines
No EOL
718 B
HTML
21 lines
No EOL
718 B
HTML
<script>
|
|
function createpage() {
|
|
var key = document.getElementById("input-key").value;
|
|
window.location.href = `/wiki/${key}`;
|
|
}
|
|
</script>
|
|
<div class="box">
|
|
<div class="upper-box">
|
|
Pagine Wiki
|
|
</div>
|
|
<div class="lower-box">
|
|
<ul class="multicolumn">
|
|
{% for page in wiki_pages %}
|
|
<li class="{% if page.locked %}list-locked{% endif %}"><a href="/wiki/{{ page.key }}">{{ page.key }}</a></li>
|
|
{% 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 %}
|
|
</div>
|
|
</div> |