This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move div.item out to an inclusion tag
- Loading branch information
Showing
3 changed files
with
48 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% cache addons %} | ||
{% for addon in addons %} | ||
{% cache addon %} | ||
<div class="item"> | ||
{{ install_button(addon) }} | ||
<h3> | ||
<a href="{{ addon.get_url_path() }}">{{ addon.name }}</a> | ||
<span> | ||
{% trans users=users_list(addon.authors.all()) %} | ||
by {{ users }} | ||
{% endtrans %} | ||
</span> | ||
</h3> | ||
<a href="{{ addon.get_url_path() }}"> | ||
<img class="icon" width="32" height="32" src="{{ addon.icon_url }}" | ||
alt="{{ addon.name }}"> | ||
</a> | ||
<blockquote> | ||
{{ addon.description|truncate(250) }} | ||
</blockquote> | ||
<div class="meta"> | ||
{{ addon|reviews_link }} | ||
<span class="downloads"> | ||
{% with num=addon.weekly_downloads %} | ||
{# L10n: {0} is the number of downloads. #} | ||
{{ ngettext("<strong>{0}</strong> weekly download", | ||
"<strong>{0}</strong> weekly downloads", | ||
num)|f(num|numberfmt)|safe }} | ||
{% endwith %} | ||
</span> | ||
<span class="updated"> | ||
{{ _('Updated {0}')|f(addon.last_updated|datetime) }} | ||
</span> | ||
{{ support_addon(addon) }} | ||
</div> | ||
</div> | ||
{% endcache %} | ||
{% endfor %} | ||
{% endcache %} |