add version information to "Powered by" footer text #194

Merged
merged 2 commits into from May 5, 2012
@@ -0,0 +1 @@
+__version__='1.1'
@@ -1,4 +1,5 @@
from django.conf import settings
+from geonode import __version__
def resource_urls(request):
return dict(
@@ -8,4 +9,5 @@ def resource_urls(request):
GOOGLE_API_KEY = settings.GOOGLE_API_KEY,
SITENAME = settings.SITENAME,
REGISTRATION_OPEN = settings.REGISTRATION_OPEN,
+ VERSION = __version__,
)
@@ -78,7 +78,7 @@
<div class="wrap selfclear">
{% block footer %}
<div class="onecol">
- Powered by <a href="http://geonode.org">{% trans "GeoNode" %}</a>
+ Powered by <a href="http://geonode.org">{% trans "GeoNode" %} {{VERSION}}</a>
| <strong>{% trans "Need Help?" %}</strong>
<a href="{% url geonode.views.static "help" %}">{% trans "Help" %}</a>
| <a href="{% url geonode.views.developer %}">{% trans "For Developers" %}</a>
View
@@ -1,9 +1,10 @@
from setuptools import setup, find_packages
import pkg_resources
import sys, os
+from geonode import __version__
name='GeoNodePy'
-version = "1.1"
+version = __version__
req = pkg_resources.Requirement.parse(name)
setup(name=name,