Permalink
Browse files

display MediaCore's version number in the admin area's footer so Medi…

…aCore operators can easily determine which version they are using
  • Loading branch information...
1 parent 55fe91f commit 608b97618417651a189bc2e8f67aae4245f07d24 @FelixSchwarz FelixSchwarz committed May 31, 2012
Showing with 20 additions and 3 deletions.
  1. +5 −0 mediacore/lib/helpers.py
  2. +10 −2 mediacore/public/admin/styles/base.css
  3. +5 −1 mediacore/templates/admin/master.html
View
@@ -90,6 +90,7 @@
'gravatar_from_email',
'is_admin',
'js',
+ 'mediacore_version',
'pick_any_media_file',
'pick_podcast_media_file',
'pretty_file_size',
@@ -114,6 +115,10 @@ def js(source):
return url_for(js_sources_debug[source])
return url_for(js_sources[source])
+def mediacore_version():
+ import mediacore
+ return mediacore.__version__
+
def duration_from_seconds(total_sec, shortest=True):
"""Return the HH:MM:SS duration for a given number of seconds.
@@ -129,14 +129,22 @@ body {
#logo-dropdown li:first-child a { background-position: -1px -42px; height: 36px; line-height: 36px }
#logo-dropdown li:first-child a:hover { background-position: -1px -1px }
-.copyright {
- text-align: right;
+
+#admin-footer {
color: #95a0b9;
font-size: 11px;
padding-bottom: 0;
margin-bottom: 0;
}
+.mcore-version {
+ float: left;
+}
+
+.copyright {
+ text-align: right;
+}
+
/* Main Menu */
#nav {
float: right;
@@ -55,7 +55,11 @@ <h2><a id="logo-dropdown-toggle" href="${h.url_for(controller='/admin/index')}">
</ul>
</div>
<div id="body" class="clearfix" py:content="select('*|text()')" />
- <p class="copyright clear">&copy; 2009-2012 MediaCore Inc.</p>
+
+ <div id="admin-footer">
+ <div class="mcore-version">MediaCore CE ${h.mediacore_version()}</div>
+ <p class="copyright">&copy; 2009-2012 MediaCore Inc.</p>
+ </div>
</div>
</body>

0 comments on commit 608b976

Please sign in to comment.