Parcourir la source

Added VERSION to settings and page footer

Jeremy Stretch il y a 8 ans
Parent
commit
48d607fb96
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  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.")
 
 
+VERSION = '1.0.6'
+
 # Import local configuration
 for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:
     try:

+ 1 - 1
netbox/templates/_base.html

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