File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
frontend/stylesheets/partials Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 11import os
2+ import subprocess
23from flask import Flask
34from flask import redirect
45from flask_sqlalchemy import SQLAlchemy
1314app .config .from_pyfile (config )
1415app .config ["SQLALCHEMY_TRACK_MODIFICATIONS" ] = False
1516
17+ app .config ["GIT_REVISION" ] = subprocess .check_output (['git' ,
18+ 'rev-parse' ,
19+ '--short' ,
20+ 'HEAD' ]).decode ('utf-8' ).rstrip ()
1621db = SQLAlchemy (app )
1722migrate = Migrate (app , db )
1823logger = structlog .get_logger ()
Original file line number Diff line number Diff line change 2828 </ div >
2929 {% endif %}
3030
31+ < footer >
32+ < a class ="footer-version " href ="https://github.com/ComputerScienceHouse/conditional/tree/{{config[ "GIT_REVISION "]}}"> Conditional ({{config["GIT_REVISION"]}})</ a >
33+ </ footer >
3134 < script src ="/static/js/app.js "> </ script >
32- {% block extraFooter %}
33- {% endblock %}
3435 </ body >
3536</ html >
Original file line number Diff line number Diff line change 6464 opacity : .5 ;
6565 }
6666}
67+
68+ .footer-version {
69+ display : block ;
70+ opacity : .3 ;
71+ margin : 10px auto 20px ;
72+ text-align : center ;
73+ color : #000 ;
74+ font-size : .9em ;
75+ & :hover {
76+ text-decoration : none ;
77+ color : #000 ;
78+ }
79+ }
You can’t perform that action at this time.
0 commit comments