switch "browse holes" and "create hole"

master
Aevann1 2022-06-23 03:40:59 +02:00
parent 0c5ddeb1f7
commit 92e72b330b
2 changed files with 3 additions and 3 deletions

View File

@ -19,10 +19,10 @@
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
{% endif %}
{% if v %}
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
{% if v.can_create_hole -%}
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE HOLE</a>
{%- endif %}
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
{% if v.mods(sub.name) %}
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">HOLE SETTINGS</a>
{% endif %}
@ -32,10 +32,10 @@
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/followers">HOLE FOLLOWERS</a>
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">HOLE BLOCKERS</a>
{% else %}
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
{% if v and v.can_create_hole -%}
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE HOLE</a>
{%- endif %}
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
<div class="mt-4">
<h3>Rules:</h3><br>

View File

@ -63,10 +63,10 @@ set VISITORS_HERE_FLAVOR = [
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
{% endif %}
{% if v %}
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
{% if v.can_create_hole -%}
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE HOLE</a>
{%- endif %}
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
{% if v.mods(sub.name) %}
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">HOLE SETTINGS</a>
{% endif %}