82 lines
3.3 KiB
HTML
82 lines
3.3 KiB
HTML
{% extends "main/layout.html" %}
|
|
{% from 'global_macros.html' import data, preload_circle, select %}
|
|
{% from 'main/macros.html' import GridViewApp, ListViewApp %}
|
|
|
|
{% block page_vendor_css %}
|
|
{% endblock page_vendor_css %}
|
|
|
|
{% block page_lvl_css %}
|
|
{{ process_css_sources(src="main/home.css")|safe }}
|
|
{% if settings.background and settings.background != 'None' %}
|
|
<style>
|
|
#main {
|
|
background-image: url("{{ settings.background }}");
|
|
background-size: cover;
|
|
background-attachment: fixed;
|
|
min-height: 100vh;
|
|
}
|
|
</style>
|
|
{% endif %}
|
|
{% endblock page_lvl_css %}
|
|
|
|
{% block content %}
|
|
<div id="main" class="main-full">
|
|
<div class="container">
|
|
<div class="row card-filter-container">
|
|
<div class="col s12 l4 input-field">
|
|
<span>
|
|
<i class="material-icons prefix card-search-icon">search</i>
|
|
<input type="text" id="apps-filter" class="card-filter theme-surface-transparent" placeholder="Search apps" autofocus>
|
|
|
|
{% if current_user.role == "admin" %}
|
|
{% if settings.home_view_mode == "list" %}
|
|
<a href="{{ url_for('main.change_home_view_mode', mode="grid") }}">
|
|
<i class="material-icons right filter-action pointer tooltipped" data-position="top" data-tooltip="List view">apps</i>
|
|
</a>
|
|
{% else %}
|
|
<a href="{{ url_for('main.change_home_view_mode', mode="list") }}">
|
|
<i class="material-icons right filter-action pointer tooltipped" data-position="top" data-tooltip="List view">list</i>
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</span>
|
|
</div>
|
|
{% if tags_form.tags.choices|count > 1 %}
|
|
<div class="input-field col s12 l2 tags-select-col theme-surface-transparent">
|
|
{{ tags_form.tags(id='tags-select') }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="row">
|
|
{% if apps %}
|
|
|
|
{% if settings.home_view_mode == "list" %}
|
|
{{ ListViewApp(apps) }}
|
|
{% else %}
|
|
{% for app in apps %}
|
|
{{ GridViewApp(app) }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
<a href="{{ url_for('settings_system.settings') }}">
|
|
<div class="col s12 m6 l3">
|
|
<div class="card theme-surface-transparent">
|
|
<div class="card-action center-align">
|
|
<h5>No apps yet, go to settings.</h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|
|
|
|
{% block page_vendor_js %}
|
|
{% endblock page_vendor_js %}
|
|
|
|
{% block page_lvl_js %}
|
|
{{ process_js_sources(src="main/home.js")|safe }}
|
|
{% endblock page_lvl_js %} |