From 35c7914b94248766af45b156ef575a8225d5867c Mon Sep 17 00:00:00 2001 From: HenryGBC Date: Mon, 20 Mar 2017 15:35:41 -0430 Subject: [PATCH] Fixed Favicon, Add Doctype, and add dynamic Lang in html --- alplora/static/alplora/img/favicon.ico | Bin 1150 -> 3006 bytes alplora/templates/alplora/index.html | 8 ++++++-- alplora/views.py | 11 ++++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) mode change 100755 => 100644 alplora/static/alplora/img/favicon.ico diff --git a/alplora/static/alplora/img/favicon.ico b/alplora/static/alplora/img/favicon.ico old mode 100755 new mode 100644 index 9cd0fe78ee9c3e0e2faa173823238d4790a3cf80..395ae5df58cb044e996810cf9600a0bea97bc7ac GIT binary patch literal 3006 zcmeHJO-vI(6dun;y_iNlm?DY6M52jaIB7%=Cg{n;qk7}&LE{1ZNm0W^69w@HO+Y23 zA_Pr5Xsm^TiJ>6X1`)P_mbTjly0D9-g{A$RnL1?G)HWndG^XEX_RYNa=9{1VDmb5M!n&_6T}jM1@;U$?Dc<^COuw=bt$* z%-)5_qFgLrBlTRpFOt%}Scy9=ukjz$haRSw}wsjZ2^S*id zB#hqfm~hD}2l^DW+zEj7j}dYth3i)(jQJLE^O_&8dtzvyvCb>`V-*~ls^i8L39KGQ zbUv5SWzY5zi+gXG8?|SBNF-K`Zh7b3jwl?IM}XDYRzJz>&F;{d(_ZY@;>7VoLx{?` zdqC_p%J57Q4VNWeE2i)2lwp4sS#xo_6kIw#&U3Ne`}wdrh(2eW=1-@wN{EEbef@j> z*A6W(`Rdhp%#ZE`!Fse<7#&toweKS;%iVZIYhNrl-_4<7XFtj;F0?%k6^j;&nvQnL Z$9nls_r7R{m553i_=hqe{)7LP{0a0#nDhVu literal 1150 zcmb_c+e$(~6rG?C@G0m*nHg%CU93ooBlPnOXd$D%T(wKI=pJuoeB70%4E`FLS-cWMN5>GE30Z&5~M zpGqr$Da#ohkMeLlJY^8LN+EcY#>Hg{CUZ=#-!~-U?EDAUw`l}|RB6t`W4a8_JA5Ze z8PEDS^p(%c=d;~yZY5xMB;asKShs!4{W831G77s>f^%2G_KpPaQ8}O1AQtNtW-qm+ zd)4R#zC6s+F&K;@`iI4$9T*Xd`)7OXrF&;NY&X2Tz5n7RltCz*`Df=WpK@RAY5}&5 y?_!+CS32L_r=g~Ikg~d2@{h~Z$__g{wU6Hho0scLx_525X)?;D- diff --git a/alplora/templates/alplora/index.html b/alplora/templates/alplora/index.html index 6b0285fd..41f3f261 100644 --- a/alplora/templates/alplora/index.html +++ b/alplora/templates/alplora/index.html @@ -1,5 +1,8 @@ {% load staticfiles i18n%} - + + + + @@ -500,4 +503,5 @@
- \ No newline at end of file + + \ No newline at end of file diff --git a/alplora/views.py b/alplora/views.py index d9db6f12..a07457cf 100644 --- a/alplora/views.py +++ b/alplora/views.py @@ -1,8 +1,17 @@ from django.views.generic import TemplateView - +from django.utils.translation import get_language class IndexView(TemplateView): template_name = "alplora/index.html" + + def get_context_data(self, *args, **kwargs): + context = super(IndexView, self).get_context_data(**kwargs) + language = get_language() + context.update({ + 'language': language + }) + return context + class LoginView(TemplateView): template_name = "alplora/login.html"