Fix missing button on embedded silence form

This commit is contained in:
Tobias Schmidt 2016-09-01 17:11:26 -04:00
parent 16c6d120d6
commit 697c704076
4 changed files with 63 additions and 63 deletions

View File

@ -83,7 +83,7 @@ func templateDefaultTmpl() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "template/default.tmpl", size: 15667, mode: os.FileMode(420), modTime: time.Unix(1472465564, 0)}
info := bindataFileInfo{name: "template/default.tmpl", size: 15667, mode: os.FileMode(420), modTime: time.Unix(1472759488, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -182,6 +182,7 @@ type bintree struct {
Func func() (*asset, error)
Children map[string]*bintree
}
var _bintree = &bintree{nil, map[string]*bintree{
"template": &bintree{nil, map[string]*bintree{
"default.tmpl": &bintree{templateDefaultTmpl, map[string]*bintree{}},
@ -234,4 +235,3 @@ func _filePath(dir, name string) string {
cannonicalName := strings.Replace(name, "\\", "/", -1)
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
}

View File

@ -9,13 +9,13 @@
<script src="lib/angular-route.min.js"></script>
<script src="lib/angular-resource.min.js"></script>
<script src="lib/angular-moment.min.js"></script>
<script src="lib/ui-bootstrap-custom-tpls-2.0.1.min.js"></script>
<script src="lib/ui-bootstrap-custom-tpls-2.0.1.min.js"></script>
<script src="app/js/app.js"></script>
<link rel="stylesheet" href="lib/kube.min.css">
<link rel="stylesheet" href="app/css/main.css">
<link rel="stylesheet" href="lib/bootstrap.min.css">
<link rel="stylesheet" href="lib/bootstrap.min.css">
<title>AlertManager Prometheus</title>
</head>

View File

@ -17,14 +17,14 @@
<div class="right">
<div ng-show="alert.inhibited" class="left lbl muted-lbl">inhibited</div>
<div ng-show="alert.silenced" class="left lbl muted-lbl"><a ng-href="/#/silences?hl={{ alert.silenced }}">silenced</a></div>
<button type="black" disabled small>Since {{ alert.startsAt | amCalendar }}</button>
<button class="silence-button" type="black" ng-click="toggleSilenceForm()" small upper>Silence</button>
</div>
</div>
<div class="silence-alert" ng-show="showSilenceForm">
<silence-form silence="silence"></silence-form>
<silence-form silence="silence" form-title="Silence" form-subtitle="Stop sending notifications for this alert" button-text="Create"></silence-form>
</div>
<div class="detail group" ng-show="showDetails">
@ -37,4 +37,4 @@
</tbody>
</table>
</div>
</div>
</div>

File diff suppressed because one or more lines are too long