Restructure main view layout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
30cd8ed837
commit
5f8b935c8e
|
@ -955,7 +955,7 @@ span.version {
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#apps-list {
|
#apps-list, #apps-list-search {
|
||||||
&.installed {
|
&.installed {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -22,34 +22,36 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="app-content" class="app-settings-content" :class="{ 'with-app-sidebar': app, 'icon-loading': loading }">
|
<div id="app-content" class="app-settings-content" :class="{ 'with-app-sidebar': app, 'icon-loading': loading }">
|
||||||
<div id="apps-list" class="installed" v-if="useListView">
|
|
||||||
<app-item v-for="app in apps" :key="app.id" :app="app" :category="category" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="apps-list" class="installed" v-if="useBundleView">
|
<div id="apps-list" :class="{installed: (useBundleView || useListView), store: useAppStoreView}">
|
||||||
<template v-for="bundle in bundles">
|
<template v-if="useListView">
|
||||||
|
<app-item v-for="app in apps" :key="app.id" :app="app" :category="category" />
|
||||||
|
</template>
|
||||||
|
<template v-for="bundle in bundles" v-if="useBundleView && bundleApps(bundle.id).length > 0">
|
||||||
<div class="apps-header">
|
<div class="apps-header">
|
||||||
<div class="app-image"></div>
|
<div class="app-image"></div>
|
||||||
<h2>{{ bundle.name }} <input class="enable" type="button" value="Alle aktivieren"></h2>
|
<h2>{{ bundle.name }} <input type="button" :value="bundleToggleText(bundle.id)" v-on:click="toggleBundle(bundle.id)"></h2>
|
||||||
<div class="app-version"></div>
|
<div class="app-version"></div>
|
||||||
<div class="app-level"></div>
|
<div class="app-level"></div>
|
||||||
<div class="app-groups"></div>
|
<div class="app-groups"></div>
|
||||||
<div class="actions"> </div>
|
<div class="actions"> </div>
|
||||||
</div>
|
</div>
|
||||||
<app-item v-for="app in bundleApps(bundle.id)" :key="app.id" :app="app" :category="category"/>
|
<app-item v-for="app in bundleApps(bundle.id)" :key="bundle.id + app.id" :app="app" :category="category"/>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="useAppStoreView">
|
||||||
|
<app-item v-for="app in apps" :key="app.id" :app="app" :category="category" :list-view="false" />
|
||||||
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="apps-list" class="store" v-if="useAppStoreView">
|
<div id="apps-list-search" class="installed">
|
||||||
<app-item v-for="app in apps" :key="app.id" :app="app" :category="category" :list-view="false" />
|
<template v-if="search !== '' && searchApps.length > 0">
|
||||||
</div>
|
<div class="section">
|
||||||
|
<div></div>
|
||||||
<div id="apps-list" class="installed" v-if="search !== '' && searchApps.length > 0">
|
<h2>{{ t('settings', 'Results from other categories') }}</h2>
|
||||||
<div class="section">
|
</div>
|
||||||
<div></div>
|
<app-item v-for="app in searchApps" :key="app.id" :app="app" :category="category" :list-view="true" />
|
||||||
<h2>{{ t('settings', 'Results from other categories') }}</h2>
|
</template>
|
||||||
</div>
|
|
||||||
<app-item v-for="app in searchApps" :key="app.id" :app="app" :category="category" :list-view="true" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="apps-list-empty" class="emptycontent emptycontent-search" v-if="!loading && searchApps.length === 0 && apps.length === 0">
|
<div id="apps-list-empty" class="emptycontent emptycontent-search" v-if="!loading && searchApps.length === 0 && apps.length === 0">
|
||||||
|
|
Loading…
Reference in New Issue