|
|
|
@ -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(); |
|
|
|
|