1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix locked pages in wiki (thanks @catstolker)

This commit is contained in:
Steffo 2019-02-06 16:34:25 +01:00
parent d828319897
commit c21a66798f

View file

@ -53,6 +53,10 @@
</form> </form>
</div> </div>
{% elif wiki_page.locked %} {% elif wiki_page.locked %}
<div class="wiki-locked">
<span>🔒 Pagina bloccata: non possono essere effettuate ulteriori modifiche.</span>
</div>
{% else %}
{% if g.user %} {% if g.user %}
<div class="wiki-edit"> <div class="wiki-edit">
<h4>Modifica</h4> <h4>Modifica</h4>
@ -63,10 +67,6 @@
</form> </form>
</div> </div>
{% endif %} {% endif %}
{% else %}
<div class="wiki-locked">
<span>🔒 Pagina bloccata: non possono essere effettuate ulteriori modifiche.</span>
</div>
{% endif %} {% endif %}
{% if wiki_page is not none %} {% if wiki_page is not none %}
{% if g.user.role == "Admin" %} {% if g.user.role == "Admin" %}