This commit is contained in:
parent
e5e1ebf875
commit
67c33e0615
3
app.py
3
app.py
@ -60,7 +60,8 @@ def colorify(model):
|
|||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def home():
|
def home():
|
||||||
return render_template('layout.html', search_form=SearchForm(), title='Animes torrents search engine')
|
return render_template('layout.html', search_form=SearchForm(), title='Animes torrents search engine',
|
||||||
|
mysql_disabled=not MYSQL_ENABLED)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/search')
|
@app.route('/search')
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<i class="fa fa-newspaper-o"></i><i> </i>
|
<i class="fa fa-newspaper-o"></i><i> </i>
|
||||||
<span class="is-hidden-mobile">Latest torrents</span>
|
<span class="is-hidden-mobile">Latest torrents</span>
|
||||||
</a>
|
</a>
|
||||||
{% if mysql_disabled %}
|
{% if not mysql_disabled %}
|
||||||
<a class="navbar-item has-tooltip-bottom" data-tooltip="My seeded torrents"
|
<a class="navbar-item has-tooltip-bottom" data-tooltip="My seeded torrents"
|
||||||
href="{{ url_for('list_animes') }}">
|
href="{{ url_for('list_animes') }}">
|
||||||
<i class="fa fa-cloud-download"></i><i> </i>
|
<i class="fa fa-cloud-download"></i><i> </i>
|
||||||
|
Reference in New Issue
Block a user