summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-26 01:50:22 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-26 20:07:53 +0200
commitb9ebdba7eb16dfddc5ec6bd7bd8ed1b170aab1f3 (patch)
tree2af57db6cc3cb6fb6a16bd49a4eff2877d8277d3
parentb2c16b0794ce0a8bedb41a160920a437de6036dd (diff)
downloadnextcloud-server-b9ebdba7eb16dfddc5ec6bd7bd8ed1b170aab1f3.tar.gz
nextcloud-server-b9ebdba7eb16dfddc5ec6bd7bd8ed1b170aab1f3.zip
Use .installed layout
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r--settings/js/apps.js2
-rw-r--r--settings/templates/apps.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 79b6af287fd..6bad2cc842c 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -99,7 +99,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
return _.extend({level: 0}, app);
});
var source;
- if (categoryId === 'enabled' || categoryId === 'disabled' || categoryId === 'installed') {
+ if (categoryId === 'enabled' || categoryId === 'disabled' || categoryId === 'installed' || categoryId === 'app-bundles') {
source = $("#app-template-installed").html();
$('#apps-list').addClass('installed');
} else {
diff --git a/settings/templates/apps.php b/settings/templates/apps.php
index c3c7a9df379..38e515e08b0 100644
--- a/settings/templates/apps.php
+++ b/settings/templates/apps.php
@@ -30,6 +30,9 @@ script(
</script>
<script id="app-template-installed" type="text/x-handlebars">
+{{#if newCategory}}
+<h2>{{categoryName}} <input class="enable" type="submit" data-bundleid="{{bundleId}}" data-active="true" value="<?php p($l->t('Enable all'));?>"/></h2>
+{{/if}}
<div class="section" id="app-{{id}}">
<div class="app-image app-image-icon"></div>
<div class="app-name">
@@ -73,9 +76,6 @@ script(
</script>
<script id="app-template" type="text/x-handlebars">
- {{#if newCategory}}
- <h2>{{categoryName}} <input class="enable" type="submit" data-bundleid="{{bundleId}}" data-active="true" value="<?php p($l->t('Enable all'));?>"/></h2>
- {{/if}}
<div class="section" id="app-{{id}}">
{{#if preview}}
<div class="app-image{{#if previewAsIcon}} app-image-icon{{/if}} icon-loading">