Commit 8c4143eb authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

Add current version in footer via context

parent a6fbc327
VERSION = '0.9.8'
if __name__ == "__main__":
print VERSION
#
# -*- coding: utf-8 -*- vim:fileencoding=utf-8:
# Copyright © 2010-2012 Greek Research and Technology Network (GRNET S.A.)
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD
# TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
# FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
# OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
from django.conf import settings
def settings_vars(context):
# return the value you want as a dictionnary. you may add multiple values in there.
return {
'VERSION': settings.SW_VERSION,
}
......@@ -193,13 +193,13 @@ CELERY_CONCURRENCY = 1
# List of modules to import when celery starts.
CELERY_IMPORTS = ("flowspec.tasks", )
SERVER_EMAIL = "GRNET FoD Service <noreply@grnet.gr>"
SERVER_EMAIL = "GRNET FoD Service <noreply@example.com>"
EMAIL_SUBJECT_PREFIX = "[FoD] "
LOG_FILE_LOCATION = here("log")
EXPIRATION_NOTIFY_DAYS = 4
PREFIX_LENGTH = 29
PREFIX_LENGTH = 29
POLL_SESSION_UPDATE = 60.0
BROKER_URL = "beanstalk://localhost:11300//"
......@@ -216,7 +216,7 @@ UI_USER_PROTOCOLS = ['icmp', 'tcp', 'udp']
PROTECTED_SUBNETS = ['10.10.0.0/16']
CELERYBEAT_SCHEDULE = {
CELERYBEAT_SCHEDULE = {
"every-day-sync": {
"task": "flowspec.tasks.check_sync",
"schedule": crontab(minute=01, hour=01),
......@@ -229,8 +229,8 @@ CELERYBEAT_SCHEDULE = {
},
}
# whois
PRIMARY_WHOIS = 'whois.grnet.gr'
ALTERNATE_WHOIS = 'whois.ripe.net'
PRIMARY_WHOIS = 'whois.example.com'
ALTERNATE_WHOIS = 'whois.example.net'
ACCOUNT_ACTIVATION_DAYS = 7
......@@ -249,4 +249,6 @@ TINYMCE_DEFAULT_CONFIG = {
'theme': "advanced",
}
import _version
SW_VERSION = _version.VERSION
......@@ -5,15 +5,15 @@
{% if user.is_authenticated %}
<p>{% trans "If you have any questions or need help, contact GRNET Helpdesk at <a href='mailto:helpdesk@grnet.gr'>helpdesk@grnet.gr</a> or 800-11-47638." %}</p>
{% endif %}
<div style="padding-top: 10px;">{% trans "Designed and developed by GRNET NOC" %}
<div style="padding-top: 10px;">Vesrion: <strong>{{VERSION}}</strong> - {% trans "Designed and developed by GRNET NOC" %}
<a href="//facebook.com/noc.grnet.gr" target="_blank"><img src="/fodstatic/img/facebook_img.png" alt="GRNET NOC on Facebook" title="GRNET NOC on Facebook"/></a> <a href="//twitter.com/grnetnoc" target="_blank"><img src="/fodstatic/img/twitter_img.png" alt="GRNET NOC on Twitter" title="GRNET NOC on Twitter"/></a>
</div>
<div class="row"><a href="http://noc.grnet.gr">{% trans "GRNET" %} NOC</a> | <a href="/fod/info/{{LANGUAGE_CODE}}/">{% trans "Info" %}</a> | <a href="/fod/tos/{{LANGUAGE_CODE}}/">{% trans "Service Terms" %}</a></div>
<div style="padding-top: 10px;">
</div>
<div style="padding-top: 10px;">
<iframe width="500" scrolling="no" height="40" frameborder="0" align="middle" src="https://dido.grnet.gr/logos/index.html" marginwidth="0" marginheight="0"></iframe>
<iframe width="500" scrolling="no" height="50" frameborder="0" align="middle" src="https://dido.grnet.gr/logos/index.html" marginwidth="0" marginheight="0"></iframe>
</div>
</div>
</footer>
\ No newline at end of file
</footer>
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