Skip to content

Commit 28d2bc7

Browse files
committed
move filename to top bar
1 parent c4abb50 commit 28d2bc7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compare50/_renderer/templates/match.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<div class="row sticky-top bg-dark text-light">
33
{% for sub, side in (sub_a, "left"), (sub_b, "right") %}
44
<div class="sub_name" id="{{name}}{{side}}_header">
5-
<h5 title="{{sub.path}}">{{sub.name}} ({{sub.percentage}}%)</h5>
5+
{% for file in sub.files %}
6+
<h5 title="{{sub.path}}">{{sub.name}} - {{file.name}} ({{sub.percentage}}%)</h5>
7+
{%- endfor -%}
68
</div>
79
{% endfor %}
810
</div>
@@ -11,7 +13,6 @@ <h5 title="{{sub.path}}">{{sub.name}} ({{sub.percentage}}%)</h5>
1113
<div class="col-sm-6 col-2 side {{side}}" id="{{name}}{{side}}">
1214
{% for file in sub.files %}
1315
<div class="submission-file">
14-
<h4 class="file_name">{{file.name}} <span class="text-secondary small">({{file.percentage}}%)</span></h4>
1516
<pre>
1617
{%- set ns = namespace(is_newline=true) -%}
1718
{%- for frag in file.fragments -%}

0 commit comments

Comments
 (0)