File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ <h3 class="float-md-start mb-0">eDROP</h3>
134134
135135 < main class ="px-3 ">
136136 < h1 > eDROP Connector</ h1 >
137- < p class ="lead "> More to come... </ p >
137+ < p class ="lead "> Version: {{ version }} </ p >
138138 <!--<p class="lead">
139139 <a href="#" class="btn btn-lg btn-light fw-bold border-white bg-white">Learn more</a>
140140 </p>-->
Original file line number Diff line number Diff line change 55
66def index (request ):
77 template = "track/home.html"
8- context = {}
8+ # if there is a version file (which there should be after deployment)
9+ # we'll show this on the home page
10+ try :
11+ with open ('edrop/static/VERSION.txt' , 'r' ) as file :
12+ context = {
13+ 'version' : file .read ()
14+ }
15+ except Exception as ex :
16+ logger .error ("Could not get version." )
17+ logger .error (ex )
18+ context = {}
19+
920 return render (request , template , context )
You can’t perform that action at this time.
0 commit comments