1{{template "base/head" .}}
2<div class="page-content repository settings lfs">
3	{{template "repo/header" .}}
4	{{template "repo/settings/navbar" .}}
5	<div class="ui container">
6		{{template "base/alert" .}}
7		<h4 class="ui top attached header">
8			{{.i18n.Tr "repo.settings.lfs_pointers.found" .NumPointers .NumAssociated .NumNotAssociated .NumNoExist }}
9			{{if gt .NumAssociatable 0}}
10				<div class="ui right">
11					<form class="ui form" method="post" action="{{$.Link}}/associate">
12						{{.CsrfTokenHtml}}
13						{{range .Pointers}}
14							{{if .Associatable}}
15								<input type="hidden" name="oid" value="{{.Oid}} {{.Size}}"/>
16							{{end}}
17						{{end}}
18						<button class="ui green button">{{$.i18n.Tr "repo.settings.lfs_pointers.associateAccessible" $.NumAssociatable}}</button>
19					</form>
20				</div>
21			{{end}}
22		</h4>
23		<div class="ui attached segment">
24			<table id="lfs-files-table" class="ui fixed single line table">
25				<thead>
26					<tr>
27						<th class="three wide">{{.i18n.Tr "repo.settings.lfs_pointers.sha"}}</th>
28						<th class="four wide">{{.i18n.Tr "repo.settings.lfs_pointers.oid"}}</th>
29						<th class="three wide"></th>
30						<th class="two wide">{{.i18n.Tr "repo.settings.lfs_pointers.inRepo"}}</th>
31						<th class="two wide">{{.i18n.Tr "repo.settings.lfs_pointers.exists"}}</th>
32						<th class="two wide">{{.i18n.Tr "repo.settings.lfs_pointers.accessible"}}</th>
33					</tr>
34				</thead>
35				<tbody>
36					{{range .Pointers}}
37						<tr>
38							<td>
39								<span class="text sha label" title="{{.SHA}}">
40									<a href="{{$.RepoLink}}/raw/blob/{{.SHA}}" rel="nofollow" target="_blank" class="ui detail icon button truncate">
41										{{ShortSha .SHA}}
42									</a>
43								</span>
44							</td>
45							<td>
46								<span class="text sha label" title="{{.Oid}}">
47									{{if and .Exists .InRepo}}
48										<a href="{{$.LFSFilesLink}}/show/{{.Oid}}" rel="nofollow" target="_blank" class="ui text detail icon button brown truncate">
49											{{ShortSha .Oid}}
50										</a>
51									{{else}}
52										<span class="ui detail icon button brown disabled truncate">
53											{{ShortSha .Oid}}
54										</span>
55									{{end}}
56								</span>
57							</td>
58							<td>
59								<a class="ui blue show-panel button" href="{{$.LFSFilesLink}}/find?oid={{.Oid}}&size={{.Size}}&sha={{.SHA}}">{{$.i18n.Tr "repo.settings.lfs_findcommits"}}</a>
60							</td>
61							<td>{{if .InRepo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
62							<td>{{if .Exists}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
63							<td>{{if .Accessible}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
64						</tr>
65					{{end}}
66				</tbody>
67			</table>
68		</div>
69	</div>
70</div>
71{{template "base/footer" .}}
72