DevPlace CI / test (push) Failing after 3h10m39s
Comment and post layouts stay full width on small screens. Secondary actions live in the More menu. Notifications can be grouped and throttled, and Enter can submit when that profile setting is on. Emulated-tool models accept large catalogs, with reserved names aliased on the wire and the catalog cached per owner. A dropped service-worker navigation is retried once. The test server waits 120s to finish importing before it is stopped.
68 lines
3.6 KiB
HTML
68 lines
3.6 KiB
HTML
{% extends "base.html" %}
|
|
{% block extra_head %}
|
|
<link rel="stylesheet" href="{{ static_url('/static/css/news.css') }}">
|
|
<link rel="stylesheet" href="{{ static_url('/static/css/post.css') }}">
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="news-detail">
|
|
<article class="news-detail-card">
|
|
{% if image_url %}
|
|
<div class="news-detail-image">
|
|
<img src="{{ image_url }}" alt="{{ article['title'] }}" loading="lazy" class="image-fallback">
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="news-detail-body">
|
|
<div class="news-detail-meta">
|
|
<span class="news-source">{{ article['source_name'] }}</span>
|
|
{% if is_admin(user) %}
|
|
{% if article.get('featured') %}
|
|
<span class="news-featured-badge">★ Featured</span>
|
|
{% endif %}
|
|
{% if grade >= 9 %}
|
|
<span class="news-grade news-grade-top">Grade {{ grade }}</span>
|
|
{% elif grade >= 7 %}
|
|
<span class="news-grade news-grade-high">Grade {{ grade }}</span>
|
|
{% else %}
|
|
<span class="news-grade">Grade {{ grade }}</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
<span class="news-time">{{ dt_ago(article.synced_at) if article.get('synced_at') else time_ago }}</span>
|
|
</div>
|
|
|
|
<h1 class="news-detail-title">{{ render_title(article['title']) }}</h1>
|
|
|
|
{% if article.get('content') %}
|
|
{% if maturity_hidden(maturity, user) %}
|
|
{% set _level = maturity %}{% include "_maturity_gate.html" %}
|
|
{% else %}
|
|
<div class="news-detail-content rendered-content">{{ render_content(article['content']) }}</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<div class="news-detail-actions">
|
|
<a href="{{ article['url'] }}" target="_blank" rel="noopener" class="news-detail-read-link">
|
|
Read on {{ article['source_name'] }} ↗
|
|
</a>
|
|
{% if user %}
|
|
{% set _type = "news" %}{% set _uid = article['uid'] %}{% set _note = note_content %}{% include "_note_button.html" %}
|
|
{% endif %}
|
|
<dp-action-menu class="news-actions-menu">
|
|
<button type="button" class="news-detail-back" data-action-menu-trigger aria-haspopup="menu" aria-expanded="false" aria-controls="news-actions-panel" aria-label="More actions">⋯ More</button>
|
|
<div class="action-menu-panel" id="news-actions-panel" data-action-menu-panel popover hidden>
|
|
<button type="button" class="news-detail-back" data-share="/news/{{ article['slug'] or article['uid'] }}" data-menu-action>🔗 Share</button>
|
|
{% set _type = "news" %}{% set _uid = article['uid'] %}{% set _bookmarked = bookmarked %}{% set _menu_action = true %}{% include "_bookmark_button.html" %}{% set _menu_action = false %}
|
|
{% set _type = "news" %}{% set _uid = article['uid'] %}{% set _owner = "" %}{% set _owner_name = "" %}{% set _class = "news-detail-back" %}{% set _menu_action = true %}{% include "_report_button.html" %}{% set _menu_action = false %}
|
|
</div>
|
|
</dp-action-menu>
|
|
<a href="/news" class="news-detail-back">← Back to News</a>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
|
|
{% with target_uid=article['uid'], target_type="news", comments=comments %}
|
|
{% include "_comment_section.html" %}
|
|
{% endwith %}
|
|
</div>
|
|
{% endblock %}
|