diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-03-28 00:05:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 18:05:51 +0200 |
commit | 31ab331b233d09568d47ffa25ea5516282d8e71b (patch) | |
tree | b973b2cbb4864676242415d89851468f577a8662 /templates/repo/issue | |
parent | ec261b63e14f84da3e2d9a6e27c8b831a7750677 (diff) | |
download | gitea-31ab331b233d09568d47ffa25ea5516282d8e71b.tar.gz gitea-31ab331b233d09568d47ffa25ea5516282d8e71b.zip |
Remove incorrect HTML self close tag (#23748)
HTML is not XML.
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/choose.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/issue/labels/edit_delete_label.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/labels/label_load_template.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/issue/labels/label_new.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/milestones.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/search.tmpl | 14 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content/sidebar.tmpl | 6 |
8 files changed, 18 insertions, 18 deletions
diff --git a/templates/repo/issue/choose.tmpl b/templates/repo/issue/choose.tmpl index 192754f5f7..688e98bfc6 100644 --- a/templates/repo/issue/choose.tmpl +++ b/templates/repo/issue/choose.tmpl @@ -12,7 +12,7 @@ <div class="ui two column grid"> <div class="column left aligned"> <strong>{{.Name | RenderEmojiPlain}}</strong> - <br/>{{.About | RenderEmojiPlain}} + <br>{{.About | RenderEmojiPlain}} </div> <div class="column right aligned"> <a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if $.milestone}}&milestone={{$.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.locale.Tr "repo.issues.choose.get_started"}}</a> @@ -24,7 +24,7 @@ <div class="ui two column grid"> <div class="column left aligned"> <strong>{{.locale.Tr "repo.issues.choose.blank"}}</strong> - <br/>{{.locale.Tr "repo.issues.choose.blank_about"}} + <br>{{.locale.Tr "repo.issues.choose.blank_about"}} </div> <div class="column right aligned"> <a href="{{.RepoLink}}/issues/new?{{if .milestone}}&milestone={{.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.locale.Tr "repo.issues.choose.get_started"}}</a> diff --git a/templates/repo/issue/labels/edit_delete_label.tmpl b/templates/repo/issue/labels/edit_delete_label.tmpl index 38a948172f..568195880d 100644 --- a/templates/repo/issue/labels/edit_delete_label.tmpl +++ b/templates/repo/issue/labels/edit_delete_label.tmpl @@ -28,7 +28,7 @@ <input class="label-exclusive-input" name="exclusive" type="checkbox"> <label>{{.locale.Tr "repo.issues.label_exclusive"}}</label> </div> - <br/> + <br> <small class="desc">{{.locale.Tr "repo.issues.label_exclusive_desc" | Safe}}</small> <div class="desc gt-ml-2 gt-mt-3 gt-hidden label-exclusive-warning"> {{svg "octicon-alert"}} {{.locale.Tr "repo.issues.label_exclusive_warning" | Safe}} diff --git a/templates/repo/issue/labels/label_load_template.tmpl b/templates/repo/issue/labels/label_load_template.tmpl index 010b691638..21caf2b472 100644 --- a/templates/repo/issue/labels/label_load_template.tmpl +++ b/templates/repo/issue/labels/label_load_template.tmpl @@ -2,7 +2,7 @@ <div class="twelve wide computer column"> <div class="ui attached left aligned segment"> <p>{{.locale.Tr "repo.issues.label_templates.info"}}</p> - <br/> + <br> <form class="ui form center" action="{{.Link}}/initialize" method="post"> {{.CsrfTokenHtml}} <div class="field"> @@ -11,7 +11,7 @@ <div class="default text">{{.locale.Tr "repo.issues.label_templates.helper"}}</div> <div class="menu"> {{range $template, $labels := .LabelTemplates}} - <div class="item" data-value="{{$template}}">{{$template}}<br/><i>({{$labels}})</i></div> + <div class="item" data-value="{{$template}}">{{$template}}<br><i>({{$labels}})</i></div> {{end}} </div> {{svg "octicon-triangle-down" 18 "dropdown icon"}} diff --git a/templates/repo/issue/labels/label_new.tmpl b/templates/repo/issue/labels/label_new.tmpl index c937f28e8a..0286f8f228 100644 --- a/templates/repo/issue/labels/label_new.tmpl +++ b/templates/repo/issue/labels/label_new.tmpl @@ -16,7 +16,7 @@ <input class="label-exclusive-input" name="exclusive" type="checkbox"> <label>{{.locale.Tr "repo.issues.label_exclusive"}}</label> </div> - <br/> + <br> <small class="desc">{{.locale.Tr "repo.issues.label_exclusive_desc" | Safe}}</small> </div> <div class="field"> diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 5797b358f7..0a113e2484 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -31,7 +31,7 @@ <div class="column center aligned"> <form class="ui form ignore-dirty"> <div class="ui search fluid action input"> - <input type="hidden" name="state" value="{{$.State}}"/> + <input type="hidden" name="state" value="{{$.State}}"> <input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..."> <button class="ui primary button" type="submit">{{.locale.Tr "explore.search"}}</button> </div> diff --git a/templates/repo/issue/search.tmpl b/templates/repo/issue/search.tmpl index c4aa972c90..9a8a77bb87 100644 --- a/templates/repo/issue/search.tmpl +++ b/templates/repo/issue/search.tmpl @@ -1,12 +1,12 @@ <form class="ui form ignore-dirty"> <div class="ui search fluid action input"> - <input type="hidden" name="type" value="{{$.ViewType}}"/> - <input type="hidden" name="state" value="{{$.State}}"/> - <input type="hidden" name="labels" value="{{.SelectLabels}}"/> - <input type="hidden" name="milestone" value="{{$.MilestoneID}}"/> - <input type="hidden" name="project" value="{{$.ProjectID}}"/> - <input type="hidden" name="assignee" value="{{$.AssigneeID}}"/> - <input type="hidden" name="poster" value="{{$.PosterID}}"/> + <input type="hidden" name="type" value="{{$.ViewType}}"> + <input type="hidden" name="state" value="{{$.State}}"> + <input type="hidden" name="labels" value="{{.SelectLabels}}"> + <input type="hidden" name="milestone" value="{{$.MilestoneID}}"> + <input type="hidden" name="project" value="{{$.ProjectID}}"> + <input type="hidden" name="assignee" value="{{$.AssigneeID}}"> + <input type="hidden" name="poster" value="{{$.PosterID}}"> <input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..."> <button class="ui primary button" type="submit">{{.locale.Tr "explore.search"}}</button> </div> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 8a55d4e30e..99337c531f 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -12,7 +12,7 @@ <!-- Agree, there should be a better way, eg: introduce window.config.pageData (original author: wxiaoguang @ 2021-09-05) --> <input type="hidden" id="repolink" value="{{$.RepoRelPath}}"> <input type="hidden" id="repoId" value="{{.Repository.ID}}"> - <input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/> + <input type="hidden" id="issueIndex" value="{{.Issue.Index}}"> <input type="hidden" id="type" value="{{.IssueType}}"> {{$createdStr:= TimeSinceUnix .Issue.CreatedUnix $.locale}} diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 37a565cbc8..0deb0a1891 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -294,7 +294,7 @@ <span class="text"><strong>{{.locale.Tr "notification.notifications"}}</strong></span> <div class="gt-mt-3"> <form method="POST" action="{{.Issue.Link}}/watch"> - <input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}" /> + <input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}"> {{$.CsrfTokenHtml}} <button class="fluid ui button gt-df gt-jc"> {{if $.IssueWatch.IsWatching}} @@ -517,8 +517,8 @@ <div class="content"> <form method="POST" action="{{.Issue.Link}}/dependency/delete" id="removeDependencyForm"> {{$.CsrfTokenHtml}} - <input type="hidden" value="" name="removeDependencyID" id="removeDependencyID"/> - <input type="hidden" value="" name="dependencyType" id="dependencyType"/> + <input type="hidden" value="" name="removeDependencyID" id="removeDependencyID"> + <input type="hidden" value="" name="dependencyType" id="dependencyType"> </form> <p>{{if .Issue.IsPull}} {{.locale.Tr "repo.issues.dependency.pr_remove_text"}} |