moviewyrm/fedireads/templates/layout.html

71 lines
2.4 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>
<title>FediReads</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="/static/format.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="FediReads">
<meta name="og:title" content="FediReads">
<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>
<div>
2020-01-29 01:39:07 +00:00
<div id="branding"><a href="/">📚FediReads</a></div>
<div id="actions">
<div id="account">
{% if request.user.is_authenticated %}
2020-01-29 01:39:07 +00:00
<form name="logout" action="/logout/" method="post">
2020-01-29 20:24:50 +00:00
{% csrf_token %}
2020-02-19 06:44:13 +00:00
Welcome, {% include 'snippets/username.html' with user=request.user %}
2020-01-29 01:39:07 +00:00
<input type="submit" value="Log out"></input>
</form>
{% else %}
<form name="login" action="/login/" method="post">
2020-02-21 20:15:18 +00:00
{% csrf_token %}
2020-01-29 07:23:05 +00:00
{% for field in login_form %}
{{ field }}
{% endfor %}
2020-01-29 01:39:07 +00:00
<input type="submit" value="Log in"></input>
</form>
{% endif %}
</div>
<div id="search">
<form action="/search/">
2020-01-29 07:23:05 +00:00
<input type="text" name="q" placeholder="search"></input>
2020-01-29 01:39:07 +00:00
<input type="submit" value="🔍"></input>
</form>
</div>
2020-03-07 22:50:29 +00:00
{% if request.user.is_authenticated %}
<div id="notification">
<a href="/notifications">
🔔 ({{ request.user | notification_count }})
</a>
</div>
{% endif %}
2020-01-25 23:25:19 +00:00
</div>
</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>
</body>
</html>