27 lines
710 B
HTML
27 lines
710 B
HTML
{% set formats = h.get_facet_items_dict('res_format', limit=30) %}
|
|
<style>
|
|
#pop-formats {
|
|
line-height: 1.3;
|
|
padding: 5px 15px 10px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
#pop-formats a + a{
|
|
margin-left: 5px;
|
|
}
|
|
</style>
|
|
<div>
|
|
<h3 style="padding-left: 15px;">Popular Formats</h3>
|
|
<div id="pop-formats">
|
|
|
|
{% for tag in formats %}
|
|
{% set weight = 30 - loop.index %}
|
|
<a href="{% url_for controller='package', action='search', res_format=tag.name %}" rel={{weight}}>{{ h.truncate(tag.display_name, 26) }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript" >
|
|
loadCloud('pop-formats','#33cccc','#003366')
|
|
//loadCloud('pop-formats')
|
|
</script> |