{% extends "tungsten/layout/app.html" %} {% import "tungsten/components/ui.html" as ui %} {% block content %} {% set v = page.view(ctx) %} {% set current = v.current %} {% set url = v.url %} {% if current %} {% set title = current.name %} {% set subheading = current.description %} {% endif %} {% set extra_actions %} {% if current %} {% if v.editing %} {{ ui.button('Done', 'primary', 'check', href=url(d=current.id)) }} {% elif v.editable %} {{ ui.button('Edit dashboard', 'gray', 'square-pen', href=url(d=current.id, edit=1), outlined=true) }} {% endif %} {% if (v.plugin.home and v.signed_in) or v.can_create %} {% call(part) ui.dropdown() %} {% if part == 'trigger' %}{{ ui.icon_button('ellipsis-vertical', 'More') }} {% else %} {% if v.plugin.home and v.signed_in %} {% set is_home = v.my_home == current.id %} {% endif %} {% if v.can_create %} {% endif %} {% endif %} {% endcall %} {% endif %} {% endif %} {% endset %} {% include "tungsten/components/page-header.html" %} {% if ctx.request.query_params.get('new') and v.can_create %} {# ?new=1 (the Quick Create menu links here): open the "New dashboard" form at once #}
{% endif %} {% if v.missing %}{{ __('Drag widgets by their handle to move them. Pick a width for each one. Add more from the list below.') }}
{{ ui.button('Name and sharing', 'gray', 'settings', size='sm', outlined=true, attrs_='@click="open = !open"'|safe) }}{{ e.label }}
{% if e.description %}{{ e.description }}
{% endif %}