The branch, master has been updated via 52db64888f692aba36c707dd34365009d4280ed4 (commit) from dc5d770b8de7d7c86bb8d3e9de89e2fff5636827 (commit)
- Log ----------------------------------------------------------------- commit 52db64888f692aba36c707dd34365009d4280ed4 Author: Michal Čihař mcihar@novell.com Date: Wed Feb 2 11:39:57 2011 +0100
Export latest version in javascript as well.
-----------------------------------------------------------------------
Summary of changes: render.py | 1 + static/_version.js | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) create mode 100644 static/_version.js
diff --git a/render.py b/render.py index 187341d..e18aca8 100755 --- a/render.py +++ b/render.py @@ -1005,6 +1005,7 @@ class SFGenerator: helper.log.dbg('Generating static pages:') self.render_static('_version.php', 'version.php') self.render_static('_version.txt', 'version.txt') + self.render_static('_version.js', 'version.js') self.render_static('_security.php', 'security.php') self.render_static('_robots.txt', 'robots.txt') for redir in data.redirects.REDIRECTS: diff --git a/static/_version.js b/static/_version.js new file mode 100644 index 0000000..97866c6 --- /dev/null +++ b/static/_version.js @@ -0,0 +1,4 @@ +{% for release in releases_featured %} +var PMA_latest_version = '${release.version}'; +var PMA_latest_date = '${release.date.datestring()}'; +{% end %}
hooks/post-receive