summaryrefslogtreecommitdiffstats
path: root/settings/js/apps.js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-01-17 16:35:48 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-01-17 16:35:48 +0100
commit80d871ab1e440dab1db7b17fa449f039f33734ee (patch)
tree9c3009f184560760551c17c1d58081dc3647e651 /settings/js/apps.js
parente2de3b833765caa021de93713eba134e9e6edc7f (diff)
downloadnextcloud-server-80d871ab1e440dab1db7b17fa449f039f33734ee.tar.gz
nextcloud-server-80d871ab1e440dab1db7b17fa449f039f33734ee.zip
added website field
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r--settings/js/apps.js34
1 files changed, 20 insertions, 14 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index ce81dff4485..2c6f77d9314 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -39,21 +39,27 @@ OC.Settings.Apps = OC.Settings.Apps || {
var userDocumentation = false;
var adminDocumentation = false;
- if (typeof(app.documentation.user) !== 'undefined') {
- userDocumentation = true;
- page.find('span.userDocumentation').html("<a href='" + app.documentation.user + "'>" + t('settings', 'User Documentation') + "</a>");
- page.find('p.documentation').show();
- }
- if (typeof(app.documentation.admin) !== 'undefined') {
- adminDocumentation = true;
- page.find('span.adminDocumentation').html("<a href='" + app.documentation.admin + "'>" + t('settings', 'Admin Documentation') + "</a>");
- page.find('p.documentation').show();
- }
+ if (typeof(app.documentation) !== 'undefined') {
+ if (typeof(app.documentation.user) !== 'undefined') {
+ userDocumentation = true;
+ page.find('span.userDocumentation').html("<a id='userDocumentation' href='" + app.documentation.user + "'>" + t('settings', 'User Documentation') + "</a>");
+ page.find('p.documentation').show();
+ }
+ if (typeof(app.documentation.admin) !== 'undefined') {
+ adminDocumentation = true;
+ page.find('span.adminDocumentation').html("<a id='adminDocumentation' href='" + app.documentation.admin + "'>" + t('settings', 'Admin Documentation') + "</a>");
+ page.find('p.documentation').show();
+ }
- if(userDocumentation && adminDocumentation) {
- page.find('span.userDocumentation').after(', ');
+ if(userDocumentation && adminDocumentation) {
+ page.find('span.userDocumentation').after(', ');
+ }
}
+ if (typeof(app.website) !== 'undefined') {
+ page.find('p.website').show();
+ page.find('a#websitelink').attr('href', app.website);
+ }
if (app.update !== false) {
page.find('input.update').show();
@@ -69,8 +75,8 @@ OC.Settings.Apps = OC.Settings.Apps || {
page.find('input.enable').data('active', app.active);
if (app.internal === false) {
page.find('span.score').show();
- page.find('p.appslink').show();
- page.find('a.appslink').attr('href', 'http://apps.owncloud.com/content/show.php?content=' + app.id);
+ page.find('p.appstore').show();
+ page.find('a#appstorelink').attr('href', 'http://apps.owncloud.com/content/show.php?content=' + app.id);
page.find('small.externalapp').hide();
} else {
page.find('p.appslink').hide();