Commit c6013b61 authored by Martin Matějek's avatar Martin Matějek

Add sample plugin and templates

parent 0c6a0a3e
actions:
- name: reject
title: Reject current update
command: updater --reject-update
- name: dummy
title: dummy action
command: /bin/true
templates:
- type: simple_message
supported_media:
- plain
- html
src: simple.j2
- type: complex_message
supported_media:
- plain
- html
- email
src: complex.j2
notifications:
- name: simple
template: simple_message
actions:
- dummy
- dismiss
- name: complex
template: complex_message
severity: error
persistent: True
actions:
- reject
- dismiss
{% if media == 'html' %}
<h1>Complex message</h1>
<p>Lorem ipsum dolor sit amet</p>
<p>
Message: {{ message }}
<br>
Message2: {{ message2 }}
</p>
{% else %}
[Complex message]
Message: {{message}}
Message2: {{ message2 }}
{% endif %}
{% if media == 'html' %}
<p>
html rendered message: {{ message }}
</p>
{% else %}
= Simple message =
Message: {{message}}
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment