Compare commits
2 Commits
a8fb7f62ad
...
965d2c87f5
Author | SHA1 | Date | |
---|---|---|---|
965d2c87f5 | |||
d22f3e123a |
|
@ -664,3 +664,10 @@ input.input-line, input.input-line:active {
|
|||
.search.input.is-error {
|
||||
outline: red solid 4px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
background: #deeeee;
|
||||
color: #444;
|
||||
border-radius: 3px;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
|
8
main.go
8
main.go
|
@ -937,8 +937,16 @@ func renderLinks(pageText string, edit bool) string {
|
|||
s = strings.TrimSuffix(s, "]]")
|
||||
s = strings.TrimSpace(s)
|
||||
if tag {
|
||||
switch s {
|
||||
case "TODO":
|
||||
return fmt.Sprint(`[ ] `)
|
||||
case "DONE":
|
||||
return fmt.Sprint(`[X] `)
|
||||
default:
|
||||
return fmt.Sprintf(`<a href=%q class="tag">%s</a>`, cleanNameURL(s), s)
|
||||
}
|
||||
}
|
||||
|
||||
editPart := ""
|
||||
if edit {
|
||||
editPart = "edit/"
|
||||
|
|
|
@ -44,9 +44,5 @@
|
|||
.edit {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: #444;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user