diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index b68a06aa..25eb5605 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -66,6 +66,7 @@ var state = dataraw[v['id']]['state']; var levelFormatted = parseInt(dataraw[v['id']]['level']); var isWorking = (state === 'working' || state === 'official') && levelFormatted > 0; + var isFeatured = (state === 'official' || dataraw[v['id']]['featured']); // Keep only the first instance of each app and remove community not working apps if (!v['id'].match(/__[0-9]{1,5}$/) && (dataraw[v['id']]['repository'] === 'yunohost' || state !== 'notworking')) { @@ -80,6 +81,7 @@ dataraw[v['id']]['updateDate'] = dataraw[v['id']]['lastUpdate'] * 1000 || 0; dataraw[v['id']]['isSafe'] = (dataraw[v['id']]['installColor'] !== 'danger'); dataraw[v['id']]['isWorking'] = isWorking ? "isworking" : "notFullyWorking"; + dataraw[v['id']]['isFeatured'] = isFeatured; jQuery.extend(dataraw[v['id']], v); apps.push(dataraw[v['id']]); diff --git a/src/locales/en.json b/src/locales/en.json index 8d90af44..5d06f2ca 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -145,6 +145,8 @@ "error_connection_interrupted": "The server closed the connection instead of answering it, has nginx been restarted by error? (Error code/message: %s)", "everyone_has_access": "Everyone has access.", "experimental_warning": "Warning: this feature is experimental and not consider stable, you shouldn't be using it except if you know what you are doing.", + "featured": "Featured", + "featured_and_official_apps": "Featured and official apps", "filesystem": "Filesystem", "firewall": "Firewall", "footer_version": "Powered by YunoHost %s (%s).", diff --git a/src/views/app/app_list_install.ms b/src/views/app/app_list_install.ms index 72da8df6..ceec1a98 100644 --- a/src/views/app/app_list_install.ms +++ b/src/views/app/app_list_install.ms @@ -25,6 +25,7 @@ @@ -34,7 +35,7 @@
{{#apps}} -
+

{{name}}

@@ -42,6 +43,7 @@ {{t state}} {{t 'level'}} {{levelFormatted}} {{#displayLicense}}{{license}}{{/displayLicense}} + {{#featured}} {{t 'featured'}}{{/featured}}
{{description}}