]> source.dussan.org Git - gitea.git/commitdiff
Fix edit content button on migrated issue content (#8877)
authormrsdizzie <info@mrsdizzie.com>
Fri, 8 Nov 2019 07:01:24 +0000 (02:01 -0500)
committerLauris BH <lauris@nix.lv>
Fri, 8 Nov 2019 07:01:24 +0000 (09:01 +0200)
Typo on a closing span tag caused edit button not to work properly on
the original issue content for a migrated issue.

Fixes #8876

templates/repo/issue/view_content.tmpl

index 29d48d70891d49a83d150a36bfa0b855b02d6481..9599930d7127b45783843e0882fd1f4e1febd47d 100644 (file)
@@ -22,7 +22,7 @@
                                <div class="content">
                                        <div class="ui top attached header">
                                        {{if .Issue.OriginalAuthor }}
-                                               <span class="text black"><i class="fa {{MigrationIcon .Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .Issue.OriginalAuthor }}</span><span class="text grey"> {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}<span> <span class="text migrate">{{if .Repository.OriginalURL}} ({{$.i18n.Tr "repo.migrated_from" .Repository.OriginalURL .Repository.GetOriginalURLHostname | Safe }}){{end}}</span>
+                                               <span class="text black"><i class="fa {{MigrationIcon .Repository.GetOriginalURLHostname}}" aria-hidden="true"></i> {{ .Issue.OriginalAuthor }}</span><span class="text grey"> {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}</span> <span class="text migrate">{{if .Repository.OriginalURL}} ({{$.i18n.Tr "repo.migrated_from" .Repository.OriginalURL .Repository.GetOriginalURLHostname | Safe }}){{end}}</span>
                                        {{else}}
                                                <span class="text grey"><a {{if gt .Issue.Poster.ID 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.GetDisplayName}}</a> {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}</span>
                                        {{end}}