-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
183 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% load i18n %} | ||
|
||
<td class="col-xs-1">[[time(silence.startsAt)]]</td> | ||
<td class="col-xs-1">[[time(silence.endsAt)]]</td> | ||
<td class="col-xs-3 text-wrap"> | ||
<ul class="list-inline"> | ||
<li v-for="match in silence.matchers"> | ||
<a @click="addSilenceLabel(match.name, match.value)" class="label label-warning"> | ||
[[match.name]]:[[match.value]] | ||
</a> | ||
</li> | ||
</ul> | ||
</td> | ||
<td class="col-xs-3" v-html="urlize(silence.comment)"></td> | ||
<td class="col-xs-3">[[silence.createdBy]]</td> | ||
|
||
<td style="col-xs-1"> | ||
<a @click="$root.expireSilence(silence.id)" class="btn btn-warning btn-xs">{% translate "Expire" %}</a> | ||
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% load i18n %} | ||
{% load promgen %} | ||
<div id="silenceTableModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="silenceModalLabel"> | ||
<div class="modal-dialog modal-lg" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" @click="state.show = false" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h4 class="modal-title" id="silenceModalLabel">Silence</h4> | ||
</div> | ||
<div class="modal-body" style="padding:10px 30px;"> | ||
|
||
<div class="row mb-4"> | ||
<div class="col-md-12"> | ||
<div style="display: flex;align-items: center;"> | ||
<input type="text" placeholder="Input filter matchers" v-model="form.label" class="form-control"> | ||
<button type="button" class="btn btn-primary ml-2" @click="addFilterLabel">+</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="row mb-4"> | ||
<div class="col-md-12"> | ||
<div class="labels"> | ||
<ul class="list-inline promgen-labels-list"> | ||
<li v-for="label in state.labels"> | ||
<div class="promgen-label-target"> | ||
<span>[[label]]</span> | ||
<span @click="removeFilterLabel(label)" aria-hidden="true" class="promgen-label-close">×</span> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<table class="table table-bordered table-condensed table-responsive"> | ||
<thead> | ||
<tr> | ||
<th>Starts</th> | ||
<th>Ends</th> | ||
<th>Matchers</th> | ||
<th>Comment</th> | ||
<th>Created by</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr v-for="silence in filteredSilences"> | ||
{% include 'promgen/silence_row.html' %} | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |