change the html output for annots
This commit is contained in:
parent
c1e1501649
commit
aaeb1600dd
1 changed files with 4 additions and 4 deletions
8
bot.py
8
bot.py
|
@ -49,15 +49,15 @@ TEMPLATE_HTML = (
|
|||
"<b>{{ labels.alertname }}</b>"
|
||||
"{% if labels.instance is defined %} {{ labels.instance }}{% endif %}"
|
||||
"{% if annotations.summary is defined %}"
|
||||
"<br/>"
|
||||
"<blockquote>{{ annotations.summary }}</blockquote>"
|
||||
"<br/><blockquote>{{ annotations.summary }}</blockquote>"
|
||||
"{% else %}"
|
||||
"<br/>"
|
||||
"<ul>"
|
||||
"<blockquote>"
|
||||
"{% for key, value in annotations.items() %}"
|
||||
"<li><b>{{ key | capitalize }} :</b> {{ value }}</li>"
|
||||
"<b>{{ key | capitalize }} :</b> {{ value }}<br/>"
|
||||
"{% endfor %}"
|
||||
"</ul>"
|
||||
"</blockquote>"
|
||||
"{% endif %}"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue