2022-08-13 06:11:36 +00:00
|
|
|
{{define "title"}}{{.User.Username}}{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
{{define "content"}}
|
2023-12-26 23:44:34 +00:00
|
|
|
{{template "profile-theme-style" .User}}
|
2022-08-11 03:59:59 +00:00
|
|
|
<div class="container">
|
2022-08-30 03:00:15 +00:00
|
|
|
<section class="hero {{if and .LoggedIn (not .IsPrivate)}}is-info{{else}}is-light is-bold{{end}}">
|
2022-08-11 03:59:59 +00:00
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns">
|
2022-08-27 04:32:26 +00:00
|
|
|
<div class="column is-narrow has-text-centered">
|
|
|
|
<figure class="profile-photo is-inline-block">
|
2024-01-07 23:32:51 +00:00
|
|
|
{{if or (not .CurrentUser) .IsExternalView}}
|
|
|
|
<img src="{{.User.VisibleAvatarURL nil}}" data-photo-id="{{.User.ProfilePhoto.ID}}">
|
|
|
|
{{else}}
|
2024-01-07 22:20:01 +00:00
|
|
|
<img src="{{.User.VisibleAvatarURL .CurrentUser}}" data-photo-id="{{.User.ProfilePhoto.ID}}">
|
2024-01-07 23:32:51 +00:00
|
|
|
{{end}}
|
2022-08-12 06:03:06 +00:00
|
|
|
|
|
|
|
<!-- CurrentUser can upload a new profile pic -->
|
2022-08-30 03:00:15 +00:00
|
|
|
{{if and .LoggedIn (eq .CurrentUser.ID .User.ID) (not .IsPrivate)}}
|
2022-08-12 06:03:06 +00:00
|
|
|
<span class="corner">
|
|
|
|
<button class="button is-small p-1 is-success">
|
|
|
|
<a href="/photo/upload?intent=profile_pic"
|
|
|
|
class="fa fa-camera has-text-link"
|
|
|
|
title="Upload a new Profile Picture"></a>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
<h1 class="title">
|
2022-08-16 05:33:17 +00:00
|
|
|
{{.User.NameOrUsername}}
|
2022-08-22 00:29:39 +00:00
|
|
|
{{if eq .User.Visibility "private"}}<sup class="fa fa-mask ml-2 is-size-6" title="Private Profile"></sup>{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
</h1>
|
2022-08-14 23:27:57 +00:00
|
|
|
{{if ne .User.Status "active"}}
|
|
|
|
<h2 class="subtitle">
|
|
|
|
({{.User.Status}})
|
|
|
|
</h2>
|
|
|
|
{{end}}
|
2022-08-30 03:00:15 +00:00
|
|
|
{{if or (not .LoggedIn) .IsPrivate}}
|
2022-08-27 04:32:26 +00:00
|
|
|
<h2 class="subtitle">is on {{PrettyTitle}}, a social network for nudists & exhibitionists.</h2>
|
|
|
|
<p>
|
2023-07-22 18:51:58 +00:00
|
|
|
{{PrettyTitle}} is a new social network for <strong>real</strong> nudists and exhibitionists.
|
2022-08-27 04:32:26 +00:00
|
|
|
Join <strong>{{.User.Username}}</strong> and the others on this site by
|
|
|
|
<a href="/signup"><ins>creating an account</ins></a> and sending them a friend request! Please
|
|
|
|
see <a href="/"><ins>the home page</ins></a> for all the details.
|
|
|
|
</p>
|
|
|
|
{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-30 03:00:15 +00:00
|
|
|
{{if and .LoggedIn (not .IsPrivate)}}
|
2022-08-11 03:59:59 +00:00
|
|
|
<div class="column is-narrow">
|
|
|
|
<div class="box">
|
|
|
|
<div>
|
|
|
|
Member since:
|
|
|
|
<span title="Since {{.User.CreatedAt.Format "Jan _2 2006"}}">
|
|
|
|
{{SincePrettyCoarse .User.CreatedAt}} ago
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Last logged in:
|
|
|
|
<span title="On {{.User.LastLoginAt.Format "Jan _2 2006 15:04:05 MST"}}">
|
|
|
|
{{SincePrettyCoarse .User.LastLoginAt}} ago
|
|
|
|
</span>
|
|
|
|
</div>
|
2023-09-14 06:13:02 +00:00
|
|
|
{{if .OnChat}}
|
|
|
|
<div class="my-1">
|
|
|
|
<span class="tag is-success is-light">
|
|
|
|
<i class="fa fa-user mr-2"></i> Currently on chat!
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
{{if .User.Certified}}
|
|
|
|
<div class="pt-1">
|
2022-08-13 22:39:31 +00:00
|
|
|
<div class="icon-text" title="This user has been certified via a verification selfie.">
|
2022-08-11 03:59:59 +00:00
|
|
|
<span class="icon">
|
|
|
|
<i class="fa-solid fa-certificate has-text-success"></i>
|
|
|
|
</span>
|
2024-01-07 00:44:05 +00:00
|
|
|
<strong class="has-text-info">Certified!</strong>
|
2023-08-01 03:03:21 +00:00
|
|
|
|
|
|
|
<!-- Admin link to see it -->
|
|
|
|
{{if .CurrentUser.IsAdmin}}
|
|
|
|
<a href="/admin/photo/certification?username={{.User.Username}}"
|
|
|
|
class="fa fa-image has-text-link ml-2 is-size-7"
|
|
|
|
title="Search for certification picture"></a>
|
|
|
|
{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="pt-1">
|
2022-08-13 22:39:31 +00:00
|
|
|
<div class="icon-text" title="This user has not certified themselves with a verification selfie.">
|
2022-08-11 03:59:59 +00:00
|
|
|
<span class="icon">
|
|
|
|
<i class="fa-solid fa-certificate has-text-danger"></i>
|
|
|
|
</span>
|
2022-08-13 22:39:31 +00:00
|
|
|
<strong class="has-text-danger">Not certified!</strong>
|
2023-08-01 03:03:21 +00:00
|
|
|
|
|
|
|
<!-- Admin link to see it -->
|
|
|
|
{{if .CurrentUser.IsAdmin}}
|
|
|
|
<a href="/admin/photo/certification?username={{.User.Username}}"
|
|
|
|
class="fa fa-image has-text-link ml-2 is-size-7"
|
|
|
|
title="Search for certification picture"></a>
|
|
|
|
{{end}}
|
2022-08-13 22:39:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2023-02-14 06:31:50 +00:00
|
|
|
{{if .User.IsShy}}
|
|
|
|
<div class="pt-1">
|
|
|
|
<div class="icon-text has-text-danger">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="fa fa-ghost"></i>
|
|
|
|
</span>
|
|
|
|
<strong>Shy Account</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="pt-1" title="Badge for having at least one public picture.">
|
|
|
|
{{PrettyTitleShort}}
|
|
|
|
<strong class="has-text-link ml-1">Non-shy!</strong>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2023-05-24 03:04:17 +00:00
|
|
|
{{if and .CurrentUser.IsInnerCircle .User.IsInnerCircle}}
|
|
|
|
<div class="pt-1">
|
|
|
|
<div class="icon-text has-text-danger">
|
|
|
|
<span class="icon">
|
|
|
|
<img src="/static/img/circle-16.png">
|
|
|
|
</span>
|
|
|
|
<strong>{{PrettyCircle}}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2022-08-13 22:39:31 +00:00
|
|
|
{{if .User.IsAdmin}}
|
|
|
|
<div class="pt-1">
|
|
|
|
<div class="icon-text has-text-danger">
|
|
|
|
<span class="icon">
|
2023-08-30 07:08:20 +00:00
|
|
|
<i class="fa fa-peace"></i>
|
2022-08-13 22:39:31 +00:00
|
|
|
</span>
|
|
|
|
<strong>Admin</strong>
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-27 04:32:26 +00:00
|
|
|
{{end}}<!-- if .LoggedIn -->
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-30 03:00:15 +00:00
|
|
|
{{if and .LoggedIn (not .IsExternalView)}}
|
2022-08-15 00:45:55 +00:00
|
|
|
<div class="columns is-centered is-gapless">
|
|
|
|
<div class="column is-narrow has-text-centered">
|
|
|
|
<form action="/friends/add" method="POST">
|
|
|
|
{{InputCSRF}}
|
|
|
|
<input type="hidden" name="username" value="{{.User.Username}}">
|
2022-08-11 03:59:59 +00:00
|
|
|
|
2023-08-15 01:50:34 +00:00
|
|
|
<!-- If you are already friends, the button will remove them -->
|
|
|
|
{{if eq .IsFriend "approved"}}
|
|
|
|
<input type="hidden" name="verdict" value="remove">
|
|
|
|
{{end}}
|
|
|
|
|
2022-08-15 00:45:55 +00:00
|
|
|
<button type="submit" class="button is-fullwidth"
|
2023-08-15 01:50:34 +00:00
|
|
|
{{if not (eq .IsFriend "none")}}title="Friendship {{.IsFriend}}"{{end}}
|
|
|
|
{{if eq .IsFriend "approved"}}onclick="return confirm('Do you want to remove this friendship?')"{{end}}>
|
2022-08-15 00:45:55 +00:00
|
|
|
<span class="icon-text">
|
|
|
|
<span class="icon">
|
|
|
|
{{if eq .IsFriend "approved"}}
|
|
|
|
<i class="fa fa-check has-text-success"></i>
|
|
|
|
{{else if eq .IsFriend "pending"}}
|
2023-09-02 00:12:27 +00:00
|
|
|
<i class="fa fa-paper-plane"></i>
|
2022-08-15 00:45:55 +00:00
|
|
|
{{else}}
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
</span>
|
2022-08-15 00:45:55 +00:00
|
|
|
<span>Friend{{if eq .IsFriend "approved"}}s{{end}}</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2022-08-11 03:59:59 +00:00
|
|
|
|
2023-06-24 05:18:09 +00:00
|
|
|
<!-- DM button -->
|
|
|
|
{{if and (eq (.User.GetProfileField "dm_privacy") "friends") (not (eq .IsFriend "approved")) (not .CurrentUser.IsAdmin)}}
|
|
|
|
<!-- Only friends can send them a DM -->
|
|
|
|
{{else if and (eq (.User.GetProfileField "dm_privacy") "nobody") (not .CurrentUser.IsAdmin)}}
|
|
|
|
<!-- They set "Nobody" can send them a DM -->
|
|
|
|
{{else}}
|
|
|
|
<div class="column is-narrow has-text-centered">
|
|
|
|
<a href="/messages/compose?to={{.User.Username}}" class="button is-fullwidth">
|
|
|
|
<span class="icon-text">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="fa fa-message"></i>
|
|
|
|
</span>
|
|
|
|
<span>Message</span>
|
2022-08-15 00:45:55 +00:00
|
|
|
</span>
|
2023-06-24 05:18:09 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
|
2022-08-25 04:17:34 +00:00
|
|
|
<!-- Like button -->
|
2022-08-30 03:00:15 +00:00
|
|
|
{{if not .IsPrivate}}
|
|
|
|
{{$Like := .LikeMap.Get .User.ID}}
|
|
|
|
<div class="column is-narrow has-text-centered">
|
|
|
|
<button type="button" class="button is-fullwidth nonshy-like-button"
|
2023-10-24 04:55:55 +00:00
|
|
|
data-table-name="users" data-table-id="{{.User.Username}}"
|
2022-08-30 03:00:15 +00:00
|
|
|
title="Like this profile">
|
|
|
|
<span class="icon{{if $Like.UserLikes}} has-text-danger{{end}}"><i class="fa fa-heart"></i></span>
|
|
|
|
<span class="nonshy-likes">
|
|
|
|
Like
|
|
|
|
{{if gt $Like.Count 0}}
|
|
|
|
({{$Like.Count}})
|
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-08-15 00:45:55 +00:00
|
|
|
|
|
|
|
<div class="column is-narrow has-text-centered">
|
|
|
|
<form action="/users/block" method="POST">
|
|
|
|
{{InputCSRF}}
|
|
|
|
<input type="hidden" name="username" value="{{.User.Username}}">
|
2022-08-11 03:59:59 +00:00
|
|
|
|
2022-08-15 00:45:55 +00:00
|
|
|
<button type="submit" class="button is-fullwidth"
|
|
|
|
{{if not (eq .IsFriend "none")}}title="Friendship {{.IsFriend}}"{{end}}>
|
|
|
|
<span class="icon-text">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="fa fa-hand"></i>
|
2022-08-11 03:59:59 +00:00
|
|
|
</span>
|
2022-08-15 00:45:55 +00:00
|
|
|
<span>Block</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
2022-08-15 00:45:55 +00:00
|
|
|
|
2022-08-21 21:05:08 +00:00
|
|
|
<div class="column is-narrow has-text-centered">
|
2023-10-24 04:55:55 +00:00
|
|
|
<a href="/contact?intent=report&subject=report.user&id={{.User.Username}}" class="button is-fullwidth">
|
2022-08-21 21:05:08 +00:00
|
|
|
<span class="icon-text">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="fa fa-flag"></i>
|
|
|
|
</span>
|
|
|
|
<span>Report</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2022-08-15 00:45:55 +00:00
|
|
|
</div><!-- columns -->
|
2022-08-27 04:32:26 +00:00
|
|
|
{{end}}<!-- if .LoggedIn -->
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2022-08-30 03:00:15 +00:00
|
|
|
{{if or (not .LoggedIn) .IsPrivate}}
|
2022-08-27 04:32:26 +00:00
|
|
|
<div class="py-6"></div>
|
|
|
|
{{else if .IsPrivate}}
|
2022-08-22 00:29:39 +00:00
|
|
|
<div class="block p-4">
|
|
|
|
<div class="notification block is-warning">
|
|
|
|
<i class="fa fa-mask"></i> This member's profile page is <strong>private.</strong> You may send them
|
|
|
|
a friend request, and only if approved, you may then view their profile page and photo gallery.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2022-08-11 03:59:59 +00:00
|
|
|
<div class="block p-4">
|
2023-09-14 04:28:38 +00:00
|
|
|
<div class="tabs is-boxed mb-0">
|
2022-08-13 06:11:36 +00:00
|
|
|
<ul>
|
|
|
|
<li class="is-active">
|
|
|
|
<a>
|
|
|
|
<span class="icon is-small">
|
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
</span>
|
|
|
|
<span>Profile</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2024-02-11 00:17:15 +00:00
|
|
|
<a href="/u/{{.User.Username}}/photos">
|
2022-08-13 06:11:36 +00:00
|
|
|
<span class="icon is-small">
|
|
|
|
<i class="fa fa-image"></i>
|
|
|
|
</span>
|
2022-08-26 02:58:43 +00:00
|
|
|
<span>
|
|
|
|
Photos
|
|
|
|
{{if .PhotoCount}}<span class="tag is-link is-light ml-1">{{.PhotoCount}}</span>{{end}}
|
|
|
|
</span>
|
2022-08-13 06:11:36 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2023-09-16 20:46:26 +00:00
|
|
|
<li>
|
2024-02-11 00:17:15 +00:00
|
|
|
<a href="/u/{{.User.Username}}/notes">
|
2023-09-16 20:46:26 +00:00
|
|
|
<span class="icon is-small">
|
|
|
|
<i class="fa fa-pen-to-square"></i>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Notes
|
|
|
|
{{if .NoteCount}}<span class="tag is-link is-light ml-1">{{.NoteCount}}</span>{{end}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2023-10-22 22:02:24 +00:00
|
|
|
<li>
|
2024-02-11 00:17:15 +00:00
|
|
|
<a href="/u/{{.User.Username}}/friends">
|
2023-10-22 22:02:24 +00:00
|
|
|
<span class="icon is-small">
|
|
|
|
<i class="fa fa-user-group"></i>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Friends
|
|
|
|
{{if .FriendCount}}<span class="tag is-link is-light ml-1">{{.FriendCount}}</span>{{end}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-08-13 06:11:36 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2023-09-14 04:28:38 +00:00
|
|
|
<!-- Show who likes this user -->
|
|
|
|
{{if not .CurrentUser.IsShy}}
|
|
|
|
{{template "like-example" .}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="columns mt-1">
|
2022-08-11 03:59:59 +00:00
|
|
|
|
|
|
|
<div class="column is-two-thirds">
|
|
|
|
<div class="card block">
|
|
|
|
<header class="card-header has-background-link">
|
|
|
|
<p class="card-header-title has-text-light">
|
|
|
|
About Me
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="content">
|
|
|
|
{{or (ToMarkdown (.User.GetProfileField "about_me")) "n/a"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card block">
|
|
|
|
<header class="card-header has-background-link">
|
|
|
|
<p class="card-header-title has-text-light">
|
|
|
|
My Interests
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="content">
|
|
|
|
{{or (ToMarkdown (.User.GetProfileField "interests")) "n/a"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card block">
|
|
|
|
<header class="card-header has-background-link">
|
|
|
|
<p class="card-header-title has-text-light">
|
|
|
|
Music/Bands/Movies
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="content">
|
|
|
|
{{or (ToMarkdown (.User.GetProfileField "music_movies")) "n/a"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
<div class="card block">
|
|
|
|
<header class="card-header has-background-info">
|
|
|
|
<p class="card-header-title has-text-light">
|
|
|
|
<i class="fa fa-user pr-2"></i>
|
|
|
|
About {{.User.Username}}
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content">
|
2023-12-26 23:44:34 +00:00
|
|
|
<table class="table is-fullwidth" style="font-size: small">
|
2022-08-11 03:59:59 +00:00
|
|
|
<tr>
|
|
|
|
<td class="has-text-right">
|
|
|
|
<strong class="is-size-7">Age:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
2023-06-16 05:05:21 +00:00
|
|
|
<!-- The user's display age (or 'n/a' if don't have or they hide it) -->
|
|
|
|
{{.User.GetDisplayAge}}
|
|
|
|
|
|
|
|
<!-- Admin version always shows it -->
|
|
|
|
{{if .CurrentUser.IsAdmin}}
|
|
|
|
<small class="has-text-danger">
|
|
|
|
{{if not .User.Birthdate.IsZero}}
|
|
|
|
({{ComputeAge .User.Birthdate}})
|
|
|
|
{{else}}
|
|
|
|
(n/a)
|
|
|
|
{{end}}
|
|
|
|
</small>
|
2022-08-11 03:59:59 +00:00
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="has-text-right">
|
|
|
|
<strong class="is-size-7">Gender:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{or (.User.GetProfileField "gender") "n/a"}}
|
|
|
|
<small class="ml-3">{{.User.GetProfileField "pronouns"}}</small>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="has-text-right">
|
|
|
|
<strong class="is-size-7">City:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{or (.User.GetProfileField "city") "n/a"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="has-text-right">
|
|
|
|
<strong class="is-size-7">Job:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{or (.User.GetProfileField "job") "n/a"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="has-text-right">
|
|
|
|
<strong class="is-size-7">Marital status:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{or (.User.GetProfileField "marital_status") "n/a"}}
|
|
|
|
{{if .User.GetProfileField "relationship_type"}}({{.User.GetProfileField "relationship_type"}}){{end}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="has-text-right">
|
|
|
|
<strong class="is-size-7">Orientation:</small>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{or (.User.GetProfileField "orientation") "n/a"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="has-text-right">
|
|
|
|
<strong class="is-size-7">Here for:</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{range Split (.User.GetProfileField "here_for") ","}}
|
|
|
|
<div class="tag">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-14 23:27:57 +00:00
|
|
|
|
2024-01-07 00:44:05 +00:00
|
|
|
<div class="card block">
|
|
|
|
<header class="card-header has-background-info">
|
|
|
|
<p class="card-header-title has-text-light">
|
|
|
|
<i class="fa fa-chart-line pr-2"></i>
|
|
|
|
Activity
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content">
|
2024-04-25 03:36:37 +00:00
|
|
|
|
|
|
|
<!-- Lazy load the statistics card-->
|
|
|
|
<div hx-get="/htmx/user/profile/activity?username={{.User.Username}}&delay=1" hx-trigger="load">
|
|
|
|
<i class="fa fa-spinner fa-spin mr-1"></i> Loading...
|
|
|
|
</div>
|
2024-01-07 00:44:05 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-08-14 23:27:57 +00:00
|
|
|
<!-- Admin Actions-->
|
|
|
|
{{if .CurrentUser.IsAdmin}}
|
|
|
|
<div class="card block">
|
|
|
|
<header class="card-header has-background-danger">
|
|
|
|
<p class="card-header-title has-text-light">
|
2023-08-30 07:08:20 +00:00
|
|
|
<i class="fa fa-peace pr-2"></i>
|
2024-04-05 05:24:35 +00:00
|
|
|
Admin
|
2022-08-14 23:27:57 +00:00
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content">
|
2024-04-05 05:24:35 +00:00
|
|
|
<aside class="menu">
|
|
|
|
<ul class="menu-list">
|
|
|
|
<p class="menu-label">Profile Information</p>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/user-action?intent=insights&user_id={{.User.ID}}">
|
|
|
|
<span class="icon"><i class="fa fa-search"></i></span>
|
|
|
|
<span>Admin insights <small>(block lists, etc.)</small></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/changelog?about_user_id={{.User.ID}}">
|
|
|
|
<span class="icon"><i class="fa fa-clipboard-list"></i></span>
|
|
|
|
<span>Change logs about this user</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/changelog?table_name=users&table_id={{.User.ID}}">
|
|
|
|
<span class="icon"><i class="fa fa-clipboard-list"></i></span>
|
|
|
|
<span>User account history</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<p class="menu-label">Admin Actions</p>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/user-action?intent=impersonate&user_id={{.User.ID}}">
|
|
|
|
<span class="icon"><i class="fa fa-ghost"></i></span>
|
|
|
|
<span>Impersonate this user</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/user-action?intent=ban&user_id={{.User.ID}}">
|
|
|
|
<span class="icon"><i class="fa fa-ban"></i></span>
|
|
|
|
<span>Ban/unban this user</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/user-action?intent=promote&user_id={{.User.ID}}">
|
|
|
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
|
|
|
<span>Add/Remove admin rights</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/admin/user-action?intent=delete&user_id={{.User.ID}}">
|
|
|
|
<span class="icon"><i class="fa fa-trash"></i></span>
|
|
|
|
<span>Delete user account</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</aside>
|
2022-08-14 23:27:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
2022-08-22 00:29:39 +00:00
|
|
|
</div><!-- /columns-->
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
2022-08-22 00:29:39 +00:00
|
|
|
{{end}}<!-- not IsPrivate -->
|
2022-08-11 03:59:59 +00:00
|
|
|
</div>
|
2023-06-24 05:18:09 +00:00
|
|
|
{{end}}
|