add commit to bottom nav
This commit is contained in:
		@@ -85,10 +85,14 @@ def create_app():
 | 
			
		||||
 | 
			
		||||
    @app.context_processor
 | 
			
		||||
    def inject_constants():
 | 
			
		||||
        commit = ""
 | 
			
		||||
        with open('.git/refs/heads/main') as f:
 | 
			
		||||
            commit = f.read().strip()
 | 
			
		||||
        return {
 | 
			
		||||
            "InfoboxIcons": InfoboxIcons,
 | 
			
		||||
            "InfoboxHTMLClass": InfoboxHTMLClass,
 | 
			
		||||
            "InfoboxKind": InfoboxKind,
 | 
			
		||||
            "__commit": commit,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    @app.context_processor
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@
 | 
			
		||||
  {% endwith %}
 | 
			
		||||
  {% block content %}{% endblock %}
 | 
			
		||||
  <footer class="darkbg">
 | 
			
		||||
    <span>Pyrom commit</span>
 | 
			
		||||
    <span>Pyrom commit <a href="{{ "https://git.poto.cafe/yagich/porom/commit/" + __commit }}">{{ __commit[:8] }}</a></span>
 | 
			
		||||
  </footer>
 | 
			
		||||
  <script src="/static/js/copy-code.js"></script>
 | 
			
		||||
  <script src="/static/js/ui.js"></script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user