1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-21 16:50:01 +00:00

Add torrent counter on profile page (#409) (#513)

This commit is contained in:
Tadeo Kondrak 2018-07-17 05:52:54 -06:00 committed by Anna-Maria Meriniemi
parent 2bf96196cb
commit ef7ff1b9ce
2 changed files with 4 additions and 1 deletions

View file

@ -151,6 +151,9 @@
<div class="row">
<h3>
Browsing <span class="text-{{ user.userlevel_color }}" data-toggle="tooltip" title="{{ user.userlevel_str }}">{{ user.username }}</span>'{{ '' if user.username[-1] == 's' else 's' }} torrents
{% if torrent_query.total is number and not search.term: %}
({{ torrent_query.total }})
{% endif %}
</h3>
{% include "search_results.html" %}

View file

@ -1,6 +1,6 @@
import base64
import os
from urllib.parse import urlencode, quote
from urllib.parse import quote, urlencode
import flask
from flask import current_app as app