Private
Public Access
Feeds that give no publish date left the row with no time at all and grouped the article under "Undated". The stream's sort order already fell back to fetched_at; the list row, its date-group header, and the open article's header now use the same fallback. The article's own published_at stays empty — nothing is invented in the database, so a later refetch can't see a spurious change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
1.1 KiB
HTML
16 lines
1.1 KiB
HTML
<li id="article-{{ article.pk }}" class="article-row{% if article.is_read %} is-read{% endif %}"
|
|
data-published-utc="{{ article.published_at|default:article.fetched_at|date:"c" }}">
|
|
<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 %}{% if scope_qs %}?{{ scope_qs }}{% endif %}" class="article-title"
|
|
data-inline-url="{% url 'reader:article_inline' article.pk %}">{{ article.title|default:"(untitled)" }}</a>
|
|
{# fetched_at stands in when a feed gives no publish date — same fallback the stream's sort order uses #}
|
|
<time class="article-time" datetime="{{ article.published_at|default:article.fetched_at|date:"c" }}" data-local-format="short">{{ article.published_at|default:article.fetched_at|date:"M j, g:i A" }}</time>
|
|
</div>
|
|
<div id="article-body-{{ article.pk }}" class="article-inline-body" hidden></div>
|
|
</li>
|