mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 20:00:01 +00:00
Using the url_for function
This commit is contained in:
parent
04c9ef6685
commit
1705bfd6ea
|
@ -72,12 +72,12 @@
|
||||||
<li><a href="{% if rss_filter %}{{ url_for('home', page='rss', **rss_filter) }}{% else %}{{ url_for('home', page='rss') }}{% endif %}">RSS</a></li>
|
<li><a href="{% if rss_filter %}{{ url_for('home', page='rss', **rss_filter) }}{% else %}{{ url_for('home', page='rss') }}{% endif %}">RSS</a></li>
|
||||||
{% if config.SITE_FLAVOR == 'nyaa' %}
|
{% if config.SITE_FLAVOR == 'nyaa' %}
|
||||||
<li><a href="https://sukebei.nyaa.si/">Fap</a></li>
|
<li><a href="https://sukebei.nyaa.si/">Fap</a></li>
|
||||||
{% if g.user.is_admin %}
|
|
||||||
<li><a href="/reports">Reports</a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% elif config.SITE_FLAVOR == 'sukebei' %}
|
{% elif config.SITE_FLAVOR == 'sukebei' %}
|
||||||
<li><a href="https://nyaa.si/">Fun</a></li>
|
<li><a href="https://nyaa.si/">Fun</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if g.user.is_admin %}
|
||||||
|
<li><a href="{{ url_for('view_reports') }}">Reports</a></li>
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
|
Loading…
Reference in a new issue