1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 08:49:59 +00:00

Using the url_for function

This commit is contained in:
nyaazi 2017-05-20 21:53:23 +03:00
parent 04c9ef6685
commit 1705bfd6ea

View file

@ -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>
{% if config.SITE_FLAVOR == 'nyaa' %}
<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' %}
<li><a href="https://nyaa.si/">Fun</a></li>
{% endif %}
{% if g.user.is_admin %}
<li><a href="{{ url_for('view_reports') }}">Reports</a></li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">