New blog post for 1.2.9.112 and on the thank you site I added a link to the matching blog post (if any), this might improve traffic.

This commit is contained in:
Robin 2016-12-31 23:36:31 +01:00
commit a9a53d465b
5 changed files with 62 additions and 6 deletions

View file

@ -1,9 +1,21 @@
{% assign latest_release = site.github.releases | where:"prerelease",false | where:"draft",false | first %} {% assign latest_release = site.github.releases | where:"prerelease",false | where:"draft",false | first %}
<script language="JavaScript">
var release_blog_posts = new Array();
{% for post in site.posts %}
{% if post.release_version %}
release_blog_posts["{{post.release_version}}"] = "{{post.url}}";
{% endif %}
{% endfor %}
</script>
<div id="currentVersion" class="alert alert-success collapse" role="alert"> <div id="currentVersion" class="alert alert-success collapse" role="alert">
<i class="fa fa-check-circle"></i> You are using the most recent version of Greenshot. <i class="fa fa-check-circle"></i> You installed the most recent version of Greenshot.
<div id="blogPost1" class="collapse">You can read more about this version <a id="blog1" href="">here</a>.</div>
</div> </div>
<div id="oldVersion" class="alert alert-danger collapse" role="alert"> <div id="oldVersion" class="alert alert-danger collapse" role="alert">
<i class="fa fa-exclamation-triangle"></i> <strong>You are not using the newest Greenshot version.</strong><br/> <i class="fa fa-exclamation-triangle"></i> <strong>You are not using the newest Greenshot version.</strong><br/>
<div id="blogPost2" class="collapse">You can read more about the Greenshot version you installed <a id="blog2" href="">here</a>.</div>
You might want to download the newest version, which is {{ latest_release.tag_name }}, from <a href="/downloads/">here</a>. Make sure to always get Greenshot from <a href="http://getgreenshot.org/">getgreenshot.org</a>. You might want to download the newest version, which is {{ latest_release.tag_name }}, from <a href="/downloads/">here</a>. Make sure to always get Greenshot from <a href="http://getgreenshot.org/">getgreenshot.org</a>.
</div> </div>
@ -55,9 +67,16 @@ function compareVersion(a, b) {
} }
var installedVersion = /version=([^&]+)/.exec(location)[1]; var installedVersion = /version=([^&]+)/.exec(location)[1];
var greenshotTag = {% if latest_release.tag_name %}"{{ latest_release.tag_name }}"{% else %}"Greenshot-Test-1.2.8.12"{% endif %}; var greenshotTag = {% if latest_release.tag_name %}"{{ latest_release.tag_name }}"{% else %}"Greenshot-Test-1.2.9.112"{% endif %};
var releaseVersion = /.*(\d+\.\d+\.\d+\.\d+)/.exec(greenshotTag)[1]; var releaseVersion = /.*(\d+\.\d+\.\d+\.\d+)/.exec(greenshotTag)[1];
var compare=compareVersion(releaseVersion, installedVersion); var compare=compareVersion(releaseVersion, installedVersion);
var matchingBlogPost = release_blog_posts[installedVersion];
if (matchingBlogPost) {
jQuery('#blog1').prop("href", matchingBlogPost);
jQuery('#blogPost1').slideToggle();
jQuery('#blog2').prop("href", matchingBlogPost);
jQuery('#blogPost2').slideToggle();
}
if (compare >= 1) { if (compare >= 1) {
jQuery('#oldVersion').slideToggle(); jQuery('#oldVersion').slideToggle();
} else if (compare == 0) { } else if (compare == 0) {

View file

@ -3,8 +3,7 @@ layout: post
status: publish status: publish
published: true published: true
title: ! 'New Bugfix Release with an Important Change for Picasa Users' title: ! 'New Bugfix Release with an Important Change for Picasa Users'
release_version: 1.2.6.7
tags: tags:
- 1.2 - 1.2
- bugfix - bugfix

View file

@ -3,8 +3,7 @@ layout: post
status: publish status: publish
published: true published: true
title: ! 'Latest bugfix release resolves problems with Imgur upload and performance' title: ! 'Latest bugfix release resolves problems with Imgur upload and performance'
release_version: 1.2.8.12
tags: tags:
- 1.2 - 1.2
- bugfix - bugfix

View file

@ -2,6 +2,7 @@
layout: post layout: post
status: publish status: publish
published: true published: true
release_version: 1.2.9.103
title: ! 'Our present for you: Greenshot 1.2.9 brings a lot of improvements and fixes' title: ! 'Our present for you: Greenshot 1.2.9 brings a lot of improvements and fixes'
tags: tags:
- 1.2 - 1.2

View file

@ -0,0 +1,38 @@
---
layout: post
status: publish
published: true
release_version: 1.2.9.112
title: ! 'Happy new year: Greenshot 1.2.9 bugfix release'
tags:
- 1.2
- bugfix
- release
---
So the year 2016 has come to an end, to celebrate the start of a brand new year we have a little present for you:
We bring you a bugfix release for the bugs found in Greenshot 1.2.9.103 (released at the 19th of december).
You can see the full changelog below. So just go ahead, [download](/downloads/) the last Greenshot release for 2016 and have a great 2017!
Yours with best wishes for 2017,
the Greenshot team
*Release notes for Greenshot 1.2.9.112-9bc62ac RELEASE*
|Ticket|Description|
|:-----|:------------|
|[BUG-2065](https://greenshot.atlassian.net/browse/BUG-2065)|OverflowException in the editor|
|[BUG-2077](https://greenshot.atlassian.net/browse/BUG-2077)|It's not possible to disable the update check|
|[BUG-2080](https://greenshot.atlassian.net/browse/BUG-2080)|Exception when opening the context menu|
|[BUG-2089](https://greenshot.atlassian.net/browse/BUG-2089)|Greenshot crashes when hotkey registration fails and OneDrive is not installed|
|[BUG-2091](https://greenshot.atlassian.net/browse/BUG-2091)|Greenshot .zip version has wrong log configuration|
|[FEATURE-992](https://greenshot.atlassian.net/browse/FEATURE-992)|When reusing the editor, it is not brought to the front|
|[FEATURE-995](https://greenshot.atlassian.net/browse/FEATURE-995)|Paste images inside Greenshot editor to the current cursor location|
|[FEATURE-998](https://greenshot.atlassian.net/browse/FEATURE-998)|Opening last capture in explorer should select/jump to the file|
|[FEATURE-1000](https://greenshot.atlassian.net/browse/FEATURE-1000)|Set default focus on the OK-button in the Greenshot quality dialog|
Translations modified:
* Nederlands by Stephan Paternotte