2022-08-11 03:59:59 +00:00
|
|
|
{{define "title"}}Untitled{{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">
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
|
2022-08-11 03:59:59 +00:00
|
|
|
<link rel="stylesheet" href="/static/fontawesome-free-6.1.2-web/css/all.css">
|
2022-08-12 06:03:06 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/theme.css">
|
2022-08-11 03:59:59 +00:00
|
|
|
<title>{{template "title" .}} - {{ .Title }}</title>
|
2022-08-10 05:10:47 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-08-13 22:39:31 +00:00
|
|
|
<nav class="navbar" role="navigation" aria-label="main navigation">
|
|
|
|
<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
|
|
|
|
|
|
|
<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}}
|
|
|
|
<a class="navbar-item" href="/me">
|
|
|
|
<span class="icon"><i class="fa fa-house-user"></i></span>
|
|
|
|
<span>Home</span>
|
|
|
|
</a>
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
<a class="navbar-item" href="/photo/gallery">
|
|
|
|
<span class="icon"><i class="fa fa-image"></i></span>
|
|
|
|
<span>Gallery</span>
|
|
|
|
</a>
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2022-08-16 05:33:17 +00:00
|
|
|
<!-- <a class="navbar-item" href="/forums">
|
2022-08-13 22:39:31 +00:00
|
|
|
<span class="icon"><i class="fa fa-comments"></i></span>
|
|
|
|
<span>Forums</span>
|
2022-08-16 05:33:17 +00:00
|
|
|
</a> -->
|
2022-08-10 05:10:47 +00:00
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
<a class="navbar-item" href="/friends">
|
|
|
|
<span class="icon"><i class="fa fa-user-group"></i></span>
|
|
|
|
<span>Friends</span>
|
2022-08-14 05:44:57 +00:00
|
|
|
{{if .NavFriendRequests}}<span class="tag is-warning ml-1">{{.NavFriendRequests}}</span>{{end}}
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class="navbar-item" href="/messages">
|
|
|
|
<span class="icon"><i class="fa fa-envelope"></i></span>
|
|
|
|
<span>Messages</span>
|
2022-08-14 05:44:57 +00:00
|
|
|
{{if .NavUnreadMessages}}<span class="tag is-warning ml-1">{{.NavUnreadMessages}}</span>{{end}}
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="navbar-item has-dropdown is-hoverable">
|
|
|
|
<a class="navbar-link">
|
|
|
|
More
|
2022-08-10 05:10:47 +00:00
|
|
|
</a>
|
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
<div class="navbar-dropdown">
|
2022-08-14 05:44:57 +00:00
|
|
|
<a class="navbar-item" 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
|
|
|
<a class="navbar-item" href="/about">
|
|
|
|
About
|
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/faq">
|
|
|
|
FAQ
|
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/tos">
|
|
|
|
Terms of Service
|
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/privacy">
|
|
|
|
Privacy Policy
|
|
|
|
</a>
|
|
|
|
<a class="navbar-item" href="/contact">
|
|
|
|
Contact
|
|
|
|
</a>
|
|
|
|
<hr class="navbar-divider">
|
2022-08-21 21:05:08 +00:00
|
|
|
<a class="navbar-item" href="/contact?intent=report">
|
2022-08-13 22:39:31 +00:00
|
|
|
Report an issue
|
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 }}
|
|
|
|
<div class="navbar-item has-dropdown is-hoverable">
|
|
|
|
<a class="navbar-link" href="/me">
|
|
|
|
<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}}
|
|
|
|
{{if .NavAdminNotifications}}<span class="tag is-danger ml-1">{{.NavAdminNotifications}}</span>{{end}}
|
|
|
|
</div>
|
2022-08-10 05:10:47 +00:00
|
|
|
</div>
|
2022-08-13 22:39:31 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="navbar-dropdown is-right">
|
|
|
|
<a class="navbar-item" href="/me">Dashboard</a>
|
|
|
|
<a class="navbar-item" href="/u/{{.CurrentUser.Username}}">My Profile</a>
|
2022-08-14 21:40:57 +00:00
|
|
|
<a class="navbar-item" href="/photo/u/{{.CurrentUser.Username}}">My Photos</a>
|
|
|
|
<a class="navbar-item" href="/photo/upload">Upload Photo</a>
|
2022-08-13 22:39:31 +00:00
|
|
|
<a class="navbar-item" href="/settings">Settings</a>
|
|
|
|
{{if .CurrentUser.IsAdmin}}
|
2022-08-14 23:27:57 +00:00
|
|
|
<a class="navbar-item has-text-danger" href="/admin">
|
|
|
|
Admin
|
|
|
|
{{if .NavAdminNotifications}}<span class="tag is-danger ml-1">{{.NavAdminNotifications}}</span>{{end}}
|
|
|
|
</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}}
|
|
|
|
<a class="navbar-item" href="/logout">Log out</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-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" .}}
|
|
|
|
|
|
|
|
<div class="block has-text-centered has-text-grey">
|
|
|
|
© {{.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}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/static/js/bulma.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{{end}}
|