diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 2 | ||||
-rw-r--r-- | settings/templates/apps.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index a665532a3b7..fe050332fc8 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -239,6 +239,8 @@ class AppSettingsController extends Controller { 'canInstall' => true, 'preview' => isset($app['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($app['screenshots'][0]['url']) : '', 'score' => $app['ratingOverall'], + 'ratingNumOverall' => $app['ratingNumOverall'], + 'ratingNumThresholdReached' => $app['ratingNumOverall'] > 5 ? true : false, 'removable' => $existsLocally, 'active' => $this->appManager->isEnabledForUser($app['id']), 'needsDownload' => !$existsLocally, diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 3753fd67a0c..2cb8378d74e 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -53,7 +53,7 @@ script( <div class="app-level"> {{{level}}} </div> - {{#if score}} + {{#if ratingNumThresholdReached }} <div class="app-score">{{{score}}}</div> {{/if}} <div class="app-detailpage"></div> |