Skip to content

Commit

Permalink
Enable hide header on room addon
Browse files Browse the repository at this point in the history
  • Loading branch information
dwainscheeren committed Nov 16, 2020
1 parent b39bc73 commit 9405da9
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 82 deletions.
Expand Up @@ -6,48 +6,41 @@
panel: true
cards:
{% if _dd_global.installed and _dd_global.installed == 'false' %}
- type: custom:dwains-wrapper-card
css: |
max-width: 1465px;
padding-bottom: 50px;
margin: 0 auto;
font-family: "Open Sans", sans-serif !important;
card:
type: vertical-stack
cards:
- type: markdown
content: >
## Dwains Dashboard
- type: vertical-stack
cards:
- type: markdown
content: >
## Dwains Dashboard
Welcome,
Welcome,
Thank you for installing Dwains Dashboard.
Thank you for installing Dwains Dashboard.
To configure/build the dashboard you need to edit the files in the folder dwains-dashboard/configs/.
When you open these file you see some examples commented-out, only uncomment the lines you want to use!
If you want to know how you need to configure these files, check out the documentation (link below).
- type: horizontal-stack
cards:
- type: custom:button-card
template: more_page_list-item
name: Continue and load dashboard
icon: mdi:chevron-right
styles:
card:
- padding: 8px
tap_action:
action: call-service
service: dwains_dashboard.installed
- type: custom:button-card
template: more_page_list-item
name: Go to documentation for configuration
icon: mdi:file-document
styles:
card:
- padding: 8px
tap_action:
action: url
url_path: 'https://dwainscheeren.github.io/dwains-lovelace-dashboard/'
To configure/build the dashboard you need to edit the files in the folder dwains-dashboard/configs/.
When you open these file you see some examples commented-out, only uncomment the lines you want to use!
If you want to know how you need to configure these files, check out the documentation (link below).
- type: horizontal-stack
cards:
- type: custom:button-card
template: more_page_list-item
name: Continue and load dashboard
icon: mdi:chevron-right
styles:
card:
- padding: 8px
tap_action:
action: call-service
service: dwains_dashboard.installed
- type: custom:button-card
template: more_page_list-item
name: Go to documentation for configuration
icon: mdi:file-document
styles:
card:
- padding: 8px
tap_action:
action: url
url_path: 'https://dwainscheeren.github.io/dwains-lovelace-dashboard/'
{% else %}
- type: custom:dwains-wrapper-card
css: |
Expand Down
@@ -1,43 +1,45 @@
# dwains_dashboard

#Room addon view

{% for room in _dd_config.rooms %}
{% if room["addons"] %}
{% for addon in room["addons"] %}
- title: {{ addon["name"] }}
path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }}_addon_{{ addon["name"]|lower|replace("'", "_")|replace(" ", "_") }}
panel: true
visible: false
cards:
- type: custom:dwains-wrapper-card
css: |
max-width: 1465px;
padding-bottom: 50px;
margin: 0 auto;
font-family: "Open Sans", sans-serif !important;
card:
type: vertical-stack
cards:
#Header
- type: custom:dwains-header-card
title: {{ addon["name"] }}
subtitle: {{ room["name"] }}
navigation_path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }}
icon: {{ _dd_icons.menu_back|default('mdi:chevron-left') }}
#Start for a custom more page
- type: custom:dwains-wrapper-card
css: |
padding: 11px;
card:
type: vertical-stack
cards:
!include
- ../../../../../../../{{ addon["path"] }}
- name: {{ addon["name"] }}
{% if addon["data"] %}
data: '{{ addon["data"]|tojson }}'
{% endif %}
{% endfor %}
{% endif %}
# dwains_dashboard

#Room addon view

{% for room in _dd_config.rooms %}
{% if room["addons"] %}
{% for addon in room["addons"] %}
- title: {{ addon["name"] }}
path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }}_addon_{{ addon["name"]|lower|replace("'", "_")|replace(" ", "_") }}
panel: true
visible: false
cards:
- type: custom:dwains-wrapper-card
css: |
max-width: 1465px;
padding-bottom: 50px;
margin: 0 auto;
font-family: "Open Sans", sans-serif !important;
card:
type: vertical-stack
cards:
{% if addon["show_header"] != 'false' %}
#Header
- type: custom:dwains-header-card
title: {{ addon["name"] }}
subtitle: {{ room["name"] }}
navigation_path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }}
icon: {{ _dd_icons.menu_back|default('mdi:chevron-left') }}
{% endif %}
#Start for a custom more page
- type: custom:dwains-wrapper-card
css: |
padding: 11px;
card:
type: vertical-stack
cards:
!include
- ../../../../../../../{{ addon["path"] }}
- name: {{ addon["name"] }}
{% if addon["data"] %}
data: '{{ addon["data"]|tojson }}'
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}

0 comments on commit 9405da9

Please sign in to comment.