1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed use of custom page sizes and more links

This commit is contained in:
Krateng 2019-06-17 15:45:00 +02:00
parent a83f2c3cf0
commit 47f13028c4
3 changed files with 9 additions and 9 deletions

View File

@ -66,7 +66,7 @@ def module_scrobblelist(page=0,perpage=100,max_=None,pictures=False,shortTimeDes
html += "</table>" html += "</table>"
if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs)
return (html,len(scrobbles),representative) return (html,len(scrobbles),representative)
@ -109,7 +109,7 @@ def module_pulse(page=0,perpage=100,max_=None,**kwargs):
html += "</tr>" html += "</tr>"
html += "</table>" html += "</table>"
if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs)
return html return html
@ -153,7 +153,7 @@ def module_performance(page=0,perpage=100,max_=None,**kwargs):
html += "</tr>" html += "</tr>"
html += "</table>" html += "</table>"
if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs)
return html return html
@ -230,7 +230,7 @@ def module_trackcharts(page=0,perpage=100,max_=None,**kwargs):
prev = e prev = e
html += "</table>" html += "</table>"
if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs)
return (html,representative) return (html,representative)
@ -309,7 +309,7 @@ def module_artistcharts(page=0,perpage=100,max_=None,**kwargs):
html += "</table>" html += "</table>"
if max_ is None: html += module_paginate(page=page,pages=pages,**kwargs) if max_ is None: html += module_paginate(page=page,pages=pages,perpage=perpage,**kwargs)
return (html, representative) return (html, representative)
@ -528,9 +528,9 @@ def module_trackcharts_tiles(**kwargs):
def module_paginate(page,pages,**keys): def module_paginate(page,pages,perpage,**keys):
unchangedkeys = internal_to_uri({**keys}) unchangedkeys = internal_to_uri({**keys,"perpage":perpage})
html = "<div class='paginate'>" html = "<div class='paginate'>"

View File

@ -16,7 +16,7 @@
</td> </td>
<td class="text"> <td class="text">
<h1>KEY_ARTISTNAME</h1> <h1>KEY_ARTISTNAME</h1>
<span class="rank"><a href="/charts_artists?max=100">KEY_POSITION</a></span> <span class="rank"><a href="/charts_artists">KEY_POSITION</a></span>
<br/> <br/>
<span>KEY_ASSOCIATED</span> <span>KEY_ASSOCIATED</span>
<p class="stats"><a href="/scrobbles?artist=KEY_ENC_ARTISTNAME">KEY_SCROBBLES Scrobbles</a></p> <p class="stats"><a href="/scrobbles?artist=KEY_ENC_ARTISTNAME">KEY_SCROBBLES Scrobbles</a></p>

View File

@ -16,7 +16,7 @@
</td> </td>
<td class="text"> <td class="text">
<span>KEY_ARTISTS</span><br/> <span>KEY_ARTISTS</span><br/>
<h1>KEY_TRACKTITLE</h1> KEY_CERTS <span class="rank"><a href="/charts_tracks?max=100">KEY_POSITION</a></span> <h1>KEY_TRACKTITLE</h1> KEY_CERTS <span class="rank"><a href="/charts_tracks">KEY_POSITION</a></span>
<p class="stats"><a href="/scrobbles?KEY_SCROBBLELINK">KEY_SCROBBLES Scrobbles</a></p> <p class="stats"><a href="/scrobbles?KEY_SCROBBLELINK">KEY_SCROBBLES Scrobbles</a></p>