Fix templates markup to prevent nesting of commit files diff blocks
Commit detail page improperly closes `.commit-diff` tags inside for-loop which results in diff blocks being nested within each other. This is best visible at large commits with lots of files and lots of changes - with increasing "indentation" from the left side as one scrolls down the long page.
This commit is contained in:
@@ -31,9 +31,9 @@ index {{file.oldid | truncate(length=7,end="")}}..{{file.newid | truncate(length
|
||||
{%- endfor -%}
|
||||
</pre>
|
||||
{% endfor -%}
|
||||
</div>
|
||||
<br/>
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
@@ -31,9 +31,9 @@ index {{file.oldid | truncate(length=7,end="")}}..{{file.newid | truncate(length
|
||||
{%- endfor -%}
|
||||
</pre>
|
||||
{% endfor -%}
|
||||
</div>
|
||||
<br/>
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user