diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-02-25 06:34:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 22:34:51 +0000 |
commit | 10c7996b5a5c705964fc6cc9c1817eea1fc436ef (patch) | |
tree | aa05e188128ff0d985c0302d5b5a133e46046e8f /templates/repo | |
parent | ff9dc512438f1a3bc36cc8c419d8450f808517f9 (diff) | |
download | gitea-10c7996b5a5c705964fc6cc9c1817eea1fc436ef.tar.gz gitea-10c7996b5a5c705964fc6cc9c1817eea1fc436ef.zip |
Remove RenderEmojiPlain from template helper (#29375)
RenderEmojiPlain(emoji.ReplaceAliases) should be called explicitly for
some contents, but not for everything.
Actually in modern days, in most cases it doesn't need such
"ReplaceAliases". So only keep it for issue/PR titles.
If anyone really needs to do ReplaceAliases for some contents, I will
propose a following fix.
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/choose.tmpl | 8 | ||||
-rw-r--r-- | templates/repo/settings/lfs_file_find.tmpl | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/issue/choose.tmpl b/templates/repo/issue/choose.tmpl index 127b9d7d87..a8037482be 100644 --- a/templates/repo/issue/choose.tmpl +++ b/templates/repo/issue/choose.tmpl @@ -11,8 +11,8 @@ <div class="ui attached segment"> <div class="ui two column grid"> <div class="column left aligned"> - <strong>{{.Name | RenderEmojiPlain}}</strong> - <br>{{.About | RenderEmojiPlain}} + <strong>{{.Name}}</strong> + <br>{{.About}} </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 primary button">{{ctx.Locale.Tr "repo.issues.choose.get_started"}}</a> @@ -24,8 +24,8 @@ <div class="ui attached segment"> <div class="ui two column grid"> <div class="column left aligned"> - <strong>{{.Name | RenderEmojiPlain}}</strong> - <br>{{.About | RenderEmojiPlain}} + <strong>{{.Name}}</strong> + <br>{{.About}} </div> <div class="column right aligned"> <a href="{{.URL}}" class="ui primary button">{{svg "octicon-link-external"}} {{ctx.Locale.Tr "repo.issues.choose.open_external_link"}}</a> diff --git a/templates/repo/settings/lfs_file_find.tmpl b/templates/repo/settings/lfs_file_find.tmpl index fea9aa323f..809a028b2c 100644 --- a/templates/repo/settings/lfs_file_find.tmpl +++ b/templates/repo/settings/lfs_file_find.tmpl @@ -14,7 +14,7 @@ </td> <td class="message"> <span class="truncate"> - <a href="{{$.RepoLink}}/commit/{{.SHA}}" title="{{.Summary | RenderEmojiPlain}}"> + <a href="{{$.RepoLink}}/commit/{{.SHA}}" title="{{.Summary}}"> {{.Summary | RenderEmoji $.Context}} </a> </span> |