63 lines
2.9 KiB
Plaintext
63 lines
2.9 KiB
Plaintext
<%# Canopy - The next generation of stoner streaming software
|
|
Copyright (C) 2024-2025 Rainbownapkin and the TTN Community
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as
|
|
published by the Free Software Foundation, either version 3 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<%- include('partial/styles', {instance, user}); %>
|
|
<%- include('partial/csrfToken', {csrfToken}); %>
|
|
<% %>
|
|
<link rel="stylesheet" type="text/css" href="/css/profile.css">
|
|
<% if(profile){ %>
|
|
<title><%= instance %> - Profile: <%= profile.user %></title>
|
|
<% } else { %>
|
|
<title><%= instance %> - Profile: Logged Out</title>
|
|
<% } %>
|
|
</head>
|
|
<body>
|
|
<%- include('partial/navbar', {user}); %>
|
|
<% if(profile){ %>
|
|
<div id="account">
|
|
<div class="profile dynamic-container" id="profile-div">
|
|
<span id="profile-info" class="profile">
|
|
<h1 class="profile-item" id="profile-username"><%- profile.user %></h1>
|
|
<%- include('partial/profile/status', {profile, presence, auxClass: ""}); %>
|
|
<%- include('partial/profile/image', {profile, selfProfile}); %>
|
|
<%- include('partial/profile/pronouns', {profile, selfProfile}); %>
|
|
<%- include('partial/profile/signature', {profile, selfProfile}); %>
|
|
<%- include('partial/profile/tokeCount', {profile, selfProfile}); %>
|
|
<%- include('partial/profile/date', {profile, selfProfile}); %>
|
|
</span>
|
|
<span id="profile-info-aux" class="profile">
|
|
<%- include('partial/profile/bio', {profile, selfProfile}); %>
|
|
<%- include('partial/profile/badges', {profile, selfProfile}); %>
|
|
</span>
|
|
</div>
|
|
<% if(selfProfile){ %>
|
|
<%- include('partial/profile/settings', {profile, selfProfile}); %>
|
|
<% } %>
|
|
</div>
|
|
<% }else if(user){ %>
|
|
<h1 class="profile-item" id="profile-error-label">Profile not found!</h1>
|
|
<% } else {%>
|
|
<h1 class="profile-item" id="profile-error-label">Please login to view your profile!</h1>
|
|
<% } %>
|
|
</body>
|
|
<footer>
|
|
<%- include('partial/scripts', {user}); %>
|
|
<script src="/js/profile.js"></script>
|
|
</footer>
|
|
</html>
|