Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Updated the locales macro so orphan <li> don't show up (bug 634628)
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbabu committed Jun 29, 2011
1 parent a75fca4 commit 1e2a063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/search/templates/search/locales.html
@@ -1,15 +1,15 @@
{% macro locale_item(locale, count=0, selected=False) %}
<li>
{% if locale %}
<li>
<input id="loc_{{ locale }}" name="locale" type="checkbox"
title="{{ locale_name(locale, native=True, default='') }}"
value="{{ locale|default('unknown', True) }}"
{{ 'checked' if selected else '' }} />
<label for="loc_{{ locale }}" class="bar {{ 'selected' if selected else '' }}" data-value="{{ count }}">
<strong>{{ locale_name(locale) }}</strong>
</label>
</li>
{% endif %}
</li>
{% endmacro %}

{% if locales %}
Expand Down

0 comments on commit 1e2a063

Please sign in to comment.