Base64 encode note titles
This commit is contained in:
parent
eb0c264ad7
commit
6f8796c83f
6 changed files with 78 additions and 22 deletions
|
|
@ -1,3 +1,15 @@
|
|||
{{define "navLinks"}}
|
||||
{{end}}
|
||||
{{define "navExtra"}}
|
||||
<form class="row row-cols-lg-auto align-items-center" method="GET" action="{{ .urlNew }}">
|
||||
<div class="col-12">
|
||||
<input class="form-control mr-sm-2" type="text" placeholder="Title" aria-label="Title" name="title">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button class="btn btn-success my-2 my-sm-0" type="submit">New Note</button>
|
||||
</div>
|
||||
</form>
|
||||
{{end}}
|
||||
{{define "base"}}
|
||||
<!doctype html>
|
||||
<html lang='en'>
|
||||
|
|
@ -23,7 +35,9 @@
|
|||
<li class="nav-item">
|
||||
<a class="nav-link" href="/notes/">All Notes</a>
|
||||
</li>
|
||||
{{template "navLinks" .}}
|
||||
</ul>
|
||||
{{template "navExtra" .}}
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue