Browse Source

Added VERSION to settings and page footer

Jeremy Stretch 8 years ago
parent
commit
48d607fb96
2 changed files with 3 additions and 1 deletions
  1. 2 0
      netbox/netbox/settings.py
  2. 1 1
      netbox/templates/_base.html

+ 2 - 0
netbox/netbox/settings.py

@@ -11,6 +11,8 @@ except ImportError:
                                "the documentation.")
                                "the documentation.")
 
 
 
 
+VERSION = '1.0.6'
+
 # Import local configuration
 # Import local configuration
 for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:
 for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:
     try:
     try:

+ 1 - 1
netbox/templates/_base.html

@@ -237,7 +237,7 @@
 		<div class="container">
 		<div class="container">
             <div class="row">
             <div class="row">
                 <div class="col-md-4">
                 <div class="col-md-4">
-                    <p class="text-muted">{{ settings.HOSTNAME }}</p>
+                    <p class="text-muted">{{ settings.HOSTNAME }} (v{{ settings.VERSION }})</p>
                 </div>
                 </div>
                 <div class="col-md-4 text-center">
                 <div class="col-md-4 text-center">
                     <p class="text-muted">{% now 'Y-m-d H:i:s T' %}</p>
                     <p class="text-muted">{% now 'Y-m-d H:i:s T' %}</p>