Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Notification system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Turris
Notification system
Commits
c6013b61
Commit
c6013b61
authored
Aug 22, 2018
by
Martin Matějek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sample plugin and templates
parent
0c6a0a3e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
plugins/simple.yml
plugins/simple.yml
+32
-0
templates/simple/complex.j2
templates/simple/complex.j2
+13
-0
templates/simple/simple.j2
templates/simple/simple.j2
+8
-0
No files found.
plugins/simple.yml
0 → 100644
View file @
c6013b61
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
templates/simple/complex.j2
0 → 100644
View file @
c6013b61
{% 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 %}
templates/simple/simple.j2
0 → 100644
View file @
c6013b61
{% if media == 'html' %}
<p>
html rendered message: {{ message }}
</p>
{% else %}
= Simple message =
Message: {{message}}
{% endif %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment