mirror of
https://github.com/go-gitea/gitea
synced 2024-11-14 05:51:33 +01:00
a60e8be8d1
* remove unnecessary web context data fields, and unify the i18n/translation related functions to `Locale` * in development, show an error if a translation key is missing * remove the unnecessary loops `for _, lang := range translation.AllLangs()` for every request, which improves the performance slightly * use `ctx.Locale.Language()` instead of `ctx.Data["Lang"].(string)` * add more comments about how the Locale/LangType fields are used
52 lines
1.7 KiB
Handlebars
52 lines
1.7 KiB
Handlebars
{{template "base/head" .}}
|
|
<div class="page-content repository settings lfs">
|
|
{{template "repo/header" .}}
|
|
{{template "repo/settings/navbar" .}}
|
|
<div class="ui container repository file list">
|
|
{{template "base/alert" .}}
|
|
<div class="tab-size-8 non-diff-file-content">
|
|
<h4 class="ui top attached header">
|
|
<a href="{{.LFSFilesLink}}">{{.i18n.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 | RenderEmojiPlain}}">
|
|
{{.Summary | RenderEmoji}}
|
|
</a>
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<span class="text grey">{{svg "octicon-git-branch"}}{{.BranchName}}</span>
|
|
</td>
|
|
<td>
|
|
{{if .ParentHashes}}
|
|
{{$.i18n.Tr "repo.diff.parent"}}
|
|
{{range .ParentHashes}}
|
|
<a class="ui blue sha label" href="{{$.RepoLink}}/commit/{{.String}}">{{ShortSha .String}}</a>
|
|
{{end}}
|
|
{{end}}
|
|
<div class="mobile-only"></div>
|
|
{{$.i18n.Tr "repo.diff.commit"}}
|
|
<a class="ui blue sha label" href="{{$.RepoLink}}/commit/{{.SHA}}">{{ShortSha .SHA}}</a>
|
|
</td>
|
|
<td>{{TimeSince .When $.i18n.Lang}}</td>
|
|
</tr>
|
|
{{else}}
|
|
<tr>
|
|
<td colspan="5">{{.i18n.Tr "repo.settings.lfs_lfs_file_no_commits"}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|