File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ """
2
+ The core application: context processors for enriching request context data.
3
+ """
4
+
5
+ from pems import __version__
6
+
7
+
8
+ def pems_version (request ):
9
+ """Context processor adds information about the PeMS application's version."""
10
+
11
+ return {"pems_version" : __version__ }
Original file line number Diff line number Diff line change 47
47
</ p >
48
48
</ div >
49
49
< div class ="settings-links ">
50
- < a href ="https://github.com/compilerla/pems/releases "> PeMS</ a >
50
+ < a href ="https://github.com/compilerla/pems/releases "> PeMS {{ pems_version }} </ a >
51
51
</ div >
52
52
</ div >
53
53
</ div >
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ def _filter_empty(ls):
60
60
"django.template.context_processors.request" ,
61
61
"django.contrib.auth.context_processors.auth" ,
62
62
"django.contrib.messages.context_processors.messages" ,
63
+ "pems.core.context_processors.pems_version" ,
63
64
],
64
65
},
65
66
},
You can’t perform that action at this time.
0 commit comments