package admin
import "fmt"
templ (a *AdminPlugin) page() {
}
templ (a *AdminPlugin) showPassword(entry PassEntry) {
ID{ fmt.Sprintf("%d", entry.ID) }
Password{ entry.Secret }:{ entry.Pass }
}
templ (a *AdminPlugin) entries(items []PassEntry) {
if len(items) == 0 {
No items
}
for _, entry := range items {
-
{ fmt.Sprintf("%d", entry.ID) }
}
}
templ renderError(err error) {
{ err.Error() }
}
templ vars(items []configEntry) {
Key |
Value |
for _, item := range items {
{ item.Key } | { item.Value } |
}
if len(items) == 0 {
No data |
}
}