aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/lfs_file_find.tmpl
blob: 21709e7b33dd9473f3039bdaccb2844524904397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{{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}}">{{.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 | RenderEmojiPlain}}">
										{{.Summary | RenderEmoji $.Context}}
									</a>
								</span>
							</td>
							<td>
								<span class="text grey">{{svg "octicon-git-branch"}}{{.BranchName}}</span>
							</td>
							<td>
								{{if .ParentHashes}}
									{{$.locale.Tr "repo.diff.parent"}}
									{{range .ParentHashes}}
										<a class="ui primary sha label" href="{{$.RepoLink}}/commit/{{.String}}">{{ShortSha .String}}</a>
									{{end}}
								{{end}}
								<div class="mobile-only"></div>
								{{$.locale.Tr "repo.diff.commit"}}
								<a class="ui primary sha label" href="{{$.RepoLink}}/commit/{{.SHA}}">{{ShortSha .SHA}}</a>
							</td>
							<td>{{TimeSince .When $.locale}}</td>
						</tr>
					{{else}}
						<tr>
							<td colspan="5">{{.locale.Tr "repo.settings.lfs_lfs_file_no_commits"}}</td>
						</tr>
					{{end}}
				</tbody>
			</table>
		</div>
	</div>
{{template "repo/settings/layout_footer" .}}