swaf/src/assets/views/backend/index.svelte

34 lines
1.0 KiB
Svelte
Raw Normal View History

2021-06-01 16:14:24 +02:00
<script lang="ts">
import {locals} from "../../ts/stores.js";
2021-11-21 13:08:57 +01:00
import BaseTemplate from "../templates/BaseTemplate.svelte";
2021-06-01 16:14:24 +02:00
import Breadcrumb from "../components/Breadcrumb.svelte";
import Icon from "../utils/Icon.svelte";
2021-06-01 16:14:24 +02:00
const menu = $locals.menu || [];
</script>
2021-11-21 13:08:57 +01:00
<BaseTemplate title="{$locals.app.name} backend" h1={false}>
2021-06-01 16:14:24 +02:00
<div class="container">
<Breadcrumb currentPageTitle="Backend"/>
<h1>App administration</h1>
<div class="panel">
<nav>
<ul>
{#each menu as element}
<li>
<a href={element.link}>
{#if element.display_icon !== null}
<Icon name={element.display_icon}/>
2021-06-01 16:14:24 +02:00
{/if}
{element.display_string}
</a>
</li>
{/each}
</ul>
</nav>
</div>
</div>
2021-11-21 13:08:57 +01:00
</BaseTemplate>