Skip to content

Commit

Permalink
Fix ParRef reference for area citations in translations
Browse files Browse the repository at this point in the history
  • Loading branch information
saviit committed Sep 6, 2023
1 parent e53ffeb commit ab53e1c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions timApp/templates/partials/paragraphs.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@
{%- endif -%}

{%- if t.attrs.rl == 'force' or not (not t.attrs.rd or t.attrs.rl == 'no') -%}
{%- if t.attrs.rd and t.attrs.rp and t.attrs.r == 'tr' -%}
<tim-par-ref
docid="{{ t.attrs.rd }}"
parid="{{ t.attrs.rp }}">
{%- if t.attrs.rd and t.attrs.r == 'tr' and (t.attrs.rp or t.attrs.ra) -%}
<tim-par-ref docid="{{ t.attrs.rd }}"
{% if not t.attrs.ra -%}
parid="{{ t.attrs.rp }}">
{% else -%}
parid="{{ t.target.id }}">
{%- endif %}
</tim-par-ref>
{%- else -%}
<tim-par-ref
Expand Down

0 comments on commit ab53e1c

Please sign in to comment.