summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff/image_diff.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-28 00:05:51 +0800
committerGitHub <noreply@github.com>2023-03-27 18:05:51 +0200
commit31ab331b233d09568d47ffa25ea5516282d8e71b (patch)
treeb973b2cbb4864676242415d89851468f577a8662 /templates/repo/diff/image_diff.tmpl
parentec261b63e14f84da3e2d9a6e27c8b831a7750677 (diff)
downloadgitea-31ab331b233d09568d47ffa25ea5516282d8e71b.tar.gz
gitea-31ab331b233d09568d47ffa25ea5516282d8e71b.zip
Remove incorrect HTML self close tag (#23748)
HTML is not XML.
Diffstat (limited to 'templates/repo/diff/image_diff.tmpl')
-rw-r--r--templates/repo/diff/image_diff.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/repo/diff/image_diff.tmpl b/templates/repo/diff/image_diff.tmpl
index 2d4a731758..fba02ad78f 100644
--- a/templates/repo/diff/image_diff.tmpl
+++ b/templates/repo/diff/image_diff.tmpl
@@ -17,7 +17,7 @@
{{if .blobBase}}
<span class="side">
<p class="side-header">{{.root.locale.Tr "repo.diff.file_before"}}</p>
- <span class="before-container"><img class="image-before" /></span>
+ <span class="before-container"><img class="image-before"></span>
<p>
<span class="bounds-info-before">
{{.root.locale.Tr "repo.diff.file_image_width"}}: <span class="text bounds-info-width"></span>
@@ -32,7 +32,7 @@
{{if .blobHead}}
<span class="side">
<p class="side-header">{{.root.locale.Tr "repo.diff.file_after"}}</p>
- <span class="after-container"><img class="image-after" /></span>
+ <span class="after-container"><img class="image-after"></span>
<p>
<span class="bounds-info-after">
{{.root.locale.Tr "repo.diff.file_image_width"}}: <span class="text bounds-info-width"></span>
@@ -50,9 +50,9 @@
<div class="ui bottom attached tab image-diff-container" data-tab="diff-swipe-{{.file.Index}}">
<div class="diff-swipe">
<div class="swipe-frame">
- <span class="before-container"><img class="image-before" /></span>
+ <span class="before-container"><img class="image-before"></span>
<span class="swipe-container">
- <span class="after-container"><img class="image-after" /></span>
+ <span class="after-container"><img class="image-after"></span>
</span>
<span class="swipe-bar">
<span class="handle top-handle"></span>
@@ -65,10 +65,10 @@
<div class="diff-overlay">
<div class="overlay-frame">
<div class="ui centered">
- <input type="range" min="0" max="100" value="50" />
+ <input type="range" min="0" max="100" value="50">
</div>
- <span class="before-container"><img class="image-before"/></span>
- <span class="after-container"><img class="image-after" /></span>
+ <span class="before-container"><img class="image-before"></span>
+ <span class="after-container"><img class="image-after"></span>
</div>
</div>
</div>