diff options
author | jan <jan@ruken.pw> | 2015-12-29 22:13:09 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2015-12-29 22:13:09 (UTC) |
commit | 10f014d5da7f1a35d2fc6cf0aa617a5ec4bb074f (patch) | |
tree | f0cff6de142552fa95e5f011ccb401fb89d40711 /views | |
parent | 365bd4578a0c9b2e4ae5938d280609bd9af37faf (diff) |
UI für die simple pagination. 'add' und 'sub' template-funktionen hinzugefügt.
Diffstat (limited to 'views')
-rw-r--r-- | views/tag.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/tag.html b/views/tag.html index 788083f..3e89a7b 100644 --- a/views/tag.html +++ b/views/tag.html | |||
@@ -3,6 +3,7 @@ | |||
3 | <head> | 3 | <head> |
4 | {{ template "materialize" }} | 4 | {{ template "materialize" }} |
5 | <title>grilist</title> | 5 | <title>grilist</title> |
6 | <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> |
7 | </head> | 8 | </head> |
8 | <body> | 9 | <body> |
@@ -15,6 +16,11 @@ | |||
15 | {{ template "card" . }} | 16 | {{ template "card" . }} |
16 | {{ end }} | 17 | {{ end }} |
17 | </div> | 18 | </div> |
19 | <ul class="pagination center-align"> | ||
20 | <li class="{{ if eq .currentPage 1 }}disabled{{ else }}waves-effect{{ end }}"><a href="/tag/{{ .tag }}/{{ sub .currentPage 1 }}"><i class="material-icons">chevron_left</i></a></li> | ||
21 | <li class="active"><a href="#!">{{ .currentPage }}</a></li> | ||
22 | <li class="{{ if eq .currentPage .pageCount }}disabled{{ else }}waves-effect{{ end }}"><a href="/tag/{{ .tag }}/{{ add .currentPage 1 }}"><i class="material-icons">chevron_right</i></a></li> | ||
23 | </ul> | ||
18 | </div> | 24 | </div> |
19 | </div> | 25 | </div> |
20 | </body> | 26 | </body> |