diff options
author | Michael Grosser <development@stp-ip.net> | 2016-11-02 17:00:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 17:00:24 +0000 |
commit | e81d04cd8d2ac0de3d06d4586550469384c5d91a (patch) | |
tree | 0e243d105db3e00f1d3f899b9ecfbd73f3d98235 /settings/js | |
parent | 23dd62b653e42201468f9bed369a5993dea876b0 (diff) | |
parent | 0eeef26a8e2515b802015fe09bef7909aa183491 (diff) | |
download | nextcloud-server-e81d04cd8d2ac0de3d06d4586550469384c5d91a.tar.gz nextcloud-server-e81d04cd8d2ac0de3d06d4586550469384c5d91a.zip |
Merge pull request #1940 from nextcloud/new-appstore
Use new appstore API
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 5fc366c4921..654756af531 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -2,7 +2,7 @@ Handlebars.registerHelper('score', function() { if(this.score) { - var score = Math.round( this.score / 10 ); + var score = Math.round( this.score * 10 ); var imageName = 'rating/s' + score + '.svg'; return new Handlebars.SafeString('<img src="' + OC.imagePath('core', imageName) + '">'); @@ -13,10 +13,6 @@ Handlebars.registerHelper('level', function() { if(typeof this.level !== 'undefined') { if(this.level === 200) { return new Handlebars.SafeString('<span class="official icon-checkmark">' + t('settings', 'Official') + '</span>'); - } else if(this.level === 100) { - return new Handlebars.SafeString('<span class="approved">' + t('settings', 'Approved') + '</span>'); - } else { - return new Handlebars.SafeString('<span class="experimental">' + t('settings', 'Experimental') + '</span>'); } } }); @@ -211,7 +207,7 @@ OC.Settings.Apps = OC.Settings.Apps || { currentImage.onload = function() { page.find('.app-image') - .append(OC.Settings.Apps.imageUrl(app.preview, app.detailpage)) + .append(OC.Settings.Apps.imageUrl(app.preview, app.fromAppStore)) .fadeIn(); }; } @@ -248,7 +244,7 @@ OC.Settings.Apps = OC.Settings.Apps || { var img = '<svg width="72" height="72" viewBox="0 0 72 72">'; if (appfromstore) { - img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon" /></svg>'; + img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>'; } else { img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon"></image></svg>'; } |