Use .installed layout

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
pull/4454/head
Lukas Reschke 8 years ago
parent b2c16b0794
commit b9ebdba7eb
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
  1. 2
      settings/js/apps.js
  2. 6
      settings/templates/apps.php

@ -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 {

@ -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">

Loading…
Cancel
Save