2017-11-20 00:10:04 -05:00
|
|
|
{{ define "base" }}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2018-07-19 01:30:05 -04:00
|
|
|
<title>{{template "title" .}} - Miniflux</title>
|
2017-12-16 00:28:54 -05:00
|
|
|
|
2018-07-19 01:30:05 -04:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2017-12-02 18:01:05 -05:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
2017-12-16 00:28:54 -05:00
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Miniflux">
|
2017-12-22 23:16:49 -05:00
|
|
|
<link rel="manifest" href="{{ route "webManifest" }}">
|
2017-12-16 00:28:54 -05:00
|
|
|
|
2017-11-20 00:10:04 -05:00
|
|
|
<meta name="robots" content="noindex,nofollow">
|
|
|
|
<meta name="referrer" content="no-referrer">
|
2017-12-16 00:28:54 -05:00
|
|
|
|
2018-07-19 00:30:54 -04:00
|
|
|
<!-- Favicons -->
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ route "appIcon" "filename" "favicon-16.png" }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ route "appIcon" "filename" "favicon-32.png" }}">
|
|
|
|
|
|
|
|
<!-- Android icons -->
|
|
|
|
<link rel="icon" type="image/png" sizes="128x128" href="{{ route "appIcon" "filename" "icon-128.png" }}">
|
|
|
|
<link rel="icon" type="image/png" sizes="192x192" href="{{ route "appIcon" "filename" "icon-192.png" }}">
|
|
|
|
|
|
|
|
<!-- iOS icons -->
|
|
|
|
<link rel="apple-touch-icon" sizes="120x120" href="{{ route "appIcon" "filename" "icon-120.png" }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="152x152" href="{{ route "appIcon" "filename" "icon-152.png" }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="167x167" href="{{ route "appIcon" "filename" "icon-167.png" }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ route "appIcon" "filename" "icon-180.png" }}">
|
2017-12-16 00:28:54 -05:00
|
|
|
|
2017-11-20 00:10:04 -05:00
|
|
|
{{ if .csrf }}
|
|
|
|
<meta name="X-CSRF-Token" value="{{ .csrf }}">
|
|
|
|
{{ end }}
|
2018-07-19 01:30:05 -04:00
|
|
|
|
|
|
|
<meta name="theme-color" content="{{ theme_color .theme }}">
|
2018-07-22 15:24:46 -04:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" .theme }}?{{ .theme_checksum }}">
|
2018-07-16 00:51:09 -04:00
|
|
|
|
2018-07-22 15:24:46 -04:00
|
|
|
<script type="text/javascript" src="{{ route "javascript" "name" "app" }}?{{ .app_js_checksum }}" defer></script>
|
|
|
|
<script type="text/javascript" src="{{ route "javascript" "name" "sw" }}?{{ .sw_js_checksum }}" defer id="service-worker-script"></script>
|
2017-11-20 00:10:04 -05:00
|
|
|
</head>
|
|
|
|
<body data-entries-status-url="{{ route "updateEntriesStatus" }}">
|
|
|
|
{{ if .user }}
|
|
|
|
<header class="header">
|
|
|
|
<nav>
|
|
|
|
<div class="logo">
|
|
|
|
<a href="{{ route "unread" }}">Mini<span>flux</span></a>
|
|
|
|
</div>
|
|
|
|
<ul>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li {{ if eq .menu "unread" }}class="active"{{ end }} title="{{ t "tooltip.keyboard_shortcuts" "g u" }}">
|
|
|
|
<a href="{{ route "unread" }}" data-page="unread">{{ t "menu.unread" }}
|
2018-05-21 06:38:44 -04:00
|
|
|
{{ if gt .countUnread 0 }}
|
|
|
|
<span class="unread-counter-wrapper">(<span class="unread-counter">{{ .countUnread }}</span>)</span>
|
|
|
|
{{ end }}
|
|
|
|
</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li {{ if eq .menu "starred" }}class="active"{{ end }} title="{{ t "tooltip.keyboard_shortcuts" "g b" }}">
|
|
|
|
<a href="{{ route "starred" }}" data-page="starred">{{ t "menu.starred" }}</a>
|
2017-12-22 14:33:01 -05:00
|
|
|
</li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li {{ if eq .menu "history" }}class="active"{{ end }} title="{{ t "tooltip.keyboard_shortcuts" "g h" }}">
|
|
|
|
<a href="{{ route "history" }}" data-page="history">{{ t "menu.history" }}</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li {{ if eq .menu "feeds" }}class="active"{{ end }} title="{{ t "tooltip.keyboard_shortcuts" "g f" }}">
|
|
|
|
<a href="{{ route "feeds" }}" data-page="feeds">{{ t "menu.feeds" }}
|
2018-08-26 19:18:07 -04:00
|
|
|
{{ if gt .countErrorFeeds 0 }}
|
|
|
|
<span class="error-feeds-counter-wrapper">(<span class="error-feeds-counter">{{ .countErrorFeeds }}</span>)</span>
|
|
|
|
{{ end }}
|
|
|
|
</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li {{ if eq .menu "categories" }}class="active"{{ end }} title="{{ t "tooltip.keyboard_shortcuts" "g c" }}">
|
|
|
|
<a href="{{ route "categories" }}" data-page="categories">{{ t "menu.categories" }}</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li {{ if eq .menu "settings" }}class="active"{{ end }} title="{{ t "tooltip.keyboard_shortcuts" "g s" }}">
|
|
|
|
<a href="{{ route "settings" }}" data-page="settings">{{ t "menu.settings" }}</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<a href="{{ route "logout" }}" title="{{ t "tooltip.logged_user" .user.Username }}">{{ t "menu.logout" }}</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
2018-07-05 01:05:19 -04:00
|
|
|
<div class="search">
|
|
|
|
<div class="search-toggle-switch {{ if $.searchQuery }}has-search-query{{ end }}">
|
2018-09-21 21:53:29 -04:00
|
|
|
<a href="#" data-action="search">« {{ t "search.label" }}</a>
|
2018-07-05 01:05:19 -04:00
|
|
|
</div>
|
|
|
|
<form action="{{ route "searchEntries" }}" class="search-form {{ if $.searchQuery }}has-search-query{{ end }}">
|
2018-09-21 21:53:29 -04:00
|
|
|
<input type="search" name="q" id="search-input" placeholder="{{ t "search.placeholder" }}" {{ if $.searchQuery }}value="{{ .searchQuery }}"{{ end }} required>
|
2018-07-05 01:05:19 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
2017-11-20 00:10:04 -05:00
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
{{ end }}
|
2017-12-16 21:07:53 -05:00
|
|
|
{{ if .flashMessage }}
|
|
|
|
<div class="flash-message alert alert-success">{{ .flashMessage }}</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .flashErrorMessage }}
|
|
|
|
<div class="flash-error-message alert alert-error">{{ .flashErrorMessage }}</div>
|
|
|
|
{{ end }}
|
2017-12-02 20:04:01 -05:00
|
|
|
<main>
|
2017-11-20 00:10:04 -05:00
|
|
|
{{template "content" .}}
|
2017-12-02 20:04:01 -05:00
|
|
|
</main>
|
2017-12-28 19:27:54 -05:00
|
|
|
<template id="keyboard-shortcuts">
|
|
|
|
<div id="modal-left">
|
|
|
|
<a href="#" class="btn-close-modal">x</a>
|
2018-09-21 21:53:29 -04:00
|
|
|
<h3>{{ t "page.keyboard_shortcuts.title" }}</h3>
|
2017-12-28 19:27:54 -05:00
|
|
|
|
|
|
|
<div class="keyboard-shortcuts">
|
2018-09-21 21:53:29 -04:00
|
|
|
<p>{{ t "page.keyboard_shortcuts.subtitle.sections" }}</p>
|
2017-12-28 19:27:54 -05:00
|
|
|
<ul>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_unread" }} = <strong>g + u</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_starred" }} = <strong>g + b</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_history" }} = <strong>g + h</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_feeds" }} = <strong>g + f</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_categories" }} = <strong>g + c</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_settings" }} = <strong>g + s</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.show_keyboard_shortcuts" }} = <strong>?</strong></li>
|
2017-12-28 19:27:54 -05:00
|
|
|
</ul>
|
|
|
|
|
2018-09-21 21:53:29 -04:00
|
|
|
<p>{{ t "page.keyboard_shortcuts.subtitle.items" }}</p>
|
2017-12-28 19:27:54 -05:00
|
|
|
<ul>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_previous_item" }} = <strong>p</strong>, <strong>j</strong>, <strong>◄</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_next_item" }} = <strong>n</strong>, <strong>k</strong>, <strong>►</strong></li>
|
2017-12-28 19:27:54 -05:00
|
|
|
</ul>
|
|
|
|
|
2018-09-21 21:53:29 -04:00
|
|
|
<p>{{ t "page.keyboard_shortcuts.subtitle.pages" }}</p>
|
2017-12-28 19:27:54 -05:00
|
|
|
<ul>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_previous_page" }} = <strong>h</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_next_page" }} = <strong>l</strong></li>
|
2017-12-28 19:27:54 -05:00
|
|
|
</ul>
|
|
|
|
|
2018-09-21 21:53:29 -04:00
|
|
|
<p>{{ t "page.keyboard_shortcuts.subtitle.actions" }}</p>
|
2017-12-28 19:27:54 -05:00
|
|
|
<ul>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li>{{ t "page.keyboard_shortcuts.open_item" }} = <strong>o</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.open_original" }} = <strong>v</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.toggle_read_status" }} = <strong>m</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.mark_page_as_read" }} = <strong>A</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.download_content" }} = <strong>d</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.toggle_bookmark_status" }} = <strong>f</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.save_article" }} = <strong>s</strong></li>
|
2018-10-13 18:43:09 -04:00
|
|
|
<li>{{ t "page.keyboard_shortcuts.remove_feed" }} = <strong>#</strong></li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<li>{{ t "page.keyboard_shortcuts.go_to_search" }} = <strong>/</strong></li>
|
|
|
|
<li>{{ t "page.keyboard_shortcuts.close_modal" }} = <strong>Esc</strong></li>
|
2017-12-28 19:27:54 -05:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2017-11-20 00:10:04 -05:00
|
|
|
</body>
|
|
|
|
</html>
|
2018-01-17 18:57:30 -05:00
|
|
|
{{ end }}
|