mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed various issues with pyhp files
This commit is contained in:
parent
e1eacbb272
commit
a5b407d92f
@ -1,6 +1,6 @@
|
|||||||
bottle>=0.12.16
|
bottle>=0.12.16
|
||||||
waitress>=1.3
|
waitress>=1.3
|
||||||
doreah>=1.2
|
doreah>=1.2.5
|
||||||
nimrodel>=0.4.9
|
nimrodel>=0.4.9
|
||||||
setproctitle>=1.1.10
|
setproctitle>=1.1.10
|
||||||
wand>=0.5.4
|
wand>=0.5.4
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<pyhp save="info.get('replace')" as="credited" />
|
<pyhp save="info.get('replace')" as="credited" />
|
||||||
<pyhp save="info.get('associated')" as="included" />
|
<pyhp save="info.get('associated')" as="included" />
|
||||||
<pyhp save="'#' + str(info.get('position'))" as="positionstring" />
|
<pyhp save="'#' + str(info.get('position'))" as="positionstring" />
|
||||||
<pyhp save="'months'" as="initialrange" />
|
<pyhp save="'month'" as="initialrange" />
|
||||||
|
|
||||||
<!-- includestring -->
|
<!-- includestring -->
|
||||||
<pyhp save="''" as="includestring" />
|
<pyhp save="''" as="includestring" />
|
||||||
@ -57,15 +57,9 @@
|
|||||||
<span><pyhp echo="includestring" /></span>
|
<span><pyhp echo="includestring" /></span>
|
||||||
<p class="stats"><a href="/scrobbles?{encodedartist}"><pyhp echo="info['scrobbles']" /> Scrobbles</a></p>
|
<p class="stats"><a href="/scrobbles?{encodedartist}"><pyhp echo="info['scrobbles']" /> Scrobbles</a></p>
|
||||||
|
|
||||||
<pyhp for="year" in="info['medals']['gold']">
|
<pyhp for="year" in="info['medals']['gold']"><a title="Best Artist in {year}" class="hidelink medal shiny gold" href='/charts_artists?max=50&in={str(year)}'><span><pyhp echo="year" /></span></a></pyhp>
|
||||||
<a title="Best Artist in {year}" class="hidelink medal shiny gold" href='/charts_artists?max=50&in=" + str(year) + "'><span><pyhp echo="year" /></span></a>
|
<pyhp for="year" in="info['medals']['silver']"><a title="Second best Artist in {year}" class="hidelink medal shiny silver" href='/charts_artists?max=50&in={str(year)}'><span><pyhp echo="year" /></span></a></pyhp>
|
||||||
</pyhp>
|
<pyhp for="year" in="info['medals']['bronze']"><a title="Third best Artist in {year}" class="hidelink medal shiny bronze" href='/charts_artists?max=50&in={str(year)}'><span><pyhp echo="year" /></span></a></pyhp>
|
||||||
<pyhp for="year" in="info['medals']['silver']">
|
|
||||||
<a title="Second best Artist in {year}" class="hidelink medal shiny silver" href='/charts_artists?max=50&in=" + str(year) + "'><span><pyhp echo="year" /></span></a>
|
|
||||||
</pyhp>
|
|
||||||
<pyhp for="year" in="info['medals']['bronze']">
|
|
||||||
<a title="Third best Artist in {year}" class="hidelink medal shiny bronze" href='/charts_artists?max=50&in=" + str(year) + "'><span><pyhp echo="year" /></span></a>
|
|
||||||
</pyhp>
|
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<pyhp save="db.trackInfo(track)" as="info" />
|
<pyhp save="db.trackInfo(track)" as="info" />
|
||||||
<!-- preprocessing -->
|
<!-- preprocessing -->
|
||||||
<pyhp save="'#' + str(info.get('position'))" as="positionstring" />
|
<pyhp save="'#' + str(info.get('position'))" as="positionstring" />
|
||||||
<pyhp save="'months'" as="initialrange" />
|
<pyhp save="'month'" as="initialrange" />
|
||||||
<!-- url encode -->
|
<!-- url encode -->
|
||||||
<pyhp save="urihandler.compose_querystring(urihandler.internal_to_uri({'track':track}))" as="encodedtrack" />
|
<pyhp save="urihandler.compose_querystring(urihandler.internal_to_uri({'track':track}))" as="encodedtrack" />
|
||||||
|
|
||||||
@ -33,15 +33,9 @@
|
|||||||
|
|
||||||
<p class="stats"><a href="/scrobbles?{encodedtrack}"><pyhp echo="info['scrobbles']" /> Scrobbles</a></p>
|
<p class="stats"><a href="/scrobbles?{encodedtrack}"><pyhp echo="info['scrobbles']" /> Scrobbles</a></p>
|
||||||
|
|
||||||
<pyhp for="year" in="info['medals']['gold']">
|
<pyhp for="year" in="info['medals']['gold']"><a title="Best Artist in {year}" class="hidelink medal shiny gold" href='/charts_artists?max=50&in={str(year)}'><span><pyhp echo="year" /></span></a></pyhp>
|
||||||
<a title="Best Artist in {year}" class="hidelink medal shiny gold" href='/charts_artists?max=50&in=" + str(year) + "'><span><pyhp echo="year" /></span></a>
|
<pyhp for="year" in="info['medals']['silver']"><a title="Second best Artist in {year}" class="hidelink medal shiny silver" href='/charts_artists?max=50&in={str(year)}'><span><pyhp echo="year" /></span></a></pyhp>
|
||||||
</pyhp>
|
<pyhp for="year" in="info['medals']['bronze']"><a title="Third best Artist in {year}" class="hidelink medal shiny bronze" href='/charts_artists?max=50&in={str(year)}'><span><pyhp echo="year" /></span></a></pyhp>
|
||||||
<pyhp for="year" in="info['medals']['silver']">
|
|
||||||
<a title="Second best Artist in {year}" class="hidelink medal shiny silver" href='/charts_artists?max=50&in=" + str(year) + "'><span><pyhp echo="year" /></span></a>
|
|
||||||
</pyhp>
|
|
||||||
<pyhp for="year" in="info['medals']['bronze']">
|
|
||||||
<a title="Third best Artist in {year}" class="hidelink medal shiny bronze" href='/charts_artists?max=50&in=" + str(year) + "'><span><pyhp echo="year" /></span></a>
|
|
||||||
</pyhp>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user