[gimp-web/testing] The "release notes" button on home page grabs automatically last stable.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] The "release notes" button on home page grabs automatically last stable.
- Date: Mon, 23 Oct 2017 22:44:20 +0000 (UTC)
commit ad4b8f8c00494f49ae05241b1bca6b23f57ff48a
Author: Jehan <jehan girinstud io>
Date: Tue Oct 24 00:40:41 2017 +0200
The "release notes" button on home page grabs automatically last stable.
Since the release note page always follows the same pattern, there is no
need to have it manually changed. I added a GIMP_MAJOR_MINOR_VERSION
variable since our release notes are based on the minor version.
pelicanconf.local.py | 1 +
pelicanconf.py | 1 +
pelicanconf.testing.py | 1 +
themes/newgimp/templates/home.html | 3 ++-
4 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index 3913947..55525a6 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -154,6 +154,7 @@ if 'STABLE' in GIMP:
# current version _should_ be the first key
# hence, .keys()[0]
GIMP_VERSION = GIMP['STABLE'].keys()[0]
+ GIMP_MAJOR_MINOR_VERSION = GIMP_VERSION[:GIMP_VERSION.index('.', GIMP_VERSION.index('.') + 1)]
for version, info in GIMP['STABLE'].iteritems() :
if 'date' in info:
try:
diff --git a/pelicanconf.py b/pelicanconf.py
index e3ebbad..41d466f 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -141,6 +141,7 @@ if 'STABLE' in GIMP:
# current version _should_ be the first key
# hence, .keys()[0]
GIMP_VERSION = GIMP['STABLE'].keys()[0]
+ GIMP_MAJOR_MINOR_VERSION = GIMP_VERSION[:GIMP_VERSION.index('.', GIMP_VERSION.index('.') + 1)]
for version, info in GIMP['STABLE'].iteritems() :
if 'date' in info:
try:
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index 3a4ff81..c3595b6 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -141,6 +141,7 @@ if 'STABLE' in GIMP:
# current version _should_ be the first key
# hence, .keys()[0]
GIMP_VERSION = GIMP['STABLE'].keys()[0]
+ GIMP_MAJOR_MINOR_VERSION = GIMP_VERSION[:GIMP_VERSION.index('.', GIMP_VERSION.index('.') + 1)]
for version, info in GIMP['STABLE'].iteritems() :
if 'date' in info:
try:
diff --git a/themes/newgimp/templates/home.html b/themes/newgimp/templates/home.html
index 79d0c5a..a5c990f 100644
--- a/themes/newgimp/templates/home.html
+++ b/themes/newgimp/templates/home.html
@@ -38,7 +38,8 @@
<a href="/downloads/" title="Download GIMP!">
<span id="DLButton"><i class="fa fa-download"></i> DOWNLOAD <span
id='ver'>{{ GIMP_VERSION }}</span></span>
</a>
- <a href="/release-notes/gimp-2.8.html" title="2.8 Release Notes" >
+ <a href="/release-notes/gimp-{{ GIMP_MAJOR_MINOR_VERSION }}.html"
+ title="{{ GIMP_MAJOR_MINOR_VERSION }} Release Notes" >
<span id="ReleaseButton">RELEASE NOTES</span>
</a>
</span>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]