74 lines
2.6 KiB
HTML
74 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<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>
|
|
<h1>LinkLog</h1>
|
|
<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-login-button" href="/login">Sign in</a>
|
|
<a id="auth-profile-link" class="hidden" href="/profile">Profile</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>
|
|
</section>
|
|
|
|
<section id="feed" class="feed" aria-live="polite"></section>
|
|
</main>
|
|
|
|
<script src="/static/auth-header.js?v=3"></script>
|
|
<script src="/static/logout.js?v=3"></script>
|
|
<script src="/static/feed.js?v=5"></script>
|
|
</body>
|
|
</html>
|