comparison templates/bundle/bundle.djhtml @ 178:df160069b769

Show list of bundle versions in reverse order
author dellsystem <ilostwaldo@gmail.com>
date Sat, 20 Oct 2012 23:33:00 -0400
parents 86129d185ddb
children a803a1544126
comparison
equal deleted inserted replaced
177:86129d185ddb 178:df160069b769
76 <p><strong>License:</strong> {{ bundle.free_license }}</p> 76 <p><strong>License:</strong> {{ bundle.free_license }}</p>
77 <p><strong>Latest version number:</strong> {{ bundle.latest_version }}</p> 77 <p><strong>Latest version number:</strong> {{ bundle.latest_version }}</p>
78 {% if previous_versions %} 78 {% if previous_versions %}
79 <h3>Versions</h3> 79 <h3>Versions</h3>
80 <ul> 80 <ul>
81 {% for version in previous_versions %} 81 {% for version in previous_versions reversed %}
82 <li> 82 <li>
83 <a href="{{ bundle.get_absolute_url }}/{{ version }}"> 83 <a href="{{ bundle.get_absolute_url }}/{{ version }}">
84 {% if version == this_version %}<strong>{% endif %} 84 {% if version == this_version %}<strong>{% endif %}
85 Version {{ version }} 85 Version {{ version }}
86 {% if version == this_version %}</strong>{% endif %} 86 {% if version == this_version %}</strong>{% endif %}