Skip to content

Commit

Permalink
Adds current language code for django-cms plugin editor
Browse files Browse the repository at this point in the history
  • Loading branch information
bercab committed Aug 20, 2012
1 parent 8c5b05e commit f2451f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hvad/templates/admin/hvad/change_form.html
Expand Up @@ -34,10 +34,10 @@
<div class="nani-language-tabs">
{% for url,name,code,status in language_tabs %}
{% if status == 'current' %}
<span class="current">{{ name }}{% if current_is_translated and allow_deletion %}<a class="deletelink" href="./delete-translation/{{ code }}/" title="{% trans 'Delete Translation' %}">&nbsp;</a>{% endif %}</span>
<span class="current" title="{{code}}">{{ name }}{% if current_is_translated and allow_deletion %}<a class="deletelink" href="./delete-translation/{{ code }}/" title="{% trans 'Delete Translation' %}">&nbsp;</a>{% endif %}</span>
{% else %}
<span class="{{ status }}"><a href="{{ url }}">{{ name }}</a> {% if status == 'available' and allow_deletion %}<a class="deletelink" href="./delete-translation/{{ code }}/" title="{% trans 'Delete Translation' %}">&nbsp;</a>{% endif %}</span>
{% endif %}
{% endfor %}
</div>
{% endblock %}
{% endblock %}

0 comments on commit f2451f6

Please sign in to comment.