{{#Name=Display Notifications}} {{#Description=Displays system notifications}} {{#Version=1.0}} {{#Author=HomeSeer}} {{#CanBeDeleted=False}} {{#SaveList=save_title_size,save_title_color,save_title_bold,save_summary_only,save_notification_text_size,save_notification_text_color,save_notification_background_color}} {{includefileraw Dashboards/Cards/Custom/Common/CommonHeader.html}} {{#get settings that will also be used in the autogenerate settings dialog. This fills the arrays above}} {{sections[index]="Title"}} {{title_size=get_value 'save_title_size' '18' 'Size' 'text'}} {{title_color=get_value 'save_title_color' '#000000' 'Color' 'color'}} {{title_bold=get_value 'save_title_bold' 'on' 'Bold' 'toggle'}} {{sections[index]="Summary"}} {{include_summary=get_value 'include_summary' 'on' 'Display' 'toggle'}} {{sections[index]="Notification"}} {{notification_text_size=get_value 'save_notification_text_size' '14' 'Size' 'text'}} {{notification_text_color=get_value 'save_notification_text_color' '#000000' 'Color' 'color'}} {{notification_bold=get_value 'save_notification_bold' '' 'Bold' 'toggle'}} {{notification_background_color=get_value 'save_notification_background_color' '#FFFFFF' 'Background Color' 'color'}} {{# normal display HTML is here. This is what is displayed when viewing the card in non-edit mode}}
Notifications
{{for notification in notification_list}}
{{cd=notification_category_details notification.category}} {{cd.icon}} {{notification.title}}
{{if include_summary }}
{{notification.message}}

{{else}} {{end}}
{{format_date notification.date_time_issued}} {{if notification.is_read}} {{end}}
{{end}}
{{#if we are not in edit mode, don't bother including the edit mode content}} {{if dbs.edit_mode}} {{# card settings dialog, the second tab autogenerates settings based on values added to the settings arrays. Custom settings HTML can be added}} {{#this dialog has 2 tabs, one for formatting the card, the other for card content}} {{# w=widget class, dashboard=dashboard name, d=device}}
{{includefileraw Dashboards/Cards/Custom/Common/CommonScript.html}} {{else}} {{end}}