Commit 80a1eef9 authored by Valentin Samir's avatar Valentin Samir

Fix lang attribute in django 1.7

parent 5052bd8d
...@@ -17,6 +17,8 @@ Fixed ...@@ -17,6 +17,8 @@ Fixed
----- -----
* Fix BootsrapForm: placeholder on Input and Textarea only, use class form-control on * Fix BootsrapForm: placeholder on Input and Textarea only, use class form-control on
Input, Select and Textarea. Input, Select and Textarea.
* Fix lang attribute in django 1.7. On html pages, the lang attribute of the <html> was not
present in django 1.7. We use now a methode to display it that is also available in django 1.7
v0.7.1 - 2016-08-24 v0.7.1 - 2016-08-24
......
{% load i18n %}{% load staticfiles %}<!DOCTYPE html> {% load i18n %}{% load staticfiles %}{% get_current_language as LANGUAGE_CODE %}<!DOCTYPE html>
<html{% if request.LANGUAGE_CODE %} lang="{{ request.LANGUAGE_CODE }}"{% endif %}> <html{% if LANGUAGE_CODE %} lang="{{LANGUAGE_CODE}}"{% endif %}>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]--> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment