2022-08-11 03:59:59 +00:00
|
|
|
{{define "title"}}Untitled{{end}}
|
2023-06-22 03:46:27 +00:00
|
|
|
{{define "content"}}{{end}}
|
2022-12-15 06:57:06 +00:00
|
|
|
{{define "scripts"}}{{end}}
|
2022-08-10 05:10:47 +00:00
|
|
|
{{define "base"}}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2024-03-31 20:44:09 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/bulma.min.css?build={{.BuildHash}}">
|
2024-11-24 21:22:28 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/theme.css?build={{.BuildHash}}">
|
2024-03-30 20:49:36 +00:00
|
|
|
<!-- Bulma theme CSS -->
|
2024-11-23 20:55:13 +00:00
|
|
|
{{- if eq .WebsiteTheme "light" -}}
|
2024-03-30 20:49:36 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/bulma-no-dark-mode.min.css?build={{.BuildHash}}">
|
2024-11-23 20:55:13 +00:00
|
|
|
{{- else if eq .WebsiteTheme "dark" -}}
|
2024-03-30 20:49:36 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/bulma-dark-theme.css?build={{.BuildHash}}">
|
2024-11-23 20:55:13 +00:00
|
|
|
{{- else -}}
|
2024-04-02 00:53:19 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/nonshy-prefers-dark.css?build={{.BuildHash}}">
|
2024-11-23 20:55:13 +00:00
|
|
|
{{- end -}}
|
2024-11-24 07:49:29 +00:00
|
|
|
|
2024-11-24 21:22:28 +00:00
|
|
|
<!-- User theme hue -->
|
|
|
|
{{- if and .LoggedIn (.CurrentUser.GetProfileField "website-theme-hue") }}
|
|
|
|
{{- $WebsiteThemeHue := .CurrentUser.GetProfileField "website-theme-hue" }}
|
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/theme-{{$WebsiteThemeHue}}.css">
|
|
|
|
|
|
|
|
<!-- Dark theme mixin -->
|
|
|
|
{{- if or (eq .WebsiteTheme "dark") (ne .WebsiteTheme "light") -}}
|
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/theme-{{$WebsiteThemeHue}}-dark.css" {{if ne .WebsiteTheme "dark"}}media="(prefers-color-scheme: dark)"{{end}}>
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2024-08-24 05:24:38 +00:00
|
|
|
<link rel="stylesheet" href="/static/fontawesome-free-6.6.0-web/css/all.css">
|
2023-11-26 01:15:21 +00:00
|
|
|
<link rel="manifest" href="/manifest.json">
|
2022-08-11 03:59:59 +00:00
|
|
|
<title>{{template "title" .}} - {{ .Title }}</title>
|
2022-08-10 05:10:47 +00:00
|
|
|
</head>
|
2024-11-22 16:44:16 +00:00
|
|
|
<body class="has-navbar-fixed-top">
|
|
|
|
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
|
2022-08-13 22:39:31 +00:00
|
|
|
<div class="navbar-brand">
|
|
|
|
<a class="navbar-item" href="/">
|
|
|
|
{{ PrettyTitle }}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="navbarBasicExample" class="navbar-menu">
|
|
|
|
<div class="navbar-start">
|
|
|
|
{{if not .LoggedIn}}
|
2022-08-10 05:10:47 +00:00
|
|
|
<a class="navbar-item" href="/">
|
2022-08-13 22:39:31 +00:00
|
|
|
<span class="icon"><i class="fa fa-home"></i></span>
|
|
|
|
<span>Home</span>
|
2022-08-10 05:10:47 +00:00
|
|
|
</a>
|
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
<a class="navbar-item" href="/about">
|
|
|
|
About
|
2022-08-10 05:10:47 +00:00
|
|
|
</a>
|
2022-08-16 05:33:17 +00:00
|
|
|
|
2023-06-27 06:29:05 +00:00
|
|
|
<a class="navbar-item" href="/features">
|
|
|
|
Features
|
|
|
|
</a>
|
|
|
|
|
2022-08-16 05:33:17 +00:00
|
|
|
<a class="navbar-item" href="/faq">
|
|
|
|
FAQ
|
|
|
|
</a>
|
2022-08-13 22:39:31 +00:00
|
|
|
{{end}}
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
{{if .LoggedIn}}
|
2023-08-30 03:20:19 +00:00
|
|
|
<a class="navbar-item px-1" href="/me">
|
2022-08-13 22:39:31 +00:00
|
|
|
<span class="icon"><i class="fa fa-house-user"></i></span>
|
|
|
|
<span>Home</span>
|
|
|
|
</a>
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2023-08-30 03:20:19 +00:00
|
|
|
<a class="navbar-item px-1" href="/chat">
|
2023-02-06 04:26:36 +00:00
|
|
|
<span class="icon"><i class="fa fa-message"></i></span>
|
|
|
|
<span>Chat</span>
|
2024-08-23 05:53:37 +00:00
|
|
|
{{if .NavChatStatistics.UserCount}}<span class="nonshy-navbar-notification-tag is-link ml-1">{{.NavChatStatistics.UserCount}}</span>{{end}}
|
2023-02-06 04:26:36 +00:00
|
|
|
</a>
|
|
|
|
|
2023-08-30 03:20:19 +00:00
|
|
|
<a class="navbar-item px-1" href="/forum">
|
2022-08-13 22:39:31 +00:00
|
|
|
<span class="icon"><i class="fa fa-comments"></i></span>
|
2022-08-24 05:55:19 +00:00
|
|
|
<span>Forum</span>
|
|
|
|
</a>
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2023-08-30 03:20:19 +00:00
|
|
|
<a class="navbar-item px-1" href="/photo/gallery">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-image"></i></span>
|
|
|
|
<span>Gallery</span>
|
|
|
|
</a>
|
|
|
|
|
2023-08-30 03:20:19 +00:00
|
|
|
<a class="navbar-item px-1" href="/friends{{if gt .NavFriendRequests 0}}?view=requests{{end}}">
|
2022-08-13 22:39:31 +00:00
|
|
|
<span class="icon"><i class="fa fa-user-group"></i></span>
|
|
|
|
<span>Friends</span>
|
2023-12-22 01:12:34 +00:00
|
|
|
{{if .NavFriendRequests}}<span class="nonshy-navbar-notification-tag is-warning ml-1">{{FormatNumberShort .NavFriendRequests}}</span>{{end}}
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
|
2023-08-30 03:20:19 +00:00
|
|
|
<a class="navbar-item px-1" href="/messages">
|
2022-08-13 22:39:31 +00:00
|
|
|
<span class="icon"><i class="fa fa-envelope"></i></span>
|
|
|
|
<span>Messages</span>
|
2023-12-22 01:12:34 +00:00
|
|
|
{{if .NavUnreadMessages}}<span class="nonshy-navbar-notification-tag is-warning ml-1">{{FormatNumberShort .NavUnreadMessages}}</span>{{end}}
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
2023-08-30 03:20:19 +00:00
|
|
|
|
|
|
|
<a class="navbar-item px-1" href="/members">
|
|
|
|
<span class="icon"><i class="fa fa-people-group"></i></span>
|
|
|
|
<span>People</span>
|
|
|
|
</a>
|
2022-08-13 22:39:31 +00:00
|
|
|
{{end}}
|
|
|
|
|
2022-08-22 04:24:36 +00:00
|
|
|
<div id="navbar-more" class="navbar-item has-dropdown is-hoverable">
|
2022-08-13 22:39:31 +00:00
|
|
|
<a class="navbar-link">
|
|
|
|
More
|
2022-08-10 05:10:47 +00:00
|
|
|
</a>
|
|
|
|
|
2022-08-22 04:24:36 +00:00
|
|
|
<div class="navbar-dropdown is-active">
|
2024-03-30 03:35:41 +00:00
|
|
|
<a class="navbar-item" href="/members?sort=distance">
|
|
|
|
<span class="icon"><i class="fa fa-location-dot"></i></span>
|
|
|
|
<span>Who's Nearby</span>
|
|
|
|
</a>
|
|
|
|
<hr class="navbar-divider">
|
2022-08-13 22:39:31 +00:00
|
|
|
<a class="navbar-item" href="/about">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-circle-info"></i></span>
|
|
|
|
<span>About {{PrettyTitle}}</span>
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/faq">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-circle-question"></i></span>
|
|
|
|
<span>FAQ</span>
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/tos">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-list"></i></span>
|
|
|
|
<span>Terms of Service</span>
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/privacy">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-file-shield"></i></span>
|
|
|
|
<span>Privacy Policy</span>
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/contact">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-message"></i></span>
|
|
|
|
<span>Contact</span>
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
<hr class="navbar-divider">
|
2022-08-21 21:05:08 +00:00
|
|
|
<a class="navbar-item" href="/contact?intent=report">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-triangle-exclamation"></i></span>
|
|
|
|
<span>Report an issue</span>
|
2022-08-10 05:10:47 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-13 22:39:31 +00:00
|
|
|
</div>
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
<div class="navbar-end">
|
|
|
|
{{if .LoggedIn }}
|
2022-08-22 04:24:36 +00:00
|
|
|
<div id="navbar-user" class="navbar-item has-dropdown is-hoverable">
|
2022-08-25 04:17:34 +00:00
|
|
|
<a class="navbar-link" href="/me{{if .NavUnreadNotifications}}#notifications{{end}}">
|
2022-08-13 22:39:31 +00:00
|
|
|
<div class="columns is-mobile is-gapless">
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<figure class="image is-24x24 mr-2">
|
|
|
|
{{if gt .CurrentUser.ProfilePhoto.ID 0}}
|
|
|
|
<img src="{{PhotoURL .CurrentUser.ProfilePhoto.CroppedFilename}}" class="is-rounded">
|
|
|
|
{{else}}
|
|
|
|
<img src="/static/img/shy.png" class="is-rounded has-background-warning">
|
|
|
|
{{end}}
|
|
|
|
</figure>
|
|
|
|
</div>
|
2022-08-14 23:27:57 +00:00
|
|
|
<div class="column">
|
|
|
|
{{.CurrentUser.Username}}
|
2023-12-22 01:12:34 +00:00
|
|
|
{{if .NavUnreadNotifications}}
|
|
|
|
<span class="nonshy-navbar-notification-tag is-warning ml-1">{{FormatNumberShort .NavUnreadNotifications}}</span>
|
|
|
|
{{end}}
|
2023-11-25 22:28:16 +00:00
|
|
|
{{if .NavAdminNotifications}}
|
|
|
|
{{if and (.NavCertificationPhotos) (not .NavAdminFeedback)}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<span class="nonshy-navbar-notification-tag is-success ml-1">{{FormatNumberShort .NavAdminNotifications}}</span>
|
2023-11-25 22:28:16 +00:00
|
|
|
{{else if and .NavCertificationPhotos .NavAdminFeedback}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<span class="nonshy-navbar-notification-tag is-mixed ml-1">{{FormatNumberShort .NavAdminNotifications}}</span>
|
2023-11-25 22:28:16 +00:00
|
|
|
{{else}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<span class="nonshy-navbar-notification-tag is-danger ml-1">{{FormatNumberShort .NavAdminNotifications}}</span>
|
2023-11-25 22:28:16 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2022-08-14 23:27:57 +00:00
|
|
|
</div>
|
2022-08-10 05:10:47 +00:00
|
|
|
</div>
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
|
2022-08-22 04:24:36 +00:00
|
|
|
<div class="navbar-dropdown is-right is-hoverable">
|
2022-08-25 04:17:34 +00:00
|
|
|
<a class="navbar-item" href="/me{{if .NavUnreadNotifications}}#notifications{{end}}">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-home-user"></i></span>
|
|
|
|
<span>Dashboard</span>
|
2022-08-25 04:17:34 +00:00
|
|
|
{{if .NavUnreadNotifications}}
|
2023-06-08 04:59:15 +00:00
|
|
|
<span class="nonshy-navbar-notification-tag is-warning ml-1">
|
2022-08-25 04:17:34 +00:00
|
|
|
<span class="icon"><i class="fa fa-bell"></i></span>
|
2023-12-22 01:12:34 +00:00
|
|
|
<span>{{FormatNumberShort .NavUnreadNotifications}}</span>
|
2022-08-25 04:17:34 +00:00
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
</a>
|
2022-08-26 02:58:43 +00:00
|
|
|
<a class="navbar-item" href="/u/{{.CurrentUser.Username}}">
|
|
|
|
<span class="icon"><i class="fa fa-user"></i></span>
|
|
|
|
<span>My Profile</span>
|
|
|
|
</a>
|
2024-02-11 00:17:15 +00:00
|
|
|
<a class="navbar-item" href="/u/{{.CurrentUser.Username}}/photos">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-image"></i></span>
|
|
|
|
<span>My Photos</span>
|
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/photo/upload">
|
|
|
|
<span class="icon"><i class="fa fa-upload"></i></span>
|
|
|
|
<span>Upload Photo</span>
|
|
|
|
</a>
|
2022-09-08 04:18:54 +00:00
|
|
|
<a class="navbar-item" href="/photo/private">
|
|
|
|
<span class="icon"><i class="fa fa-eye"></i></span>
|
|
|
|
<span>Private Photos</span>
|
|
|
|
</a>
|
2023-12-21 22:59:41 +00:00
|
|
|
<a class="navbar-item" href="/notes/me">
|
|
|
|
<span class="icon"><i class="fa fa-pen-to-square"></i></span>
|
|
|
|
<span>My User Notes</span>
|
|
|
|
</a>
|
2022-08-26 02:58:43 +00:00
|
|
|
<a class="navbar-item" href="/settings">
|
|
|
|
<span class="icon"><i class="fa fa-gear"></i></span>
|
|
|
|
<span>Settings</span>
|
|
|
|
</a>
|
2022-08-13 22:39:31 +00:00
|
|
|
{{if .CurrentUser.IsAdmin}}
|
2022-08-14 23:27:57 +00:00
|
|
|
<a class="navbar-item has-text-danger" href="/admin">
|
2023-08-30 07:08:20 +00:00
|
|
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
2022-08-26 02:58:43 +00:00
|
|
|
<span>Admin</span>
|
2023-11-25 22:28:16 +00:00
|
|
|
{{if .NavAdminNotifications}}
|
|
|
|
<!-- Color code them by the type -->
|
|
|
|
{{if and (.NavCertificationPhotos) (not .NavAdminFeedback)}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<span class="nonshy-navbar-notification-tag is-success ml-1">{{FormatNumberShort .NavAdminNotifications}}</span>
|
2023-11-25 22:28:16 +00:00
|
|
|
{{else if and .NavCertificationPhotos .NavAdminFeedback}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<span class="nonshy-navbar-notification-tag is-mixed ml-1">{{FormatNumberShort .NavAdminNotifications}}</span>
|
2023-11-25 22:28:16 +00:00
|
|
|
{{else}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<span class="nonshy-navbar-notification-tag is-danger ml-1">{{FormatNumberShort .NavAdminNotifications}}</span>
|
2023-11-25 22:28:16 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2022-08-14 23:27:57 +00:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{if .SessionImpersonated}}
|
|
|
|
<a href="/admin/unimpersonate" class="navbar-item has-text-danger">
|
|
|
|
<span class="icon"><i class="fa fa-ghost"></i></span>
|
|
|
|
<span>Unimpersonate</span>
|
|
|
|
</a>
|
2022-08-13 22:39:31 +00:00
|
|
|
{{end}}
|
2022-08-26 02:58:43 +00:00
|
|
|
<a class="navbar-item" href="/logout">
|
|
|
|
<span class="icon"><i class="fa fa-arrow-right-from-bracket"></i></span>
|
|
|
|
<span>Log out</span>
|
|
|
|
</a>
|
2022-08-10 05:10:47 +00:00
|
|
|
</div>
|
2022-08-13 22:39:31 +00:00
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div class="navbar-item">
|
|
|
|
<div class="buttons">
|
|
|
|
<a class="button is-primary" href="/signup">
|
|
|
|
<strong>Sign up</strong>
|
|
|
|
</a>
|
|
|
|
<a class="button is-light" href="/login">
|
|
|
|
Log in
|
|
|
|
</a>
|
2022-08-10 05:10:47 +00:00
|
|
|
</div>
|
2022-08-13 22:39:31 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-08-10 05:10:47 +00:00
|
|
|
</div>
|
2022-08-13 22:39:31 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2022-08-22 04:24:36 +00:00
|
|
|
<!-- Mobile: notifications badge next to hamburger menu -->
|
2022-08-26 02:58:43 +00:00
|
|
|
{{if .LoggedIn}}
|
2022-08-22 04:24:36 +00:00
|
|
|
<div class="mobile nonshy-mobile-notification">
|
2022-08-26 03:07:44 +00:00
|
|
|
{{if .CurrentUser.Certified}}
|
2024-08-23 05:53:37 +00:00
|
|
|
<a class="tag {{if gt .NavChatStatistics.UserCount 0}}is-link{{else}}is-grey{{end}} py-4"
|
2023-02-06 23:47:57 +00:00
|
|
|
href="/chat">
|
|
|
|
<span class="icon"><i class="fa fa-message"></i></span>
|
2023-06-08 04:59:15 +00:00
|
|
|
{{if gt .NavChatStatistics.UserCount 0}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<small class="nonshy-navbar-notification-count">{{FormatNumberShort .NavChatStatistics.UserCount}}</small>
|
2023-06-08 04:59:15 +00:00
|
|
|
{{end}}
|
2023-02-06 23:47:57 +00:00
|
|
|
</a>
|
|
|
|
|
2022-08-26 02:58:43 +00:00
|
|
|
<a class="tag is-grey py-4"
|
|
|
|
href="/forum">
|
|
|
|
<span class="icon"><i class="fa fa-comments"></i></span>
|
|
|
|
</a>
|
2022-08-22 04:24:36 +00:00
|
|
|
|
2022-08-26 02:58:43 +00:00
|
|
|
<a class="tag is-grey py-4"
|
|
|
|
href="/photo/gallery">
|
|
|
|
<span class="icon"><i class="fa fa-image"></i></span>
|
|
|
|
</a>
|
2022-08-26 03:07:44 +00:00
|
|
|
{{end}}
|
2022-08-26 02:58:43 +00:00
|
|
|
|
2024-04-05 05:24:35 +00:00
|
|
|
<a class="tag {{if gt .NavFriendRequests 0}}is-warning nonshy-navbar-notification{{else}}is-grey{{end}} py-4"
|
2022-08-26 02:58:43 +00:00
|
|
|
href="/friends{{if gt .NavFriendRequests 0}}?view=requests{{end}}">
|
|
|
|
<span class="icon"><i class="fa fa-user-group"></i></span>
|
|
|
|
{{if gt .NavFriendRequests 0}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<small class="nonshy-navbar-notification-count">{{FormatNumberShort .NavFriendRequests}}</small>
|
2022-08-26 02:58:43 +00:00
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
|
2024-04-05 05:24:35 +00:00
|
|
|
<a class="tag {{if gt .NavUnreadMessages 0}}is-warning nonshy-navbar-notification{{else}}is-grey{{end}} py-4" href="/messages">
|
2022-08-26 02:58:43 +00:00
|
|
|
<span class="icon"><i class="fa fa-envelope"></i></span>
|
|
|
|
{{if gt .NavUnreadMessages 0}}
|
2023-12-22 01:12:34 +00:00
|
|
|
<small class="nonshy-navbar-notification-count">{{FormatNumberShort .NavUnreadMessages}}</small>
|
2022-08-26 02:58:43 +00:00
|
|
|
{{end}}
|
|
|
|
</a>
|
2022-08-22 04:24:36 +00:00
|
|
|
|
2022-08-25 04:17:34 +00:00
|
|
|
{{if gt .NavUnreadNotifications 0}}
|
2024-04-05 05:24:35 +00:00
|
|
|
<a class="tag is-warning nonshy-navbar-notification py-4" href="/me#notifications">
|
2022-08-25 04:17:34 +00:00
|
|
|
<span class="icon"><i class="fa fa-bell"></i></span>
|
2023-12-22 01:12:34 +00:00
|
|
|
<small class="nonshy-navbar-notification-count">{{FormatNumberShort .NavUnreadNotifications}}</small>
|
2022-08-25 04:17:34 +00:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
|
2022-08-22 04:24:36 +00:00
|
|
|
{{if gt .NavAdminNotifications 0}}
|
2023-11-27 05:02:36 +00:00
|
|
|
<!-- Color code them by the type -->
|
|
|
|
{{if and (.NavCertificationPhotos) (not .NavAdminFeedback)}}
|
|
|
|
<a class="tag is-success py-4" href="/admin">
|
|
|
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
2023-12-22 01:12:34 +00:00
|
|
|
<small class="nonshy-navbar-notification-count">{{FormatNumberShort .NavAdminNotifications}}</small>
|
2023-11-27 05:02:36 +00:00
|
|
|
</a>
|
|
|
|
{{else if and .NavCertificationPhotos .NavAdminFeedback}}
|
|
|
|
<a class="tag is-mixed py-4" href="/admin">
|
|
|
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
2023-12-22 01:12:34 +00:00
|
|
|
<small class="nonshy-navbar-notification-count">{{FormatNumberShort .NavAdminNotifications}}</small>
|
2023-11-27 05:02:36 +00:00
|
|
|
</a>
|
|
|
|
{{else}}
|
2022-08-26 02:58:43 +00:00
|
|
|
<a class="tag is-danger py-4" href="/admin">
|
2023-08-30 07:08:20 +00:00
|
|
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
2023-12-22 01:12:34 +00:00
|
|
|
<small class="nonshy-navbar-notification-count">{{FormatNumberShort .NavAdminNotifications}}</small>
|
2022-08-22 04:24:36 +00:00
|
|
|
</a>
|
2023-11-27 05:02:36 +00:00
|
|
|
{{end}}
|
2022-08-22 04:24:36 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
<div class="container is-fullhd">
|
2022-08-10 05:10:47 +00:00
|
|
|
{{if .Flashes}}
|
|
|
|
<div class="notification block is-success">
|
|
|
|
<!-- <button class="delete"></button> -->
|
|
|
|
|
|
|
|
{{range .Flashes}}
|
|
|
|
<div class="block">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .Errors}}
|
|
|
|
<div class="notification block is-danger">
|
|
|
|
<!-- <button class="delete"></button> -->
|
|
|
|
|
|
|
|
{{range .Errors}}
|
|
|
|
<div class="block">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{template "content" .}}
|
|
|
|
|
2022-08-26 02:58:43 +00:00
|
|
|
<div class="block p-4 has-text-centered has-text-grey">
|
2022-08-10 05:10:47 +00:00
|
|
|
© {{.YYYY}} {{.Title}}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<a href="/">Home</a>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<a href="/about">About</a>
|
|
|
|
</div>
|
|
|
|
{{if .LoggedIn}}
|
|
|
|
<div class="column">
|
|
|
|
<a href="/me">User Dashboard</a>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<a href="/u/{{.CurrentUser.Username}}">My Profile</a>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<a href="/settings">Settings</a>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<a href="/logout">Log out</a>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="column">
|
|
|
|
<a href="/login">Log in</a>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<a href="/signup">Sign up</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-03-04 01:58:18 +00:00
|
|
|
<div class="column">
|
|
|
|
<small class="has-text-grey is-size-7"><i class="fa-regular fa-clock"></i> {{RunTime .Request}}</small>
|
|
|
|
</div>
|
2022-08-10 05:10:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-08-25 04:17:34 +00:00
|
|
|
<script type="text/javascript" src="/static/js/bulma.js?build={{.BuildHash}}"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/likes.js?build={{.BuildHash}}"></script>
|
2022-12-15 06:57:06 +00:00
|
|
|
<script type="text/javascript" src="/static/js/vue-3.2.45.js"></script>
|
2024-04-25 03:36:37 +00:00
|
|
|
<script type="text/javascript" src="/static/js/htmx-1.9.12.min.js"></script>
|
2024-06-27 04:27:03 +00:00
|
|
|
<script type="text/javascript" src="/static/js/slim-forms.js?build={{.BuildHash}}"></script>
|
2024-09-14 19:07:18 +00:00
|
|
|
{{if not .SessionImpersonated -}}
|
|
|
|
{{- /* Disable web push script if impersonated, so an admin doesn't subscribe to user's notifications */ -}}
|
|
|
|
<script type="text/javascript" src="/static/js/web-push.js?build={{.BuildHash}}"></script>
|
|
|
|
{{- end}}
|
2022-12-15 06:57:06 +00:00
|
|
|
{{template "scripts" .}}
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2023-09-14 04:28:38 +00:00
|
|
|
<!-- Likes modal -->
|
|
|
|
{{template "like-modal"}}
|
|
|
|
|
2023-11-28 05:23:31 +00:00
|
|
|
<!-- Right-click modal -->
|
2023-12-22 04:40:06 +00:00
|
|
|
{{template "right-click-modal" .}}
|
2024-08-23 05:19:42 +00:00
|
|
|
|
|
|
|
<!-- PWA loading indicator -->
|
|
|
|
<div id="nonshy-pwa-loader">
|
2024-08-23 05:27:21 +00:00
|
|
|
<strong class="tag is-info py-4 px-3">
|
2024-08-23 05:19:42 +00:00
|
|
|
<i class="fa fa-spinner fa-spin mr-2"></i>
|
|
|
|
Loading...
|
|
|
|
</strong>
|
|
|
|
</div>
|
2022-08-10 05:10:47 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
2023-06-24 05:18:09 +00:00
|
|
|
{{end}}
|