diff options
Diffstat (limited to 'views/tag.html')
-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> |