mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05:00
f92c3de965
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. (cherry picked from commit 10c7996b5a5c705964fc6cc9c1817eea1fc436ef) Conflicts: templates/base/head.tmpl context
46 lines
1.7 KiB
Go HTML Template
46 lines
1.7 KiB
Go HTML Template
{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}}
|
|
<div class="user-main-content twelve wide column content repository file list">
|
|
<div class="tab-size-8 non-diff-file-content">
|
|
<h4 class="ui top attached header">
|
|
<a href="{{.LFSFilesLink}}">{{ctx.Locale.Tr "repo.settings.lfs"}}</a> / <span class="truncate sha">{{.Oid}}</span>
|
|
</h4>
|
|
<table id="lfs-files-find-table" class="ui attached segment single line table">
|
|
<tbody>
|
|
{{range .Results}}
|
|
<tr>
|
|
<td>
|
|
{{svg "octicon-file"}}
|
|
<a href="{{$.RepoLink}}/src/commit/{{.SHA}}/{{PathEscapeSegments .Name}}" title="{{.Name}}">{{.Name}}</a>
|
|
</td>
|
|
<td class="message">
|
|
<span class="truncate">
|
|
<a href="{{$.RepoLink}}/commit/{{.SHA}}" title="{{.Summary}}">
|
|
{{.Summary | RenderEmoji $.Context}}
|
|
</a>
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<span class="text grey">{{svg "octicon-git-branch"}}{{.BranchName}}</span>
|
|
</td>
|
|
<td>
|
|
{{if .ParentHashes}}
|
|
{{ctx.Locale.Tr "repo.diff.parent"}}
|
|
{{range .ParentHashes}}
|
|
<a class="ui primary sha label" href="{{$.RepoLink}}/commit/{{.String}}">{{ShortSha .String}}</a>
|
|
{{end}}
|
|
{{end}}
|
|
{{ctx.Locale.Tr "repo.diff.commit"}}
|
|
<a class="ui primary sha label" href="{{$.RepoLink}}/commit/{{.SHA}}">{{ShortSha .SHA}}</a>
|
|
</td>
|
|
<td>{{TimeSince .When ctx.Locale}}</td>
|
|
</tr>
|
|
{{else}}
|
|
<tr>
|
|
<td colspan="5">{{ctx.Locale.Tr "repo.settings.lfs_lfs_file_no_commits"}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{template "repo/settings/layout_footer" .}}
|