diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2017-02-15 19:30:41 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2017-05-02 21:13:56 +0200 |
commit | 457f14f1cef3c7ed50d2bf2dcaf10cfce7da63dc (patch) | |
tree | 4613f4ae8ba5e4a924ff8c43bcf6e92e1213dea1 | |
parent | 353f803c4d0be7f4803873cd76359115303a4bca (diff) | |
download | archweb-457f14f1cef3c7ed50d2bf2dcaf10cfce7da63dc.tar.gz archweb-457f14f1cef3c7ed50d2bf2dcaf10cfce7da63dc.zip |
templates: fix extranous comma in listings
-rw-r--r-- | templates/packages/details_depend.html | 2 | ||||
-rw-r--r-- | templates/packages/details_relatedto.html | 2 | ||||
-rw-r--r-- | templates/packages/package_details.html | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/templates/packages/details_depend.html b/templates/packages/details_depend.html index 5e27374b..f471bc66 100644 --- a/templates/packages/details_depend.html +++ b/templates/packages/details_depend.html @@ -1,5 +1,5 @@ {% load details_link %}<li>{% if depend.pkg == None %} -{% if depend.providers %}{{ depend.dep.name }}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} <span class="virtual-dep">({% for pkg in depend.providers %}{% details_link pkg %}{% if not loop.last %}, {% endif %}{% endfor %})</span> +{% if depend.providers %}{{ depend.dep.name }}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} <span class="virtual-dep">({% for pkg in depend.providers %}{% details_link pkg %}{% if not forloop.last %}, {% endif %}{% endfor %})</span> {% else %}{{ depend.dep.name }}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} <span class="virtual-dep">(virtual)</span> {% endif %}{% else %} {% details_link depend.pkg %}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} diff --git a/templates/packages/details_relatedto.html b/templates/packages/details_relatedto.html index c22dfb7f..560a67f8 100644 --- a/templates/packages/details_relatedto.html +++ b/templates/packages/details_relatedto.html @@ -1,3 +1,3 @@ {% load details_link %}{% for related in all_related %}{% with best_satisfier=related.get_best_satisfier %} -<span class="related">{% if best_satisfier == None %}{{ related.name }}{% else %}{% details_link best_satisfier %}{% endif %}{{ related.comparison|default:'' }}{{ related.version|default:'' }}{% if not loop.last %}, {% endif %}</span> +<span class="related">{% if best_satisfier == None %}{{ related.name }}{% else %}{% details_link best_satisfier %}{% endif %}{{ related.comparison|default:'' }}{{ related.version|default:'' }}{% if not forloop.last %}, {% endif %}</span> {% endwith %}{% endfor %} diff --git a/templates/packages/package_details.html b/templates/packages/package_details.html index c0a066f2..d7c142e1 100644 --- a/templates/packages/package_details.html +++ b/templates/packages/package_details.html @@ -87,7 +87,7 @@ {% with splits=pkg.split_packages %}{% if splits %} <tr> <th>Split Packages:</th> - <td class="wrap relatedto">{% for s in splits %}<span class="related">{% details_link s %}{% if not loop.last %}, {% endif %}</span>{% endfor %}</td> + <td class="wrap relatedto">{% for s in splits %}<span class="related">{% details_link s %}{% if not forloop.last %}, {% endif %}</span>{% endfor %}</td> </tr> {% endif %}{% endwith %} {% else %} @@ -117,7 +117,7 @@ <th>Groups:</th> <td class="wrap">{% for g in groups %} <a href="/groups/{{ pkg.arch.name }}/{{ g.name }}/" - title="Group details for {{ g.name }}">{{ g.name }}</a>{% if not loop.last %}, {% endif %}{% endfor %} + title="Group details for {{ g.name }}">{{ g.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %} </td> </tr> {% endif %}{% endwith %} @@ -143,7 +143,7 @@ <tr> <th>Reverse Conflicts:</th> <td class="wrap relatedto">{% for conflict in rev_conflicts %} - <span class="related">{% details_link conflict %}{% if not loop.last %}, {% endif %}</span>{% endfor %}</td> + <span class="related">{% details_link conflict %}{% if not forloop.last %}, {% endif %}</span>{% endfor %}</td> </tr> {% endif %}{% endwith %} <tr> |