summaryrefslogtreecommitdiff
path: root/internal/template/templates/views/feed_entries.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/template/templates/views/feed_entries.html')
-rw-r--r--internal/template/templates/views/feed_entries.html37
1 files changed, 25 insertions, 12 deletions
diff --git a/internal/template/templates/views/feed_entries.html b/internal/template/templates/views/feed_entries.html
index 05181ebe..e101a3ce 100644
--- a/internal/template/templates/views/feed_entries.html
+++ b/internal/template/templates/views/feed_entries.html
@@ -93,20 +93,33 @@
</div>
<div class="items">
{{ range .entries }}
- <article role="article" class="item entry-item {{ if $.user.EntrySwipe }}entry-swipe{{ end }} item-status-{{ .Status }}" data-id="{{ .ID }}">
- <div class="item-header" dir="auto">
- <span class="item-title">
- {{ if ne .Feed.Icon.IconID 0 }}
+ <article class="item entry-item {{ if $.user.EntrySwipe }}entry-swipe{{ end }} item-status-{{ .Status }}" data-id="{{ .ID }}">
+ <header class="item-header" dir="auto">
+ <h2 id="entry-title-{{ .ID }}" class="item-title">
+ <a
+ {{ if $.showOnlyUnreadEntries }}
+ href="{{ route "unreadFeedEntry" "feedID" .Feed.ID "entryID" .ID }}"
+ {{ else }}
+ href="{{ route "feedEntry" "feedID" .Feed.ID "entryID" .ID }}"
+ {{ end }}
+ >
+ {{ if ne .Feed.Icon.IconID 0 }}
<img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
- {{ end }}
- {{ if $.showOnlyUnreadEntries }}
- <a href="{{ route "unreadFeedEntry" "feedID" .Feed.ID "entryID" .ID }}">{{ .Title }}</a>
- {{ else }}
- <a href="{{ route "feedEntry" "feedID" .Feed.ID "entryID" .ID }}">{{ .Title }}</a>
- {{ end }}
+ {{ else }}
+ <span class="sr-only">{{ .Feed.Title }}</span>
+ {{ end }}
+ {{ .Title }}
+ </a>
+ </h2>
+ <span class="category">
+ <a
+ href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}"
+ aria-label="{{ t "page.feeds.category" }}: {{ .Feed.Category.Title }}"
+ >
+ {{ .Feed.Category.Title }}
+ </a>
</span>
- <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
- </div>
+ </header>
{{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
</article>
{{ end }}