1
0

header.tpl 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {{ define "header" }}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="description" content="{{.Title}}">
  9. <meta name="author" content="Gwyneth Llewelyn">
  10. <title>{{.Title}}</title>
  11. <!-- Google Web Fonts -->
  12. <link href="https://fonts.googleapis.com/css2?family=Cantarell&family=Cardo&display=swap" type="text/css" rel="stylesheet">
  13. <!-- Bootstrap Core CSS
  14. <link href="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->
  15. <!-- our modified bootstrap -->
  16. <link href="{{.URLPathPrefix}}/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
  17. <!-- Bootstrap-Dialog -->
  18. <!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.7/css/bootstrap-dialog.min.css" rel="stylesheet" type="text/css"> -->
  19. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/css/bootstrap-dialog.min.css" integrity="sha256-wstTM1F5dOf7cgnlRHIW3bmoRAAGh6jL7tMIvqTuFZE=" crossorigin="anonymous" />
  20. <!-- MetisMenu CSS -->
  21. <link href="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet" type="text/css">
  22. <!-- Custom CSS -->
  23. <link href="{{.URLPathPrefix}}/lib/startbootstrap-sb-admin-2/dist/css/sb-admin-2.css" rel="stylesheet" type="text/css">
  24. <!-- Custom Fonts -->
  25. <!--<link href="../vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">-->
  26. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  27. {{ if .MapURL }}
  28. <!-- Call Leaflet.js to deal with maps -->
  29. <!-- Bumped to Leaflet 1.5.1 (20191116); Leaflet + extra markers need to be in the header or else this will bomb (20191117) -->
  30. <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
  31. integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
  32. crossorigin=""/>
  33. <script src="https://unpkg.com/[email protected]/dist/leaflet.js"
  34. integrity="sha512-GffPMF3RvMeYyc1LWMHtK8EbPv0iNZ8/oTtHPx9/cc2ILxQ+u905qIwdpULaqDkyBKgOaB57QTMg7ztg8Jm2Og=="
  35. crossorigin="">
  36. </script>
  37. <!-- This is to get cute markers on Leaflet maps -->
  38. <link rel="stylesheet" href="{{.URLPathPrefix}}/lib/Leaflet.vector-markers/dist/leaflet-vector-markers.css">
  39. <script src="{{.URLPathPrefix}}/lib/Leaflet.vector-markers/dist/leaflet-vector-markers.min.js"></script>
  40. {{ end }}
  41. {{ if .gobotJS }}
  42. <!-- Call agGrid -->
  43. <script src="{{.URLPathPrefix}}/lib/ag-grid/dist/ag-grid.min.js"></script>
  44. <script src="{{.URLPathPrefix}}/lib/gobot-js/{{.gobotJS}}"></script>
  45. {{ end }}
  46. {{ if .Gravatar }}
  47. <!-- I have no idea if this is really needed! -->
  48. <link rel="stylesheet" href="https://secure.gravatar.com/css/services.css" type="text/css">
  49. <link rel="stylesheet" href="{{.URLPathPrefix}}/lib/gravatar-profile.css" type="text/css">
  50. {{ end }}
  51. {{ if .LSL }}
  52. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/themes/prism.min.css" type="text/css">
  53. <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/prism.min.js"></script>
  54. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/plugins/toolbar/prism-toolbar.min.css" type="text/css">
  55. <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/plugins/toolbar/prism-toolbar.min.js"></script>
  56. <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script>
  57. {{ end }}
  58. <!-- Our own overrides -->
  59. <link href="{{.URLPathPrefix}}/lib/gobot.css" rel="stylesheet" type="text/css">
  60. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  61. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  62. <!--[if lt IE 9]>
  63. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  64. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  65. <![endif]-->
  66. <!-- stupid favicons, updated with new logo 20170621 -->
  67. <link rel="apple-touch-icon" sizes="180x180" href="{{.URLPathPrefix}}/apple-touch-icon.png">
  68. <link rel="icon" type="image/png" sizes="32x32" href="{{.URLPathPrefix}}/favicon-32x32.png">
  69. <link rel="icon" type="image/png" sizes="16x16" href="{{.URLPathPrefix}}/favicon-16x16.png">
  70. <link rel="manifest" href="{{.URLPathPrefix}}/manifest.json">
  71. <link rel="mask-icon" href="{{.URLPathPrefix}}/safari-pinned-tab.svg" color="#5bbad5">
  72. <meta name="apple-mobile-web-app-title" content="Gobot">
  73. <meta name="application-name" content="Gobot">
  74. <meta name="msapplication-TileColor" content="#00a300">
  75. <meta name="msapplication-TileImage" content="{{.URLPathPrefix}}/mstile-144x144.png">
  76. <meta name="theme-color" content="#ffffff">
  77. <!-- favicons end here -->
  78. </head>
  79. <body>
  80. {{ if .Gravatar }}
  81. <!-- Gravatar Hovercards are sneaky, they add their own CSS at the top of the header! -->
  82. <style>
  83. .gcard {
  84. z-index: 1000;
  85. }
  86. .emptyPlaceholder {
  87. z-index: 1000;
  88. }
  89. </style>
  90. {{ end }}
  91. <span id="URLPathPrefix" hidden>{{.URLPathPrefix}}</span>
  92. {{ end }}