File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -668,13 +668,15 @@ def filter_build_options_by_category(build_options, category):
668
668
def parse_build_categories (build_options ):
669
669
return sorted (list (set ([f .category for f in build_options ])))
670
670
671
+ GIT_VERSION_SHORT = get_git_hash ('HEAD' , os .path .abspath (os .getcwd ()))[:10 ]
672
+
671
673
@app .route ('/' , defaults = {'token' : None }, methods = ['GET' ])
672
674
@app .route ('/<token>' , methods = ['GET' ])
673
675
def home (token ):
674
676
if token :
675
677
app .logger .info ("Showing log for build id " + token )
676
678
app .logger .info ('Rendering index.html' )
677
- return render_template ('index.html' , token = token )
679
+ return render_template ('index.html' , token = token , app_git_version = GIT_VERSION_SHORT )
678
680
679
681
@app .route ("/builds/<path:name>" )
680
682
def download_file (name ):
Original file line number Diff line number Diff line change 64
64
</ span > |
65
65
< span class ="mx-2 "> Source:
66
66
< a href ="https://github.com/Ardupilot/CustomBuild " style ="text-decoration: underline; color: white; "> Ardupilot/CustomBuild</ a >
67
+ </ span > |
68
+ < span class ="mx-2 "> Git Version:
69
+ < a href ="https://github.com/Ardupilot/CustomBuild/commit/{{ app_git_version }} " style ="text-decoration: underline; color: white; "> {{ app_git_version }}</ a >
67
70
</ span >
68
71
</ div >
69
- < span > To try out the newest features of the app, please visit our beta server
70
- < a href ="https://custom-beta.ardupilot.org " style ="text-decoration: underline; color: white; "> custom- beta.ardupilot.org </ a >
72
+ < span > To try out the newest features of the app, please visit our
73
+ < a href ="https://custom-beta.ardupilot.org " style ="text-decoration: underline; color: white; "> beta server </ a >
71
74
</ span >
72
75
</ div >
73
76
</ div >
You can’t perform that action at this time.
0 commit comments