Enable styling language switcher link depending on the destination language 0.1.13
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 14 Jan 2014 09:46:18 +0000 (10:46 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 14 Jan 2014 09:46:18 +0000 (10:46 +0100)
fnpdjango/templates/fnpdjango/lang_switcher.html
setup.py

index 9b725ac..e73ee77 100644 (file)
@@ -1,6 +1,6 @@
 {% 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
index 25a745c..2a1d81e 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_trees(package_dir, paths):
 
 setup(
     name='fnpdjango',
-    version='0.1.12',
+    version='0.1.13',
     author='Radek Czajka',
     author_email='radekczajka@nowoczesnapolska.org.pl',
     url = '',