mirror of
https://github.com/cuigh/swirl
synced 2024-12-28 23:02:02 +00:00
Fix bug
This commit is contained in:
parent
aa9481ac7a
commit
1b014b17f7
2
Gopkg.lock
generated
2
Gopkg.lock
generated
@ -59,7 +59,7 @@
|
||||
"util/lazy",
|
||||
"util/run"
|
||||
]
|
||||
revision = "92f7532da4ac19d55266a770847167bb9fb5130f"
|
||||
revision = "9855e0c983b3355b993c7b8af526a30594eccfe8"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
2
main.go
2
main.go
@ -28,7 +28,7 @@ func main() {
|
||||
misc.BindOptions()
|
||||
|
||||
app.Name = "Swirl"
|
||||
app.Version = "0.7.5"
|
||||
app.Version = "0.7.6"
|
||||
app.Desc = "A web management UI for Docker, focused on swarm cluster"
|
||||
app.Action = func(ctx *app.Context) {
|
||||
err := config.UnmarshalOption("swirl", &misc.Options)
|
||||
|
@ -13,16 +13,16 @@
|
||||
<label for="{{id ? id : (name + "-" + value)}}">{{label}}</label>
|
||||
{{ end }}
|
||||
|
||||
{{ block radios(name, values, labels="", checked) }}
|
||||
{{ labels = eq(labels, "") ? values : labels }}
|
||||
{{ block radios(name, values, labels, checked) }}
|
||||
{{ labels = choose(labels, values) }}
|
||||
{{ range i, v := values }}
|
||||
<input id="{{ name + "-" + v }}" name="{{name}}" value="{{v}}" type="radio" class="is-checkradio"{{ if eq(checked, v) }} checked{{end}}>
|
||||
<label for="{{ name + "-" + v }}">{{ labels[i] }}</label>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ block select(name, values, labels="", selected, dt) }}
|
||||
{{ labels = eq(labels, "") ? values : labels }}
|
||||
{{ block select(name, values, labels, selected, dt) }}
|
||||
{{ labels = choose(labels, values) }}
|
||||
<select name="{{name}}"{{if dt}} data-type="{{dt}}"{{end}}>
|
||||
{{ range i, v := values }}
|
||||
<option value="{{ v }}"{{ if eq(selected, v) }} selected{{ end }}>{{ labels[i] }}</option>
|
||||
|
Loading…
Reference in New Issue
Block a user