forked from mirrors/bookwyrm
86 lines
3 KiB
HTML
86 lines
3 KiB
HTML
{% load fr_display %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>BookWyrm</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link type="text/css" rel="stylesheet" href="/static/format.css">
|
|
<link type="text/css" rel="stylesheet" href="/static/icons.css">
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/static/images/favicon.ico">
|
|
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:title" content="BookWyrm">
|
|
<meta name="og:title" content="BookWyrm">
|
|
<meta name="twitter:description" content="Federated Social Reading">
|
|
<meta name="og:description" content="Federated Social Reading">
|
|
<meta name="twitter:creator" content="@tripofmice">
|
|
<meta name="twitter:site" content="@tripofmice">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="top-bar">
|
|
<header class="row">
|
|
<div id="branding">
|
|
<a href="/">
|
|
<img id="logo" src="/static/images/logo-small.png" alt="BookWyrm"></img>
|
|
</a>
|
|
</div>
|
|
|
|
<ul id="menu">
|
|
{% if request.user.is_authenticated %}
|
|
<li><a href="/user/{{request.user.localname}}/shelves">Your shelves</a></li>
|
|
{% endif %}
|
|
<li><a href="/#feed">Updates</a></li>
|
|
<li><a href="/books">Discover Books</a></li>
|
|
</ul>
|
|
|
|
<div id="actions">
|
|
<div id="search">
|
|
<form action="/search/">
|
|
<input type="text" name="q" placeholder="Search for a book or user">
|
|
<button type="submit">
|
|
<span class="icon icon-search">
|
|
<span class="hidden-text">search</span>
|
|
</span>
|
|
</button>
|
|
</form>
|
|
</div>
|
|
{% if request.user.is_authenticated %}
|
|
<div id="notifications">
|
|
<a href="/notifications">
|
|
<span class="icon icon-bell">
|
|
<span class="hidden-text">Notitications</span>
|
|
</span>
|
|
{% if request.user|notification_count %}<span class="count">{{ request.user | notification_count }}</span>{% endif %}
|
|
</a>
|
|
</div>
|
|
<div class="pulldown-container">
|
|
{% include 'snippets/avatar.html' with user=request.user %}
|
|
<ul class="pulldown">
|
|
<li><a href="/user/{{ request.user }}">Your profile</a></li>
|
|
<li><a href="/user-edit/">Settings</a></li>
|
|
<li><a href="/import">Import Books</a></li>
|
|
<li><a href="/manage_invites/">Invites</a></li>
|
|
<li><a href="/logout/">Log out</a></li>
|
|
</ul>
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
</header>
|
|
</div>
|
|
|
|
<div id="main">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
|
|
<script>
|
|
var csrf_token = '{{ csrf_token }}';
|
|
</script>
|
|
<script src="/static/js/shared.js"></script>
|
|
</body>
|
|
</html>
|
|
|