# HG changeset patch
# User verrierj
# Date 1314784564 -7200
# Node ID ec99af8284f50b8f39d5a58f0b446d8a91cbc92a
# Parent 123aa9bc55a7b142470b7f438cd8d3abba7882b6
Changed how the version number display #4
diff -r 123aa9bc55a7 -r ec99af8284f5 src/ldt/ldt/settings.py
--- a/src/ldt/ldt/settings.py Tue Aug 30 16:57:03 2011 +0200
+++ b/src/ldt/ldt/settings.py Wed Aug 31 11:56:04 2011 +0200
@@ -76,3 +76,4 @@
AUTO_INDEX_AFTER_SAVE = getattr(settings, 'AUTO_INDEX_AFTER_SAVE', True)
+WEB_VERSION = getattr(settings, 'WEB_VERSION', '')
\ No newline at end of file
diff -r 123aa9bc55a7 -r ec99af8284f5 src/ldt/ldt/static/ldt/css/style.css
--- a/src/ldt/ldt/static/ldt/css/style.css Tue Aug 30 16:57:03 2011 +0200
+++ b/src/ldt/ldt/static/ldt/css/style.css Wed Aug 31 11:56:04 2011 +0200
@@ -91,7 +91,6 @@
.version
{
text-align: right;
- color: white;
font-size:9px;
}
diff -r 123aa9bc55a7 -r ec99af8284f5 src/ldt/ldt/templates/ldt/ldt_base.html
--- a/src/ldt/ldt/templates/ldt/ldt_base.html Tue Aug 30 16:57:03 2011 +0200
+++ b/src/ldt/ldt/templates/ldt/ldt_base.html Wed Aug 31 11:56:04 2011 +0200
@@ -11,6 +11,7 @@
+
{% endblock %}
{% block js_declaration %}
@@ -150,8 +151,7 @@
-
{{VERSION}}
-
{{WEB_VERSION}}
+
{% trans "web" %} {{ WEB_VERSION }} | {% trans "platform" %} : {{VERSION}}
{% endblock %}
diff -r 123aa9bc55a7 -r ec99af8284f5 src/ldt/ldt/utils/context_processors.py
--- a/src/ldt/ldt/utils/context_processors.py Tue Aug 30 16:57:03 2011 +0200
+++ b/src/ldt/ldt/utils/context_processors.py Wed Aug 31 11:56:04 2011 +0200
@@ -5,5 +5,6 @@
def ldtcontext(request):
return {'BASE_URL': settings.BASE_URL, 'MEDIA_URL': settings.MEDIA_URL, \
'LDT_MEDIA_PREFIX': settings.LDT_MEDIA_PREFIX, 'WEB_URL': settings.WEB_URL, \
- 'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX, 'VERSION': ldt.get_version() }
+ 'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX, 'VERSION': ldt.get_version(), \
+ 'WEB_VERSION' : settings.WEB_VERSION, }
diff -r 123aa9bc55a7 -r ec99af8284f5 web/ldtplatform/settings.py
--- a/web/ldtplatform/settings.py Tue Aug 30 16:57:03 2011 +0200
+++ b/web/ldtplatform/settings.py Wed Aug 31 11:56:04 2011 +0200
@@ -1,5 +1,6 @@
#@PydevCodeAnalysisIgnore
import os.path
+import ldtplatform
# Django settings for project.
DEBUG = True
@@ -37,6 +38,7 @@
LANGUAGES = (
('fr', ugettext('French')),
+ ('en', ugettext('English')),
)
@@ -185,6 +187,8 @@
AUTO_INDEX_AFTER_SAVE = True
+WEB_VERSION = ldtplatform.get_version()
+
from config import *
if not "LOGIN_URL" in locals():
@@ -205,7 +209,6 @@
GLOBAL_LOG_LEVEL = LOG_LEVEL
if not "GLOBAL_LOG_HANDLERS" in locals():
GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}]
-
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
@@ -218,3 +221,4 @@
# URL that handles the media served from MEDIA_ROOT.
if not "MEDIA_URL" in locals():
MEDIA_URL = BASE_URL + 'static/media/'
+