Improvements
This commit is contained in:
parent
4abe6811d3
commit
1d6956f81c
2
.editorconfig
Normal file
2
.editorconfig
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[*.go]
|
||||||
|
indent_size = 8
|
|
@ -142,6 +142,8 @@ func (checklist *Checklist) Render(w io.Writer) error {
|
||||||
buf.WriteString(`<span class="icon is-medium">`)
|
buf.WriteString(`<span class="icon is-medium">`)
|
||||||
if item.Checked {
|
if item.Checked {
|
||||||
buf.WriteString(`<i class="fa fa-check-circle has-text-success"></i>`)
|
buf.WriteString(`<i class="fa fa-check-circle has-text-success"></i>`)
|
||||||
|
} else {
|
||||||
|
buf.WriteString(`<i class="fa fa-circle-thin"></i>`)
|
||||||
}
|
}
|
||||||
buf.WriteString(`</span>`)
|
buf.WriteString(`</span>`)
|
||||||
buf.WriteString(`<div class="checklist--item-text">`)
|
buf.WriteString(`<div class="checklist--item-text">`)
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
{{ define "navbar" }}
|
||||||
|
<a href="/{{ .Name }}" class="navbar-item">Back</a>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
<form action="/save/" method="post">
|
<form action="/save/" method="post">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user