Private
Public Access
The server still groups articles into "Received today/yesterday/<date>" headers using UTC, so an article published near UTC midnight could land in a mismatched day group. Each article row now ships its raw UTC instant (data-published-utc); static/js/date-groups.js discards the server-rendered headers on load and rebuilds them using the browser's own local calendar day, same approach as the article-time localization this follows up on. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
18 lines
1.0 KiB
HTML
18 lines
1.0 KiB
HTML
<li id="article-{{ article.pk }}" class="article-row{% if article.is_read %} is-read{% endif %}"
|
|
data-published-utc="{% if article.published_at %}{{ article.published_at|date:"c" }}{% endif %}">
|
|
<div class="article-row-main">
|
|
{% include "reader/_article_actions.html" %}
|
|
{% if article.feed.favicon_url %}
|
|
<img src="{{ article.feed.favicon_url }}" alt="" class="feed-favicon">
|
|
{% endif %}
|
|
<span class="article-feed-name">{{ article.feed.title|default:article.feed.feed_url }}</span>
|
|
<a href="{% url 'reader:article_detail' article.pk %}" class="article-title"
|
|
data-inline-url="{% url 'reader:article_inline' article.pk %}"
|
|
onclick="return toggleArticle(event, {{ article.pk }})">{{ article.title|default:"(untitled)" }}</a>
|
|
{% if article.published_at %}
|
|
<time class="article-time" datetime="{{ article.published_at|date:"c" }}" data-local-format="short">{{ article.published_at|date:"g:i A" }}</time>
|
|
{% endif %}
|
|
</div>
|
|
<div id="article-body-{{ article.pk }}" class="article-inline-body" hidden></div>
|
|
</li>
|