~michael.nelson/ubuntu-webcatalog/1267731-import-sca-apps-error

« back to all changes in this revision

Viewing changes to src/webcatalog/templates/webcatalog/screenshot_widget.html

  • Committer: Anthony Lenton
  • Date: 2013-02-27 15:32:56 UTC
  • mfrom: (176.1.2 use-thumbnails)
  • Revision ID: anthony.lenton@canonical.com-20130227153256-n183iopl4nqyryn6
[r=michael.nelson] Made use of the recent thumbnailing feature in sca.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% load url from future %}
 
2
{% load webcatalog %}
2
3
<div id="screenshots_placeholder">
3
4
{% if application.screenshots|length_is:0 %}
4
5
    <img src="http://screenshots.ubuntu.com/thumbnail-with-version/{{ application.package_name }}/ignored" />
6
7
    <div class="carousel-wrapper">
7
8
        <div id="screenshots-carousel" class="carousel">
8
9
            <ol class="carouselol">{% for screenshot in application.screenshots %}
9
 
                <li class="slide"><img src="{{ screenshot }}" /></li>{% endfor %}
 
10
                <li class="slide"><img src="{{ screenshot|thumbnail_url }}" /></li>{% endfor %}
10
11
            </ol>
11
12
        </div>
12
13
    </div>