mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Add toggle status button to entry page
This commit is contained in:
parent
4f62a704e2
commit
5341bbcbe2
11 changed files with 57 additions and 30 deletions
|
@ -1,13 +1,22 @@
|
|||
{{ define "title"}}{{ .entry.Title }}{{ end }}
|
||||
|
||||
{{ define "content"}}
|
||||
<section class="entry">
|
||||
<section class="entry" data-id="{{ .entry.ID }}">
|
||||
<header class="entry-header">
|
||||
<h1>
|
||||
<a href="{{ .entry.URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .entry.Title }}</a>
|
||||
</h1>
|
||||
<div class="entry-actions">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#"
|
||||
title="{{ t "Change entry status" }}"
|
||||
data-toggle-status="true"
|
||||
data-label-read="✔ {{ t "Read" }}"
|
||||
data-label-unread="✘ {{ t "Unread" }}"
|
||||
data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
|
||||
>{{ if eq .entry.Status "read" }}✘ {{ t "Unread" }}{{ else }}✔ {{ t "Read" }}{{ end }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"
|
||||
data-toggle-bookmark="true"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue