moviewyrm/fedireads/templates/layout.html

79 lines
2.7 KiB
HTML
Raw Normal View History

2020-03-07 22:50:29 +00:00
{% load fr_display %}
2020-01-25 23:25:19 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
2020-03-15 21:15:36 +00:00
<title>BookWyrm</title>
2020-01-25 23:25:19 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="/static/format.css">
2020-03-15 21:15:36 +00:00
<link type="text/css" rel="stylesheet" href="/static/icons.css">
2020-01-25 23:25:19 +00:00
<link rel="shortcut icon" type="image/x-icon" href="/static/images/favicon.ico">
<meta name="twitter:card" content="summary">
2020-03-15 21:15:36 +00:00
<meta name="twitter:title" content="BookWyrm">
<meta name="og:title" content="BookWyrm">
2020-01-25 23:25:19 +00:00
<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>
2020-03-15 21:15:36 +00:00
<div id="branding"><a href="/"><img id="logo" src="/static/images/logo-small.png" alt="BookWyrm"></img></a></div>
<ul class="menu">
2020-03-17 00:29:37 +00:00
<li><a href="/user/{{request.user.localname}}/shelves">Your shelves</a></li>
2020-03-15 21:15:36 +00:00
<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"></input>
<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>
2020-01-25 23:25:19 +00:00
</div>
2020-03-15 21:15:36 +00:00
<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="/logout/">Log out</a></li>
</ul>
</p>
{% endif %}
2020-01-25 23:25:19 +00:00
</div>
</header>
</div>
2020-01-29 01:23:38 +00:00
<div id="main">
{% block content %}
{% endblock %}
2020-01-25 23:25:19 +00:00
</div>
2020-03-15 21:15:36 +00:00
<script>
2020-03-16 01:12:45 +00:00
var csrf_token = '{{ csrf_token }}';
2020-03-15 21:15:36 +00:00
</script>
<script src="/static/js/shared.js"></script>
2020-01-25 23:25:19 +00:00
</body>
</html>