mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-06 02:36:40 +00:00
added a footer
This commit is contained in:
parent
58ff4e0d17
commit
6c0e2ef558
4 changed files with 16 additions and 14 deletions
1
TODO.md
1
TODO.md
|
|
@ -3,3 +3,4 @@
|
|||
- [x] The mail field is case sensitive. Convert mail to lowercase before they are sent to InsertUser
|
||||
- [ ] All errors are fatal. Provide proper error handling.
|
||||
- [ ] Refactor UserStore code
|
||||
- [ ] Request-scoped [context](https://www.alexedwards.net/blog/organising-database-access)
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ import (
|
|||
"log"
|
||||
|
||||
_ "github.com/lib/pq" // postgresql database package
|
||||
|
||||
"github.com/rjNemo/go-wiki/models"
|
||||
)
|
||||
|
||||
// NewDB read the connection parameters to establish a connection to the
|
||||
|
|
@ -43,8 +41,8 @@ func NewContext(db *sql.DB) Context {
|
|||
type Store interface {
|
||||
CreateTable()
|
||||
Add(i interface{})
|
||||
Get(id int) (models.User, error)
|
||||
GetAll(id int) ([]models.User, error)
|
||||
Get(i interface{}) (interface{}, error)
|
||||
GetAll() (interface{}, error)
|
||||
Delete(id int)
|
||||
// Find(ex string)
|
||||
Update(id int, i interface{})
|
||||
|
|
|
|||
|
|
@ -69,6 +69,19 @@
|
|||
{{template "content" .}}
|
||||
</div>
|
||||
|
||||
<footer class="footer bg-light">
|
||||
<div class="container ">
|
||||
<span
|
||||
class="text-muted text-center text-sm-left d-block d-sm-inline-block"
|
||||
>
|
||||
© 2020 🐹Go-Wiki. All rights reserved.
|
||||
</span>
|
||||
<span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center"
|
||||
>Hand-crafted & made with 🍻
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
||||
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
|
||||
|
|
|
|||
|
|
@ -15,16 +15,6 @@
|
|||
>
|
||||
</div>
|
||||
|
||||
<!-- <div>
|
||||
<ul>
|
||||
{{ range $index, $entry := .Wikis }}
|
||||
<li>
|
||||
{{ $index }}: <a href="/view/{{ $entry.Title }}">{{ $entry.Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div> -->
|
||||
|
||||
<div>
|
||||
<h2>Go-Wiki Index</h2>
|
||||
<p>Some description</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue