This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Impala category landing pages. Modular code ftw
- Loading branch information
Showing
15 changed files
with
181 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% cache addons %} | ||
<ul class="listing-grid c featured {{ columns }}"> | ||
{% for page in pages %} | ||
{% set first_page = loop.first %} | ||
<section> | ||
{% for addon in page %} | ||
<li> | ||
<div class="item addon"> | ||
<a href="{{ addon.get_url_path(impala=True)|urlparams(src=dl_src) }}"> | ||
<div class="summary"> | ||
<h3>{{ addon.name }}</h3> | ||
<div> | ||
{% if first_page %} | ||
<img src="{{ addon.thumbnail_url }}"> | ||
{% else %} | ||
<img data-defer-src="{{ addon.thumbnail_url }}" | ||
src="{{ media('img/icons/no-preview.png') }}"> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</a> | ||
<div class="more"> | ||
{{ install_button(addon, impala=True, src=src) }} | ||
{{ addon.summary|truncate(250)|nl2br }} | ||
<div class="byline"> | ||
{% trans users=users_list(addon.listed_authors, size=2) %} | ||
by {{ users }} | ||
{% endtrans %} | ||
</div> | ||
<div class="adu"> | ||
{{ _('{0} users')|f(addon.average_daily_users|numberfmt) }} | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</section> | ||
{% endfor %} | ||
</ul> | ||
{% endcache %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters