From 35e57a7908eeba083e55598ad4538d4ed185922d Mon Sep 17 00:00:00 2001
From: lemon24
Date: Thu, 2 Jan 2025 00:25:53 +0200
Subject: [PATCH] v2: show entry details before entry title. #318
---
src/reader/_app/v2/static/style.css | 4 --
src/reader/_app/v2/templates/v2/entries.html | 66 +++++++++-----------
2 files changed, 31 insertions(+), 39 deletions(-)
diff --git a/src/reader/_app/v2/static/style.css b/src/reader/_app/v2/static/style.css
index 9b8844fa..9519c605 100644
--- a/src/reader/_app/v2/static/style.css
+++ b/src/reader/_app/v2/static/style.css
@@ -7,7 +7,3 @@
.nav.controls .nav-link.active {
color: var(--bs-navbar-active-color);
}
-
-.list-inline-item.title {
- font-size: 1.125rem;
-}
diff --git a/src/reader/_app/v2/templates/v2/entries.html b/src/reader/_app/v2/templates/v2/entries.html
index 0f885059..478a18be 100644
--- a/src/reader/_app/v2/templates/v2/entries.html
+++ b/src/reader/_app/v2/templates/v2/entries.html
@@ -50,47 +50,43 @@
-
+
-
+ {% set published = entry.published or entry.updated_not_none -%}
+ {# TODO: published should be a tooltip #}
+ {# TODO: babel.format_timedelta(..., format='narrow') -> 3h #}
+
-
+
+ {{ published | humanize_naturaltime }}
+
+
-
-
-
-
- {{ entry.feed_resolved_title or 'untitled feed' }}
-
-
-
+
- {% set published = entry.published or entry.updated_not_none -%}
- {# TODO: published should be a tooltip #}
- {# TODO: babel.format_timedelta(..., format='narrow') -> 3h #}
-
-
-
- {{ published | humanize_naturaltime }}
-
-
+
-
+
+ {#- NOTE: there must be no whitespace between the last word and the icon -#}
+ {#- TODO: aria stuff -#}
+ {%- if entry.link -%}
+ {#
+ #}
+
+ {% endif %}
-
+
+
{% set summary = entry.get_content(prefer_summary=True).value | striptags | trim %}
{% if summary %}
@@ -99,7 +95,7 @@
{% endif %}
-