fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable styling language switcher link depending on the destination language
[fnpdjango.git]
/
fnpdjango
/
templates
/
fnpdjango
/
lang_switcher.html
diff --git
a/fnpdjango/templates/fnpdjango/lang_switcher.html
b/fnpdjango/templates/fnpdjango/lang_switcher.html
index
9b725ac
..
e73ee77
100644
(file)
--- a/
fnpdjango/templates/fnpdjango/lang_switcher.html
+++ b/
fnpdjango/templates/fnpdjango/lang_switcher.html
@@
-1,6
+1,6
@@
{% load i18n fnp_lang %}
{% for lc, ln in languages %}
{% if lc != request.LANGUAGE_CODE %}
{% load i18n fnp_lang %}
{% for lc, ln in languages %}
{% if lc != request.LANGUAGE_CODE %}
- <a href="{{ request|get_here_url:lc }}">{{ lc }}</a>
+ <a
class="lang-switcher-{{lc}}"
href="{{ request|get_here_url:lc }}">{{ lc }}</a>
{% endif %}
{% endfor %}
\ No newline at end of file
{% endif %}
{% endfor %}
\ No newline at end of file