mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
wcag - heading structure
This commit is contained in:
parent
55ddc0641f
commit
dedfa9a44e
1 changed files with 36 additions and 36 deletions
|
@ -8,7 +8,6 @@
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="row main_row">
|
<div class="row main_row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3 class="post_teaser_title">
|
|
||||||
<div class="voting_buttons" aria-hidden="true">
|
<div class="voting_buttons" aria-hidden="true">
|
||||||
{% include "post/_post_voting_buttons.html" %}
|
{% include "post/_post_voting_buttons.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,18 +37,19 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ url_for('activitypub.post_ap', post_id=post.id, sort='new' if sort == 'active' else None) }}" class="post_teaser_title_a">{{ post.title }}</a>
|
<h3><a href="{{ url_for('activitypub.post_ap', post_id=post.id, sort='new' if sort == 'active' else None) }}" class="post_teaser_title_a">{{ post.title }}</a>
|
||||||
{% if post.type == POST_TYPE_IMAGE %}<span class="fe fe-image" aria-hidden="true"> </span>{% endif %}
|
{% if post.type == POST_TYPE_IMAGE %}<span class="fe fe-image" aria-hidden="true"> </span>{% endif %}
|
||||||
{% if post.type == POST_TYPE_LINK and post.domain_id %}
|
{% if post.type == POST_TYPE_LINK and post.domain_id %}
|
||||||
{% if post.url and 'youtube.com' in post.url %}
|
{% if post.url and 'youtube.com' in post.url %}
|
||||||
<span class="fe fe-video" aria-hidden="true"></span>
|
<span class="fe fe-video" aria-hidden="true"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="domain_link">(<a href="/d/{{ post.domain_id }}" aria-label="{{ _('All posts about this domain') }}">{{ post.domain.name }}</a>)</span>
|
<span class="domain_link" aria-hidden="true">(<a href="/d/{{ post.domain_id }}" aria-label="{{ _('All posts about this domain') }}">{{ post.domain.name }}</a>)</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if post.reports and current_user.is_authenticated and post.community.is_moderator(current_user) %}
|
{% if post.reports and current_user.is_authenticated and post.community.is_moderator(current_user) %}
|
||||||
<span class="red fe fe-report" title="{{ _('Reported. Check post for issues.') }}"></span>
|
<span class="red fe fe-report" title="{{ _('Reported. Check post for issues.') }}"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<span class="small">{% if show_post_community %}<strong><a href="/c/{{ post.community.link() }}" aria-label="{{ _('Go to community') }}">c/{{ post.community.name }}</a></strong>{% endif %}
|
<span class="small">{% if show_post_community %}<strong><a href="/c/{{ post.community.link() }}" aria-label="{{ _('Go to community') }}">c/{{ post.community.name }}</a></strong>{% endif %}
|
||||||
by {{ render_username(post.author) }} {{ moment(post.last_active if sort == 'active' else post.posted_at).fromNow() }}</span>
|
by {{ render_username(post.author) }} {{ moment(post.last_active if sort == 'active' else post.posted_at).fromNow() }}</span>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue