2023-01-12 08:46:56 +00:00
|
|
|
{% import "utils.html" as utils %}
|
|
|
|
|
2020-11-23 00:29:05 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
{% block head %}
|
2020-12-21 01:45:26 +00:00
|
|
|
<title>{% block title %}Libreddit{% endblock %}</title>
|
2020-12-21 16:38:24 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2020-11-23 00:29:05 +00:00
|
|
|
<meta name="description" content="View on Libreddit, an alternative private front-end to Reddit.">
|
2020-12-06 04:54:43 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2021-02-01 10:10:53 +00:00
|
|
|
<!-- General PWA -->
|
2021-02-02 00:26:35 +00:00
|
|
|
<meta name="theme-color" content="#1F1F1F">
|
2021-02-01 10:10:53 +00:00
|
|
|
<!-- iOS Application -->
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Libreddit">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
2021-11-24 06:23:29 +00:00
|
|
|
<!-- Android -->
|
2021-02-01 10:10:53 +00:00
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
<!-- iOS Logo -->
|
2021-03-18 00:28:05 +00:00
|
|
|
<link href="/touch-icon-iphone.png" rel="apple-touch-icon">
|
2021-02-01 10:10:53 +00:00
|
|
|
<!-- PWA Manifest -->
|
2021-03-18 00:28:05 +00:00
|
|
|
<link rel="manifest" type="application/json" href="/manifest.json">
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
2022-11-23 21:43:36 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/style.css?v={{ env!("CARGO_PKG_VERSION") }}">
|
2020-11-23 00:29:05 +00:00
|
|
|
{% endblock %}
|
2020-12-31 23:54:13 +00:00
|
|
|
</head>
|
2021-01-11 02:15:34 +00:00
|
|
|
<body class="
|
|
|
|
{% if prefs.layout != "" %}{{ prefs.layout }}{% endif %}
|
|
|
|
{% if prefs.wide == "on" %} wide{% endif %}
|
2021-01-18 02:11:36 +00:00
|
|
|
{% if prefs.theme != "system" %} {{ prefs.theme }}{% endif %}">
|
2021-01-04 03:44:44 +00:00
|
|
|
<!-- NAVIGATION BAR -->
|
2020-12-21 01:45:26 +00:00
|
|
|
<nav>
|
2021-01-30 22:52:18 +00:00
|
|
|
<div id="logo">
|
2021-02-01 04:56:13 +00:00
|
|
|
<a id="libreddit" href="/"><span id="lib">lib</span><span id="reddit">reddit.</span></a>
|
2021-01-30 22:52:18 +00:00
|
|
|
{% block subscriptions %}{% endblock %}
|
|
|
|
</div>
|
2020-12-31 23:54:13 +00:00
|
|
|
{% block search %}{% endblock %}
|
2021-01-30 22:52:18 +00:00
|
|
|
<div id="links">
|
2023-02-10 05:25:42 +00:00
|
|
|
<a id="reddit_link" {% if prefs.disable_visit_reddit_confirmation != "on" %}href="#popup"{% else %}href="https://www.reddit.com{{ url }}" rel="nofollow"{% endif %}>
|
2021-11-15 02:39:33 +00:00
|
|
|
<span>reddit</span>
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
2023-02-10 05:40:51 +00:00
|
|
|
<path d="M22 2L12 22"/>
|
|
|
|
<path d="M2 6.70587C3.33333 8.07884 3.33333 11.5971 3.33333 11.5971M3.33333 19.647V11.5971M3.33333 11.5971C3.33333 11.5971 5.125 7.47817 8 7.47817C10.875 7.47817 12 8.85114 12 8.85114"/>
|
2021-11-15 02:39:33 +00:00
|
|
|
</svg>
|
|
|
|
</a>
|
2023-01-12 08:46:56 +00:00
|
|
|
{% if prefs.disable_visit_reddit_confirmation != "on" %}
|
|
|
|
{% call utils::visit_reddit_confirmation(url) %}
|
|
|
|
{% endif %}
|
2021-03-18 00:28:05 +00:00
|
|
|
<a id="settings_link" href="/settings">
|
2021-01-31 21:22:11 +00:00
|
|
|
<span>settings</span>
|
2021-02-01 19:32:57 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
|
|
<title>settings</title>
|
|
|
|
<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>
|
|
|
|
</svg>
|
2021-01-31 21:22:11 +00:00
|
|
|
</a>
|
2021-01-30 22:52:18 +00:00
|
|
|
</div>
|
2020-12-21 01:45:26 +00:00
|
|
|
</nav>
|
2021-01-30 08:33:38 +00:00
|
|
|
|
2021-01-04 03:44:44 +00:00
|
|
|
<!-- MAIN CONTENT -->
|
2020-12-08 17:58:36 +00:00
|
|
|
{% block body %}
|
2020-11-23 00:29:05 +00:00
|
|
|
<main>
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</main>
|
|
|
|
{% endblock %}
|
2023-03-09 05:14:43 +00:00
|
|
|
|
|
|
|
<!-- FOOTER -->
|
2023-01-03 09:39:45 +00:00
|
|
|
{% block footer %}
|
2023-01-30 09:02:43 +00:00
|
|
|
<footer>
|
2023-03-09 05:14:43 +00:00
|
|
|
<p id="version">v{{ env!("CARGO_PKG_VERSION") }}</p>
|
|
|
|
<div class="footer-button">
|
|
|
|
<a href="/info" title="View instance information">ⓘ View instance info</a>
|
|
|
|
</div>
|
|
|
|
<div class="footer-button">
|
|
|
|
<a href="https://github.com/libreddit/libreddit" title="View code on GitHub"><> Code</a>
|
2023-01-30 09:02:43 +00:00
|
|
|
</div>
|
|
|
|
</footer>
|
2023-01-03 09:39:45 +00:00
|
|
|
{% endblock %}
|
2020-11-23 00:29:05 +00:00
|
|
|
</body>
|
2021-01-21 21:04:06 +00:00
|
|
|
</html>
|