From 84a7cfe07db0557e2c46929a0ebcee04257f3d47 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 31 May 2014 22:09:18 +0200 Subject: [PATCH] Add CP version by default in logs --- couchpotato/core/plugins/log/static/log.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/log/static/log.js b/couchpotato/core/plugins/log/static/log.js index d39a20a9..8b97dab4 100644 --- a/couchpotato/core/plugins/log/static/log.js +++ b/couchpotato/core/plugins/log/static/log.js @@ -17,7 +17,7 @@ Page.Log = new Class({ Movie(s) I have this with: ...\n\ Quality of the movie being searched: ...\n\ Providers I use: ...\n\ -Version of CouchPotato: ...\n\ +Version of CouchPotato: {version}\n\ Running on: ...\n\ \n\ ### Logs:\n\ @@ -207,7 +207,10 @@ Running on: ...\n\ showReport: function(text){ var self = this, - body = self.report_text.replace('{issue}', text); + version = Updater.getInfo(), + body = self.report_text + .replace('{issue}', text) + .replace('{version}', version ? version.version.repr : '...'); var overlay = new Element('div.report', { 'method': 'post',