Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 297be00

Browse files
committed
versioning
1 parent a75f7c1 commit 297be00

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hints/routes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ def internal_server_error(error):
184184

185185

186186
@bp.context_processor
187-
def inject_year():
187+
def inject_stuff():
188188
"""
189-
used for the footer to display the current year
189+
used for the footer to display the current year, version
190190
"""
191-
return {"year": datetime.date.today().year}
191+
return {"year": datetime.date.today().year, "version": "1.0.0"}

hints/templates/layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<li class="nav-item"><a href="#" class="nav-link px-2 text-muted">FAQs</a></li>
3636
<li class="nav-item"><a href="#" class="nav-link px-2 text-muted">About</a></li> -->
3737
</ul>
38+
<p class="text-center text-muted">Version {{version}}</p>
3839
<p class="text-center text-muted">&copy; {{year}} aviparshan.com</p>
3940
</footer>
4041
</div>

0 commit comments

Comments
 (0)