}
page.find('small.externalapp').attr('style', 'visibility:visible');
page.find('span.author').text(app.author);
- page.find('span.licence').text(app.license);
+
+ // FIXME licenses of downloaded apps go into app.licence, licenses of not-downloaded apps into app.license
+ if (typeof(app.licence) !== 'undefined') {
+ var applicense = app.licence;
+ } else if (typeof(app.license) !== 'undefined') {
+ var applicense = app.license;
+ } else {
+ var applicense = '';
+ }
+ page.find('span.licence').text(applicense);
if (app.update !== false) {
page.find('input.update').show();