Skip to content

Fix template color head table in email template#859

Closed
agareev wants to merge 2 commits intoprometheus:masterfrom
agareev:master
Closed

Fix template color head table in email template#859
agareev wants to merge 2 commits intoprometheus:masterfrom
agareev:master

Conversation

@agareev
Copy link

@agareev agareev commented Jun 9, 2017

No description provided.

{{ if gt (len .Alerts.Firing) 0 }}
<td class="alert alert-warning">
{{ end }}
{{ if gt (len .Alerts.Resolved) 0 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both of these can be true, you want an else here.

@agareev
Copy link
Author

agareev commented Jun 10, 2017

I've fixed conditionals.

@agareev
Copy link
Author

agareev commented Jun 13, 2017

@brian-brazil

@brian-brazil
Copy link
Contributor

This logic doesn't make sense. Some alerts being resolved does not mean things are okay, as there are still alerts firing.

@agareev
Copy link
Author

agareev commented Jun 13, 2017

I haven't understand what did you mean (sorry for my bad english).
Isn't my pull request need?

@mxinden
Copy link
Member

mxinden commented Jul 31, 2017

@brian-brazil Could you help @agareev with this PR again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants