Compare commits
No commits in common. "68a349f072888db8fb9cb7fbf616215a280e87af" and "551dcf5905740cb3b9a93c884a2d5efc80079531" have entirely different histories.
68a349f072
...
551dcf5905
3 changed files with 10 additions and 12 deletions
|
|
@ -10,10 +10,10 @@ base = "base.tmpl.html"
|
||||||
[static]
|
[static]
|
||||||
dir = "/var/www/gonotes/static"
|
dir = "/var/www/gonotes/static"
|
||||||
|
|
||||||
|
# These are not for changing!
|
||||||
|
root = "/static/"
|
||||||
assets = [
|
assets = [
|
||||||
{ path = "css/bootstrap.min.css", url = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" },
|
{ path = "css/bootstrap.min.css", url = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" },
|
||||||
{ path = "css/tiny-mde.min.css", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.css" },
|
{ path = "css/tiny-mde.min.css", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.css" },
|
||||||
{ path = "js/tiny-mde.min.js", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.js" },
|
{ path = "js/tiny-mde.min.js", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.js" },
|
||||||
{ path = "icons/pencil-square.svg", url = "https://raw.githubusercontent.com/twbs/icons/refs/heads/main/icons/pencil-square.svg" },
|
|
||||||
]
|
]
|
||||||
# These are not for changing!
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
{{define "title"}}All Notes{{end}}
|
{{define "title"}}All Notes{{end}}
|
||||||
{{define "main"}}
|
{{define "main"}}
|
||||||
<div class="list-group list-group-flush">
|
<ul>
|
||||||
{{range $title := .titles}}
|
{{range $title := .titles}}
|
||||||
<a class="list-group-item list-group-item-action d-flex justify-content-between"
|
<li>
|
||||||
href="{{$title}}/">
|
<a href="{{$title}}/">{{$title}}</a>
|
||||||
<span>{{$title}}</span>
|
</li>
|
||||||
<img src="/static/icons/pencil-square.svg" alt="Edit">
|
|
||||||
</a>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</ul>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
<div>
|
<div>
|
||||||
{{.note.BodyRendered}}
|
{{.note.BodyRendered}}
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex justify-content-between">
|
<div>
|
||||||
<a class="btn btn-primary" href="{{.urlEdit}}">Edit</a>
|
<a href="{{.urlEdit}}">Edit</a>
|
||||||
<a class="btn btn-danger" href="{{.urlDelete}}">Delete</a>
|
<a href="{{.urlDelete}}">Delete</a>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue