Rename the time element for privacy
This commit is contained in:
parent
2b94270767
commit
9dfc4ff552
1 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ import dominate.tags as tags
|
||||||
from . import feed
|
from . import feed
|
||||||
|
|
||||||
|
|
||||||
class time(tags.html_tag):
|
class _time(tags.html_tag):
|
||||||
"""The <time> HTML element represents a specific period in time. It may
|
"""The <time> HTML element represents a specific period in time. It may
|
||||||
include the datetime attribute to translate dates into machine-readable
|
include the datetime attribute to translate dates into machine-readable
|
||||||
format, allowing for better search engine results or custom features such
|
format, allowing for better search engine results or custom features such
|
||||||
|
|
@ -41,7 +41,7 @@ def _feed_summary(f: feed.Feed) -> tags.li:
|
||||||
{"class": "feed-summary-timestamp"},
|
{"class": "feed-summary-timestamp"},
|
||||||
tags.i(
|
tags.i(
|
||||||
f"Posted ",
|
f"Posted ",
|
||||||
time(entry.time_ago(), datetime=entry.posted_time_iso()),
|
_time(entry.time_ago(), datetime=entry.posted_time_iso()),
|
||||||
" ago",
|
" ago",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -115,7 +115,7 @@ def feed_view(feeds: list[feed.Feed]) -> tags.html:
|
||||||
target="_blank",
|
target="_blank",
|
||||||
),
|
),
|
||||||
" ",
|
" ",
|
||||||
time(
|
_time(
|
||||||
f"({entry.time_ago()})",
|
f"({entry.time_ago()})",
|
||||||
datetime=entry.posted_time_iso(),
|
datetime=entry.posted_time_iso(),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue