5c3c27e0af
Раздел «Справка» (категории/статьи/предложка), правки ad_connector и обновление тестов feed под обязательную 2FA. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
2.6 KiB
HTML
41 lines
2.6 KiB
HTML
{% load i18n %}
|
|
<div class="page-content" id="help-article-page">
|
|
|
|
<div style="margin-bottom:1.25rem;">
|
|
<div style="display:flex; flex-wrap:wrap; gap:0.5rem; font-size:0.8125rem; color:var(--color-muted-foreground);">
|
|
<a href="{% url 'help' %}"
|
|
hx-get="{% url 'help' %}" hx-target="#main-content" hx-push-url="{% url 'help' %}" hx-indicator="#loader"
|
|
style="color:var(--color-muted-foreground); text-decoration:none;">{% trans "Справка" %}</a>
|
|
<span>/</span>
|
|
<a href="{% url 'help_category' help_article.category.slug %}"
|
|
hx-get="{% url 'help_category' help_article.category.slug %}" hx-target="#main-content" hx-push-url="{% url 'help_category' help_article.category.slug %}" hx-indicator="#loader"
|
|
style="color:var(--color-muted-foreground); text-decoration:none;">{{ help_article.category.title }}</a>
|
|
</div>
|
|
<div style="display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-top:0.5rem;">
|
|
<h1 style="font-size:1.25rem; font-weight:500; color:var(--color-foreground);">{{ help_article.title }}</h1>
|
|
<a href="{% url 'help_contribute' %}?article={{ help_article.pk }}"
|
|
hx-get="{% url 'help_contribute' %}?article={{ help_article.pk }}" hx-target="#main-content" hx-push-url="true" hx-indicator="#loader"
|
|
class="btn btn-ghost" style="font-size:0.8125rem; white-space:nowrap;">
|
|
{% trans "Предложить правку" %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<article style="background:var(--color-card); border:1px solid var(--color-border); border-radius:0.75rem; padding:1.25rem 1.5rem; font-size:0.9375rem; color:var(--color-foreground); line-height:1.6;">
|
|
{{ help_article.body|safe }}
|
|
</article>
|
|
|
|
{% if help_related %}
|
|
<div style="margin-top:1.5rem;">
|
|
<h2 style="font-size:0.875rem; font-weight:600; color:var(--color-foreground); margin-bottom:0.75rem;">{% trans "Ещё в этой категории" %}</h2>
|
|
<div style="display:flex; flex-direction:column; gap:0.35rem;">
|
|
{% for item in help_related %}
|
|
<a href="{% url 'help_article' item.slug %}"
|
|
hx-get="{% url 'help_article' item.slug %}" hx-target="#main-content" hx-push-url="{% url 'help_article' item.slug %}" hx-indicator="#loader"
|
|
style="font-size:0.8125rem; color:var(--color-primary); text-decoration:none;">{{ item.title }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|