mirror of
https://github.com/krateng/maloja.git
synced 2025-04-24 12:20:52 +03:00
Some alterations to entity display in featured module
This commit is contained in:
parent
4a87500cd5
commit
424ce0e679
@ -3,7 +3,6 @@
|
||||
|
||||
{% set album = filterkeys.album %}
|
||||
{% set info = dbc.album_info({'album':album}) %}
|
||||
|
||||
{% set encodedalbum = mlj_uri.uriencode({'album':album}) %}
|
||||
|
||||
|
||||
@ -23,7 +22,9 @@
|
||||
</td>
|
||||
<td class="text">
|
||||
<span>{{ links.links(album.artists) }}</span><br/>
|
||||
{% if condensed %}<a href="/album?{{ encodedalbum }}">{% endif %}
|
||||
<h1 id="main_entity_name" class="headerwithextra">{{ info.album.albumtitle | e }}</h1>
|
||||
{%- if condensed -%}</a>{% endif %}
|
||||
{# awards.certs(album) #}
|
||||
<span class="rank"><a href="/charts_albums?max=100">#{{ info.position }}</a></span>
|
||||
<br/>
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
{% set artist = filterkeys.artist %}
|
||||
{% set info = db.artist_info(artist=artist) %}
|
||||
{% set encodedartist = mlj_uri.uriencode({'artist':artist}) %}
|
||||
|
||||
{% set credited = info.get('replace') %}
|
||||
{% set included = info.get('associated') %}
|
||||
@ -31,10 +32,12 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text">
|
||||
{% if condensed %}<a href="/artist?{{ encodedartist }}">{% endif %}
|
||||
<h1 id="main_entity_name" class="headerwithextra">{{ info.artist | e }}</h1>
|
||||
{%- if condensed -%}</a>{% endif %}
|
||||
{% if competes and info['scrobbles']>0 %}<span class="rank"><a href="/charts_artists?max=100">#{{ info.position }}</a></span>{% endif %}
|
||||
<br/>
|
||||
{% if competes and included %}
|
||||
{% if competes and included and (not condensed) %}
|
||||
<span>associated: {{ links.links(included) }}</span>
|
||||
{% elif not competes %}
|
||||
<span>Competing under {{ links.link(credited) }} (#{{ info.position }})</span>
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
{% set track = filterkeys.track %}
|
||||
{% set info = dbc.track_info({'track':track}) %}
|
||||
{% set encodedtrack = mlj_uri.uriencode({'track':track}) %}
|
||||
|
||||
{% import 'partials/awards_track.jinja' as awards %}
|
||||
|
||||
@ -22,8 +23,10 @@
|
||||
</td>
|
||||
<td class="text">
|
||||
<span>{{ links.links(track.artists) }}</span><br/>
|
||||
{% if condensed %}<a href="/track?{{ encodedtrack }}">{% endif %}
|
||||
<h1 id="main_entity_name" class="headerwithextra">{{ info.track.title | e }}</h1>
|
||||
{{ awards.certs(track) }}
|
||||
{%- if condensed -%}</a>{% endif %}
|
||||
{%- if not condensed -%}{{ awards.certs(track) }}{% endif %}
|
||||
<span class="rank"><a href="/charts_tracks?max=100">#{{ info.position }}</a></span>
|
||||
<br/>
|
||||
{% if info.track.album %}
|
||||
|
@ -24,9 +24,11 @@
|
||||
{% for t in entitytypes -%}
|
||||
<section class="stat_module_featured featured_{{ t.identifier }}" style="display:none;">
|
||||
{%- with filterkeys = t.filterkeys -%}
|
||||
{%- with condensed = true -%}
|
||||
|
||||
{% include 'partials/' + t.template %}
|
||||
{%- endwith -%}
|
||||
{%- endwith -%}
|
||||
</section>
|
||||
{%- endfor %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user