mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
lang attribute for non-english posts
This commit is contained in:
parent
da66219ab8
commit
22f21fb4a1
1 changed files with 3 additions and 2 deletions
|
@ -75,8 +75,9 @@
|
|||
</div>
|
||||
{% macro render_comment(comment) -%}
|
||||
<div id="comment_{{ comment['comment'].id }}" class="comment {% if comment['comment'].score <= -10 -%}low_score{% endif -%}
|
||||
{% if comment['comment'].language_id and comment['comment'].language.code != 'en' %} lang="{{ comment['comment'].language.code }}"{% endif %}
|
||||
{% if comment['comment'].author.id == post.author.id -%}original_poster{% endif -%}" aria-level="{{ comment['comment'].depth + 1 }}" role="treeitem" aria-expanded="true" tabindex="0">
|
||||
{% if comment['comment'].author.id == post.author.id -%}original_poster{% endif -%}"
|
||||
{% if comment['comment'].language_id and comment['comment'].language.code != 'en' -%} lang="{{ comment['comment'].language.code }}"{% endif %}
|
||||
aria-level="{{ comment['comment'].depth + 1 }}" role="treeitem" aria-expanded="true" tabindex="0">
|
||||
<div class="limit_height">{% if not comment['comment'].author.indexable -%}<!--googleoff: all-->{% endif -%}
|
||||
<div class="comment_author">
|
||||
{% with collapsed = comment['comment'].score < reply_collapse_threshold -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue