30 lines
794 B
HTML
30 lines
794 B
HTML
{% set tags = h.get_facet_items_dict('tags', limit=30) %}
|
|
<style>
|
|
#pop-tags {
|
|
line-height: 1.3;
|
|
padding: 5px 15px 10px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
#pop-tags a + a{
|
|
margin-left: 5px;
|
|
}
|
|
</style>
|
|
<div>
|
|
<h3 style="padding-left: 15px;">{{ _('Popular Tags') }}</h3>
|
|
<div id="pop-tags">
|
|
|
|
{% for tag in tags %}
|
|
{% set weight = 30 - loop.index %}
|
|
<a href="{% url_for controller='package', action='search', tags=tag.name %}" rel={{weight}}>{{ h.truncate(tag.display_name, 26) }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
<p style="float: right; margin-bottom: 15px;">
|
|
<a href="/tag">See All {{_('Tags')}}</a>
|
|
</p>
|
|
</div>
|
|
|
|
<script type="text/javascript" >
|
|
loadCloud('pop-tags','#99ccff', '#003399')
|
|
//loadCloud('pop-tags')
|
|
</script> |