1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-23 07:26:40 +02:00
keeweb/app/scripts/views/settings/settings-help-view.js
2015-12-17 00:50:45 +03:00

24 lines
887 B
JavaScript

'use strict';
var Backbone = require('backbone'),
RuntimeInfo = require('../../comp/runtime-info'),
Links = require('../../const/links');
var SettingsHelpView = Backbone.View.extend({
template: require('templates/settings/settings-help.hbs'),
render: function() {
var appInfo = 'KeeWeb v' + RuntimeInfo.version + ' (' + RuntimeInfo.commit + ', ' + RuntimeInfo.buildDate + ')\n' +
'Environment: ' + (RuntimeInfo.launcher ? RuntimeInfo.launcher : 'web') + '\n' +
'User-Agent: ' + RuntimeInfo.userAgent;
this.renderTemplate({
issueLink: Links.Repo + '/issues/new?body=' + encodeURIComponent('!please, describe your issue here!\n\n' + appInfo),
desktopLink: Links.Desktop,
webAppLink: Links.WebApp,
appInfo: _.escape(appInfo)
});
}
});
module.exports = SettingsHelpView;