|
6 | 6 | <div class="image-diff" data-path-before="{{$imagePathOld}}" data-path-after="{{$imagePathNew}}">
|
7 | 7 | <div class="ui secondary pointing tabular top attached borderless menu stackable new-menu">
|
8 | 8 | <div class="new-menu-inner">
|
9 |
| - <a class="item active" data-tab="diff-side-by-side">{{.root.i18n.Tr "repo.diff.image.side_by_side"}}</a> |
| 9 | + <a class="item active" data-tab="diff-side-by-side-{{ .file.Index }}">{{.root.i18n.Tr "repo.diff.image.side_by_side"}}</a> |
10 | 10 | {{if and .blobBase .blobHead}}
|
11 |
| - <a class="item" data-tab="diff-swipe">{{.root.i18n.Tr "repo.diff.image.swipe"}}</a> |
12 |
| - <a class="item" data-tab="diff-overlay">{{.root.i18n.Tr "repo.diff.image.overlay"}}</a> |
| 11 | + <a class="item" data-tab="diff-swipe-{{ .file.Index }}">{{.root.i18n.Tr "repo.diff.image.swipe"}}</a> |
| 12 | + <a class="item" data-tab="diff-overlay-{{ .file.Index }}">{{.root.i18n.Tr "repo.diff.image.overlay"}}</a> |
13 | 13 | {{end}}
|
14 | 14 | </div>
|
15 | 15 | </div>
|
16 | 16 | <div class="hide">
|
17 |
| - <div class="ui bottom attached tab image-diff-container active" data-tab="diff-side-by-side"> |
| 17 | + <div class="ui bottom attached tab image-diff-container active" data-tab="diff-side-by-side-{{ .file.Index }}"> |
18 | 18 | <div class="diff-side-by-side">
|
19 | 19 | {{if .blobBase }}
|
20 | 20 | <span class="side">
|
|
49 | 49 | </div>
|
50 | 50 | </div>
|
51 | 51 | {{if and .blobBase .blobHead}}
|
52 |
| - <div class="ui bottom attached tab image-diff-container" data-tab="diff-swipe"> |
| 52 | + <div class="ui bottom attached tab image-diff-container" data-tab="diff-swipe-{{ .file.Index }}"> |
53 | 53 | <div class="diff-swipe">
|
54 | 54 | <div class="swipe-frame">
|
55 | 55 | <span class="before-container"><img class="image-before" /></span>
|
|
63 | 63 | </div>
|
64 | 64 | </div>
|
65 | 65 | </div>
|
66 |
| - <div class="ui bottom attached tab image-diff-container" data-tab="diff-overlay"> |
| 66 | + <div class="ui bottom attached tab image-diff-container" data-tab="diff-overlay-{{ .file.Index }}"> |
67 | 67 | <div class="diff-overlay">
|
68 | 68 | <div class="overlay-frame">
|
69 | 69 | <div class="ui centered">
|
|
0 commit comments