release notes link

This commit is contained in:
Antelle 2015-11-14 19:07:14 +03:00
parent 72bf952717
commit d0f5821fd4
4 changed files with 7 additions and 3 deletions

View File

@ -122,6 +122,7 @@ var Updater = {
checkManualDownload: function() {
if (+Launcher.getAppVersion().split('.')[1] <= 2) {
UpdateModel.instance.set({ updateStatus: 'ready', updateManual: true });
return true;
}
},

View File

@ -5,7 +5,8 @@ var Links = {
Desktop: 'https://github.com/antelle/keeweb/releases/latest',
WebApp: 'http://antelle.github.io/keeweb/',
License: 'https://github.com/antelle/keeweb/blob/master/MIT-LICENSE.txt',
UpdateDesktop: 'https://github.com/antelle/keeweb/releases/download/{ver}/UpdateDesktop.zip'
UpdateDesktop: 'https://github.com/antelle/keeweb/releases/download/{ver}/UpdateDesktop.zip',
ReleaseNotes: 'https://github.com/antelle/keeweb/blob/master/release-notes.md#release-notes'
};
module.exports = Links;

View File

@ -44,7 +44,8 @@ var SettingsGeneralView = Backbone.View.extend({
updateInProgress: Updater.updateInProgress(),
updateInfo: this.getUpdateInfo(),
updateReady: UpdateModel.instance.get('updateStatus') === 'ready',
updateManual: UpdateModel.instance.get('updateManual')
updateManual: UpdateModel.instance.get('updateManual'),
releaseNotesLink: Links.ReleaseNotes
});
},

View File

@ -2,7 +2,7 @@
<h1><i class="fa fa-cog"></i> General Settings</h1>
<% if (updateReady && !canAutoUpdate) { %>
<h2 class="action-color">Update</h2>
<div>New app version was released and downloaded.</div>
<div>New app version was released and downloaded. <a href="<%= releaseNotesLink %>" target="_blank">View release notes</a></div>
<div class="settings__general-update-buttons">
<button class="settings__general-restart-btn">Reload to update</button>
</div>
@ -33,6 +33,7 @@
<input type="checkbox" class="settings__input settings__general-auto-update" id="settings__general-auto-update" <%- autoUpdate ? 'checked' : '' %> />
<label for="settings__general-auto-update">Automatic updates</label>
<div><%- updateInfo %></div>
<a href="<%= releaseNotesLink %>" target="_blank">View release notes</a>
</div>
<div class="settings__general-update-buttons">
<% if (updateInProgress) { %>