Skip to content

Commit

Permalink
Showed name variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Oct 4, 2018
1 parent 51ec453 commit f264e78
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dkron/bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -19287,7 +19287,7 @@ func staticNode_modulesRickshawVendorD3V3Js() (*asset, error) {
return a, nil
}

var _templatesDashboardHtmlTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\xdf\x6f\xdb\x36\x10\x7e\xcf\x5f\x71\x15\x06\x34\x01\x26\xf1\xa1\x6f\x9d\x6c\x20\x4b\x0a\xac\xeb\x9a\x06\x6d\x30\x60\x18\x86\xe0\x24\xd2\x12\x6d\x8a\xe4\x48\xca\x8d\x11\xf8\x7f\x1f\x68\x4a\x09\x25\x3b\x3f\xdc\x38\x7b\x12\x79\x24\xbf\xef\xf8\xdd\x9d\x4e\x76\xfe\xe6\xfc\xcb\xd9\xd5\x5f\x97\x1f\xa0\x76\x8d\x98\x1e\xe5\xfe\x01\xb2\x4a\x51\xeb\x49\x42\x17\x46\xc9\x64\x7a\x04\x90\xd7\x0c\xa9\x1f\x00\xe4\x8e\x3b\xc1\xa6\xe7\x7e\x2d\x27\x61\x72\x14\x56\x04\x97\x0b\x30\x4c\x4c\x12\xeb\x56\x82\xd9\x9a\x31\x97\x40\x6d\xd8\x6c\x92\xdc\xde\x42\x76\xa6\x9a\x46\xc9\xec\xd4\x5a\xe6\xec\x25\xba\x1a\xd6\x6b\x22\x15\x65\xd7\x8d\xa2\xad\x60\x96\x14\x4a\x39\xeb\x0c\x6a\x42\xb9\x75\xa4\xb4\x91\x29\x6b\xb8\xcc\x4a\x6b\x93\xe9\x0b\xd8\x3c\x22\x6a\x7d\x10\x9c\x9a\x57\xb5\xe0\x55\xed\x62\x34\x5b\x1a\xae\x1d\x58\x53\x3e\x72\x7a\x1e\x1f\xd6\x58\x2e\xb2\xb9\x4d\xa6\x39\x09\x87\x7b\x39\x9f\x05\x35\x90\x0f\x65\xd5\x0a\x34\xfd\x73\x84\xfa\x32\xd0\xd4\xa8\xd6\xb1\xe1\xec\x87\x09\xe6\x96\x50\xb4\x75\xa1\xd0\xd0\x03\xdd\x7d\xfe\x6f\xcb\xcc\x2a\xe4\x4d\x18\x6f\x12\xe6\x20\x12\x8c\xd2\x72\x3e\xce\xca\x5d\x37\x78\x79\x31\x18\x5e\x2e\x6c\x8d\xdf\xef\x06\x51\x05\xfc\xe8\x4d\xe8\x3b\x42\xdf\x1d\x4e\x98\xdd\x2e\x1e\x36\xed\xb6\x28\x5e\x47\xed\x52\x51\xd6\x70\x63\x94\x21\x82\x17\xd1\x74\xef\xea\x7e\x26\xec\x41\x54\x8a\xe0\x1b\x45\x19\x99\xe3\x12\x03\x4a\x34\x3c\x38\x15\x52\xaa\xa4\xaf\x05\x2d\x70\x45\xb0\x75\xca\xb0\x99\x61\xb6\x3e\x6c\xe8\x5b\x9e\x46\xa4\xd6\x94\x64\x60\x79\x2a\x11\x6a\x65\x5c\xd9\x3a\xe0\xa5\x92\x4f\xe6\xc2\x0c\x97\x7e\x5f\xc6\x4b\x95\x80\x5b\x69\x36\x49\x78\x83\x15\x23\x37\xe9\xe6\xfc\x56\xb3\x38\x10\x6a\xac\x51\xe0\x00\x58\xa2\x81\xf3\x4f\x5f\xbf\x5c\x5c\x9f\x5e\x7e\xbc\xbe\x3c\xbd\xfa\x0d\x26\x30\x20\xb9\xfc\xd8\x31\x24\xbf\x74\x67\x7e\x3a\x9e\xb5\xb2\x74\x5c\x49\x38\x3e\x81\xdb\xce\xea\xed\x6f\xff\xa6\xe8\x30\x75\xaa\xaa\x04\x9b\x24\x4e\x29\xe1\xb8\x4e\xfe\x79\x7b\x92\x75\xe3\xe3\x93\x6e\xfb\x3a\x0c\xe2\x00\xe6\x24\xb4\x7e\x3f\x2c\x14\x5d\x75\x3a\x50\xbe\x84\x52\xa0\xb5\x93\x44\xe2\xb2\x40\x03\xe1\x91\x52\x36\xc3\x56\xb8\x7e\x3a\xe3\x37\x8c\xa6\x4e\xe9\x04\x8c\xf2\xf4\x12\x97\xbc\x42\xef\x67\xd2\x5f\x37\x06\x2b\x95\x74\xc8\x25\x33\x77\xab\x00\xf9\x9b\x34\x85\x33\x25\x04\x6a\xcb\x28\xdc\x23\x40\x9a\x46\xbb\xb6\x5c\x4a\xbd\xe7\x03\xa4\x0e\xeb\xc3\x8d\x46\x49\x99\x81\xa2\x75\x6e\x04\xe3\xaf\x19\xac\x21\x5c\x61\x92\x8c\x90\x83\x98\x09\x0c\x94\x2d\x3b\x17\x7b\x33\x9a\x8a\xb9\x49\x92\x75\x67\xee\x96\x63\xb2\x10\x7d\x8d\xb2\x27\xb0\x26\x55\x52\xac\x92\xe9\xd5\x06\x35\xba\x6d\x4e\xfc\xbe\x47\x0f\xfb\x9c\x4a\x0b\x34\x9b\xb2\xf8\xdf\x36\xe7\x24\x88\xd4\x25\x73\x24\xf4\x67\xe4\x12\x36\x9f\x88\x63\x8d\xa3\x60\x15\x06\x25\x1d\x89\x92\x63\xbf\x2a\x54\xa5\x76\x94\x59\x9f\xfe\xd3\x9c\x37\xd5\x13\xef\x16\xde\x54\x64\xf3\x29\x9b\x16\x48\x2b\x96\x16\xdf\x33\x2d\xab\x84\x4c\xa1\xfb\x88\xc5\xe1\x6d\x28\x5f\x46\x69\x15\xa6\x47\xbb\x12\x68\x9f\x5c\xec\xa3\x0f\x3b\xd3\xe0\x5e\xad\x07\x10\x01\xf2\x56\xf4\x90\x0d\x72\x99\xfa\x37\x91\xf5\xdb\xfb\x52\x93\xb8\x1c\xab\x28\xf8\x56\x50\xf1\x11\x2d\x47\x7b\x01\x72\xde\x53\x56\x62\xa5\x6b\x9f\x04\x70\x37\x4a\xef\xbe\xe0\x7c\x52\x6c\x31\x01\x9c\xf7\xeb\x63\x1f\x86\x82\x7b\xc3\xd8\xd1\xfd\x3c\x27\x73\x55\xd8\xbd\xdd\x77\x68\x17\xf6\x01\xd7\x7f\x57\x85\xdd\xd7\xeb\x9c\xb4\x62\x2b\xa6\xdf\x18\x9a\xb2\xfe\x19\x2e\xee\xc3\x8a\x92\xc2\x57\xa6\x15\x84\x08\x3e\x18\xe5\x61\x68\xfb\xa1\xf1\xbf\x19\xf6\x88\x73\xed\x9c\x7e\x4f\x42\xfe\x67\xdc\x77\xa1\xee\xb5\x74\x5d\x08\x94\x8b\xbd\x55\x2b\x94\x5a\x3c\x14\x6f\x55\xbe\x50\xb4\x41\xed\x45\x93\x68\x78\x7b\xeb\x58\xa3\x05\x3a\x06\x9b\x66\xc1\xa4\x4b\x20\x5b\xaf\x9f\x68\x4b\xa1\x0f\x15\xca\x39\xd5\xf4\x36\x2e\x97\xcc\x44\x85\xb8\xa3\x6a\xb9\x1c\xb5\xa2\x5d\xad\x0a\x1c\xbb\x71\x69\xc9\xa4\x1b\x35\x9b\x71\x38\xb7\xdf\xfc\xdb\x81\x03\xc8\xf5\xb8\xd9\xb0\x1b\x97\x84\x1f\xdc\x10\x25\xff\x9f\xcc\x58\x9f\x4f\xeb\x75\x4e\xf4\x16\xf2\x56\x49\xed\xc7\xf6\x99\x35\x05\x33\xef\x63\xbe\x60\xba\xc0\x86\xbd\x0e\xe5\x1f\x9b\x6e\x3d\xa0\x0c\xa6\xd7\xa3\xfc\xe6\x94\xc1\x8a\x41\x81\xe5\x82\x49\x3a\xe0\xfe\x35\xd8\x5e\x87\xf8\x13\x5b\x59\x8d\x25\x1b\x30\xf6\xc6\xe7\x52\xee\x59\x3b\x39\x09\xdf\x6f\x39\x09\xff\xf5\xfc\x17\x00\x00\xff\xff\x35\xa9\x5e\xe0\xfc\x11\x00\x00")
var _templatesDashboardHtmlTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x58\x5f\x6f\xdb\x36\x10\x7f\xcf\xa7\xb8\x12\x03\xda\x02\x93\xf9\xd0\xb7\x4e\x36\x90\x25\x05\xd6\x75\x4d\x83\x36\x18\x30\x0c\x43\x70\x12\x69\x89\x36\x45\x72\x24\xe5\xc6\x08\xfc\xdd\x07\x9a\x96\x43\xc9\xce\x1f\x37\xce\x9e\x74\x3c\x92\xf7\x3b\xfe\xee\x8e\x47\x3b\x7f\x75\xfe\xe5\xec\xea\xaf\xcb\x0f\x50\xfb\x46\x4e\x4e\xf2\xf0\x01\x55\x65\x68\xcc\x98\xb0\xb9\xd5\x8a\x4c\x4e\x00\xf2\x9a\x23\x0b\x02\x40\xee\x85\x97\x7c\x72\x7b\x0b\xa3\x33\xdd\x34\x5a\x8d\x2e\xb0\xe1\xb0\x5a\xe5\x34\xce\x9c\xc4\x65\x52\xa8\x39\x58\x2e\xc7\xc4\xf9\xa5\xe4\xae\xe6\xdc\x13\xa8\x2d\x9f\x8e\x49\xb2\xf9\xd4\x39\xee\xdd\x25\xfa\x1a\x56\x2b\xaa\x34\xe3\xd7\x8d\x66\xad\xe4\x8e\x16\x5a\x7b\xe7\x2d\x1a\xca\x84\xf3\xb4\x74\x89\x6a\xd4\x08\x35\x2a\x9d\x23\x93\x67\xa0\x05\x8b\x68\xcc\x51\xec\xd4\xa2\xaa\xa5\xa8\x6a\x9f\x5a\x73\xa5\x15\xc6\x83\xb3\xe5\x03\xbb\x67\xe9\x66\x83\xe5\x7c\x34\x73\x64\x92\xd3\xb8\xb9\xa3\xf3\x49\xa6\x7a\xf4\xa1\xaa\x5a\x89\xb6\xfb\x0e\xac\x3e\xcf\x68\x66\x75\xeb\x79\x7f\xf4\xc3\x00\x33\x47\x19\xba\xba\xd0\x68\xd9\x91\xce\x3e\xfb\xb7\xe5\x76\x19\xf3\x26\xca\xeb\x84\x39\x0a\x05\x83\xb4\x9c\x0d\xb3\x72\xdf\x09\x9e\x5f\x0c\x56\x94\x73\x57\xe3\xf7\xad\x90\x54\xc0\x8f\x9e\x84\xbd\xa3\xec\xdd\xf1\x88\xd9\xef\xe2\x71\xd3\x6e\x07\xe2\x65\xd8\x2e\x35\xe3\x8d\xb0\x56\x5b\x2a\x45\x91\x0c\x0f\xae\xee\x27\x9a\x3d\x0a\x4b\x89\xf9\x46\x33\x4e\x67\xb8\xc0\x68\x25\x11\x8f\x0e\x85\x8c\x69\x15\x6a\xc1\x48\x5c\x52\x6c\xbd\xb6\x7c\x6a\xb9\xab\x8f\x1b\xfa\x56\x64\x09\xa8\xb3\x25\xed\x69\x1e\x4b\x84\x5a\x5b\x5f\xb6\x1e\x44\xa9\xd5\xa3\xb9\x30\xc5\x45\x58\x37\x12\xa5\x26\xe0\x97\x86\x8f\x89\x68\xb0\xe2\xf4\x26\x5b\xef\xdf\x69\x16\x47\xb2\x9a\x72\x14\x31\x00\x16\x68\xe1\xfc\xd3\xd7\x2f\x17\xd7\xa7\x97\x1f\xaf\x2f\x4f\xaf\x7e\x83\x31\xf4\x40\x2e\x3f\x6e\x10\xc8\x2f\x9b\x3d\x3f\xbd\x99\xb6\xaa\xf4\x42\x2b\x78\xf3\x16\x6e\x37\xda\xa0\x7f\xfd\x37\x43\x8f\x99\xd7\x55\x25\xf9\x98\x78\xad\xa5\x17\x86\xfc\xf3\xfa\xed\x68\x23\xbf\x79\xbb\x59\xbe\x8a\x42\x1a\xc0\x9c\xc6\x77\x40\x10\x0b\xcd\x96\x1b\x1e\x98\x58\x40\x29\xd1\xb9\x31\x51\xb8\x28\xd0\x42\xfc\x64\x8c\x4f\xb1\x95\xbe\x1b\x4e\xc5\x0d\x67\x99\xd7\x86\x80\xd5\x01\x5e\xe1\x42\x54\x18\xfc\x24\xdd\x71\x53\x63\xa5\x56\x1e\x85\xe2\x76\x3b\x0b\x90\xbf\xca\x32\x38\xd3\x52\xa2\x71\x9c\xc1\x9d\x05\xc8\xb2\x64\xd5\x8e\x4b\x59\xf0\xbc\x67\x69\x63\xeb\xc3\x8d\x41\xc5\xb8\x85\xa2\xf5\x7e\x60\x26\x1c\x33\x6a\x63\xb8\xe2\x80\x0c\x2c\x47\x32\x09\xf4\x98\x2d\x37\x2e\x76\x6a\xb4\x15\xf7\x63\x32\xda\xec\xd9\x4e\xa7\x60\x31\xfa\x06\x55\x07\xe0\x6c\xa6\x95\x5c\x92\xc9\xd5\xda\x6a\x72\xda\x9c\x86\x75\x0f\x6e\x0e\x39\x95\x15\x68\xd7\x65\xf1\xbf\x2d\xce\x69\x24\x69\x93\xcc\x09\xd1\x9f\x51\x28\x58\x3f\x11\x87\x1c\x27\xc1\x2a\x2c\x2a\x36\x20\x25\xc7\x6e\x56\xea\x4a\xef\x29\xb3\x2e\xfd\x27\xb9\x68\xaa\x47\xee\x16\xd1\x54\x74\xfd\xae\xcd\x0a\x64\x15\xcf\x8a\xef\x23\xa3\x2a\x42\x27\xb0\xef\x45\x8b\xfd\xa3\x31\xb1\x48\x72\x2c\x0e\x4f\xf6\x65\xd3\x21\x89\xd9\xa5\x02\xec\xcd\x89\x3b\xea\xee\xb1\x08\x90\xb7\xb2\x33\xd9\xa0\x50\x59\xb8\x96\x5c\x58\xde\xd5\x9d\xc2\xc5\x90\x52\x29\x76\x22\x8c\x0f\x10\x3b\x58\x0b\x90\x8b\x0e\xb2\x92\x4b\x53\x87\x8c\x80\xad\x94\x6d\x9f\x73\x21\x43\x76\x90\x00\xce\xbb\xf9\xa1\x0f\x7d\xc2\x83\x62\xe8\xe8\x61\x9e\xd3\x99\x2e\xdc\xc1\xee\x7b\x74\x73\x77\x8f\xeb\xbf\xeb\xc2\x1d\xea\x75\x4e\x5b\xb9\x13\xd3\x6f\x1c\x6d\x59\xff\x0c\x17\x77\x61\x45\xc5\xe0\x2b\x37\x1a\x62\x04\xef\x8d\x72\x3f\xb4\x9d\x68\xc3\x0f\x88\x03\xe2\x5c\x7b\x6f\xde\xd3\x58\x0c\x23\x11\x5a\xd2\xe6\x8e\xba\x2e\x24\xaa\xf9\xc1\xac\x15\x5a\xcf\xef\x8b\xb7\x2e\x9f\x49\x5a\xaf\xf6\x92\x41\x22\xde\xde\x7a\xde\x18\x89\x9e\xc3\xba\x73\x70\xe5\x09\x8c\x56\xab\x47\x7a\x54\x6c\x4a\x85\xf6\x5e\x37\x9d\x4e\xa8\x05\xb7\x49\x21\xee\xa9\x5a\xa1\x06\x7d\x69\x5f\xdf\x02\xcf\x6f\x7c\x56\x72\xe5\x07\x9d\x67\x18\xce\xdd\x36\xb0\x1b\x38\x80\xdc\x0c\x3b\x0f\xbf\xf1\x64\xcf\x4f\xf1\xf4\x2e\xfb\x93\x5b\x17\x92\x2b\x5c\x67\x66\x07\x66\xa7\xbe\x0e\x83\xfe\xcc\x9b\x82\xdb\xf7\x29\x5e\x54\x6d\x6f\xd0\xa3\x43\xfe\xb1\xee\xe3\x3d\xc8\xa8\x7a\x39\xc8\x6f\x5e\x5b\xac\x38\x14\x58\xce\xb9\x62\x3d\xec\x5f\xa3\xee\x65\x80\x3f\xf1\xa5\x33\x58\xf2\x1e\x62\xa7\x7c\x2a\xe4\x81\x85\x94\xd3\xf8\xb2\xcb\x69\xfc\x4b\xe8\xbf\x00\x00\x00\xff\xff\x55\xff\x4d\xeb\x23\x12\x00\x00")

func templatesDashboardHtmlTmplBytes() ([]byte, error) {
return bindataRead(
Expand All @@ -19302,7 +19302,7 @@ func templatesDashboardHtmlTmpl() (*asset, error) {
return nil, err
}

info := bindataFileInfo{name: "templates/dashboard.html.tmpl", size: 4604, mode: os.FileMode(420), modTime: time.Unix(1536077203, 0)}
info := bindataFileInfo{name: "templates/dashboard.html.tmpl", size: 4643, mode: os.FileMode(420), modTime: time.Unix(1538672872, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Expand Down
2 changes: 2 additions & 0 deletions dkron/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type commonDashboardData struct {
Path string
APIPath string
Keyspace string
Name string
}

func newCommonDashboardData(a *Agent, nodeName, path string) *commonDashboardData {
Expand All @@ -44,6 +45,7 @@ func newCommonDashboardData(a *Agent, nodeName, path string) *commonDashboardDat
Path: fmt.Sprintf("%s%s", path, dashboardPathPrefix),
APIPath: fmt.Sprintf("%s%s", path, apiPathPrefix),
Keyspace: a.config.Keyspace,
Name: Name,
}
}

Expand Down
1 change: 1 addition & 0 deletions dkron/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package dkron

var Name = "Dkron"
var Version = "devel"
6 changes: 3 additions & 3 deletions templates/dashboard.html.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html ng-app="dkron">
<head>
<title>Dkron</title>
<title>{{ .Common.Name }}</title>

<link rel="stylesheet" href="{{ .Common.AssetsPath }}/node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ .Common.AssetsPath }}/css/app.css">
Expand Down Expand Up @@ -53,7 +53,7 @@

<!-- Main title -->
<div class="brand">
<a class="logo" href="{{ .Common.Path }}"><img src="{{ .Common.AssetsPath }}/img/dkron-badge-bw.png"/> Dkron</a>
<a class="logo" href="{{ .Common.Path }}"><img src="{{ .Common.AssetsPath }}/img/dkron-badge-bw.png"/> {{ .Common.Name }}</a>
</div>
</div>

Expand Down Expand Up @@ -92,7 +92,7 @@
<div class="container text-center">
<ul class="nav">
<li>
<p class="navbar-text">Dkron {{ .Common.Version }}</p>
<p class="navbar-text">{{ .Common.Name }} {{ .Common.Version }}</p>
</li>
<li>
<p class="navbar-text">Member: {{ .Common.MemberName }}</p>
Expand Down

0 comments on commit f264e78

Please sign in to comment.