mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-07 00:15:10 +01:00
Stats on total public tag pages
This commit is contained in:
@@ -427,7 +427,8 @@ def tags(userkey):
|
|||||||
alltags.append({'tag': tag, 'publictag': publictag, 'total': total})
|
alltags.append({'tag': tag, 'publictag': publictag, 'total': total})
|
||||||
totaltags = len(alltags)
|
totaltags = len(alltags)
|
||||||
totalbookmarks = Bookmark.select().where(Bookmark.userkey == userkey).count()
|
totalbookmarks = Bookmark.select().where(Bookmark.userkey == userkey).count()
|
||||||
return render_template('tags.html', tags=alltags, totaltags=totaltags, totalbookmarks=totalbookmarks, userkey=userkey)
|
totalpublic = PublicTag.select().where(PublicTag.userkey == userkey).count()
|
||||||
|
return render_template('tags.html', tags=alltags, totaltags=totaltags, totalpublic=totalpublic, totalbookmarks=totalbookmarks, userkey=userkey)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/<userkey>/tag/<tag>')
|
@app.route('/<userkey>/tag/<tag>')
|
||||||
|
|||||||
@@ -21,6 +21,14 @@
|
|||||||
{{ totaltags }}
|
{{ totaltags }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Public tag pages
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ totalpublic }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
Bookmarks
|
Bookmarks
|
||||||
|
|||||||
Reference in New Issue
Block a user