85 lines
3.1 KiB
HTML
85 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<!-- Copyright © 2026 Olaf Kolkman -->
|
|
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>LinkLog Feed</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" href="/static/style.css" />
|
|
</head>
|
|
<body data-user-filter="{{ user_filter or '' }}">
|
|
<header class="site-header">
|
|
<div class="container">
|
|
<div class="header-row">
|
|
<div>
|
|
<img class="site-logo" src="/static/logo.svg" alt="LinkLog" />
|
|
<p>Public link feed</p>
|
|
</div>
|
|
<div class="header-actions">
|
|
<button class="menu-toggle" type="button" aria-expanded="false" aria-controls="auth-menu">Menu</button>
|
|
<nav id="auth-menu" class="auth-menu hidden" aria-label="Account menu">
|
|
<a id="auth-home-link" href="/">Home</a>
|
|
<a id="auth-about-link" href="/about">About</a>
|
|
<a id="auth-login-button" href="/login">Sign in</a>
|
|
<a id="auth-profile-link" class="hidden" href="/profile">Profile</a>
|
|
<a id="auth-labels-link" class="hidden" href="/labels">Labels</a>
|
|
<a id="auth-admin-link" class="hidden" href="/admin">Admin</a>
|
|
<div id="auth-session" class="auth-session hidden">
|
|
<a id="auth-username" class="user-name" href="/"></a>
|
|
</div>
|
|
<button id="logout-button" class="logout-button hidden" type="button">Sign out</button>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container">
|
|
{% if profile %}
|
|
<section class="link-item profile-summary">
|
|
<div class="link-header">
|
|
<div class="avatar">
|
|
{% if profile.avatar_url %}
|
|
<img src="{{ profile.avatar_url }}" alt="{{ profile.username }} avatar" />
|
|
{% else %}
|
|
{{ profile.username[:1].upper() }}
|
|
{% endif %}
|
|
</div>
|
|
<div class="user-name">{{ profile.username }}</div>
|
|
</div>
|
|
<p>{{ profile.bio or 'No profile information provided.' }}</p>
|
|
</section>
|
|
{% endif %}
|
|
<section class="toolbar">
|
|
<label>
|
|
Sort
|
|
<select id="sort-select">
|
|
<option value="newest">Newest first</option>
|
|
<option value="oldest">Oldest first</option>
|
|
</select>
|
|
</label>
|
|
<label>
|
|
User filter
|
|
<select id="user-filter">
|
|
<option value="">All users</option>
|
|
</select>
|
|
</label>
|
|
<label>
|
|
Tag filter
|
|
<select id="tag-filter">
|
|
<option value="">All tags</option>
|
|
</select>
|
|
</label>
|
|
</section>
|
|
|
|
<section id="feed" class="feed" aria-live="polite"></section>
|
|
</main>
|
|
<footer class="site-footer">Copyright © 2026 Olaf Kolkman · <a href="https://git.kolkman.org/olaf/Link-Log">git.kolkman.org/LinkLog</a></footer>
|
|
|
|
<script src="/static/auth-header.js?v=3"></script>
|
|
<script src="/static/logout.js?v=3"></script>
|
|
<script src="/static/feed.js?v=7"></script>
|
|
</body>
|
|
</html>
|