github.com/nizigama/simple-note@v0.0.0-20210501235539-2cc762e06fe8/templates/index.html (about) 1 <!doctype html> 2 <html lang="en"> 3 4 <head> 5 <!-- Required meta tags --> 6 <meta charset="utf-8"> 7 <meta name="viewport" content="width=device-width, initial-scale=1"> 8 9 <!-- Bootstrap CSS --> 10 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" 11 integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous"> 12 13 <title>Simple note app</title> 14 </head> 15 16 <body> 17 18 {{ if index . "loggedIn" }} 19 20 {{ template "protectedHeader" }} 21 22 {{ else }} 23 24 {{ template "openHeader" }} 25 26 {{ end }} 27 28 <div class="container-fluid"> 29 <div class="container mt-4"> 30 <p class="fs-2 fw-bold">Note takers</p> 31 32 33 <div class="row"> 34 {{ range index . "users" }} 35 <div class="col-sm-4"> 36 <div class="text-center"> 37 <img src="/get-picture?name={{ .Picture }}" class="rounded" alt="..." height="100" width="100"> 38 <br> 39 <h5>{{ .FirstName }} {{ .LastName }}</h5> 40 </div> 41 </div> 42 {{ end }} 43 </div> 44 45 <!-- <div class="row mt-4"> 46 <div class="col-sm"></div> 47 <div class="col-sm"> 48 <nav aria-label="Page navigation example" class="text-center"> 49 <ul class="pagination"> 50 <li class="page-item"><a class="page-link" href="#">Previous</a></li> 51 <li class="page-item"><a class="page-link" href="#">1</a></li> 52 <li class="page-item"><a class="page-link" href="#">2</a></li> 53 <li class="page-item"><a class="page-link" href="#">3</a></li> 54 <li class="page-item"><a class="page-link" href="#">Next</a></li> 55 </ul> 56 </nav> 57 </div> 58 <div class="col-sm"></div> 59 60 </div> --> 61 62 </div> 63 64 65 66 67 <div style="position: absolute;bottom: 10px; left: 0;right: 0;text-align: center;">Copyrights @{{ index . "year" }}</div> 68 </div> 69 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" 70 integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" 71 crossorigin="anonymous"></script> 72 73 </body> 74 75 </html>