Skip to content

Commit 0f73be0

Browse files

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

templates/repo/settings/lfs.tmpl

+3-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212
{{range .LFSFiles}}
1313
<tr>
1414
<td>
15-
<span class="text sha label">
16-
<a href="{{$.Link}}/show/{{.Oid}}" title="{{.Oid}}" class="ui detail icon button brown truncate">
17-
{{ShortSha .Oid}}
18-
</a>
19-
</span>
15+
<a href="{{$.Link}}/show/{{.Oid}}" title="{{.Oid}}" class="ui brown button gt-mono">
16+
{{ShortSha .Oid}}
17+
</a>
2018
</td>
2119
<td>{{FileSize .Size}}</td>
2220
<td>{{TimeSince .CreatedUnix.AsTime $.locale}}</td>

templates/repo/settings/lfs_pointers.tmpl

+10-20
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,31 @@
2222
<tr>
2323
<th class="three wide">{{.locale.Tr "repo.settings.lfs_pointers.sha"}}</th>
2424
<th class="four wide">{{.locale.Tr "repo.settings.lfs_pointers.oid"}}</th>
25-
<th class="three wide"></th>
2625
<th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.inRepo"}}</th>
2726
<th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.exists"}}</th>
2827
<th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.accessible"}}</th>
28+
<th class="three wide"></th>
2929
</tr>
3030
</thead>
3131
<tbody>
3232
{{range .Pointers}}
3333
<tr>
3434
<td>
35-
<span class="text sha label" title="{{.SHA}}">
36-
<a href="{{$.RepoLink}}/raw/blob/{{.SHA}}" rel="nofollow" target="_blank" class="ui detail icon button truncate">
37-
{{ShortSha .SHA}}
38-
</a>
39-
</span>
35+
<a href="{{$.RepoLink}}/raw/blob/{{.SHA}}" rel="nofollow" target="_blank" title="{{.SHA}}" class="ui button gt-mono">
36+
{{ShortSha .SHA}}
37+
</a>
4038
</td>
4139
<td>
42-
<span class="text sha label" title="{{.Oid}}">
43-
{{if and .Exists .InRepo}}
44-
<a href="{{$.LFSFilesLink}}/show/{{.Oid}}" rel="nofollow" target="_blank" class="ui text detail icon button brown truncate">
45-
{{ShortSha .Oid}}
46-
</a>
47-
{{else}}
48-
<button class="ui detail icon button brown disabled truncate">
49-
{{ShortSha .Oid}}
50-
</button>
51-
{{end}}
52-
</span>
53-
</td>
54-
<td>
55-
<a class="ui primary button" href="{{$.LFSFilesLink}}/find?oid={{.Oid}}&size={{.Size}}&sha={{.SHA}}">{{$.locale.Tr "repo.settings.lfs_findcommits"}}</a>
40+
<a {{if and .Exists .InRepo}}href="{{$.LFSFilesLink}}/show/{{.Oid}}" rel="nofollow" target="_blank"{{end}} title="{{.Oid}}" class="ui brown button gt-mono">
41+
{{ShortSha .Oid}}
42+
</a>
5643
</td>
5744
<td>{{if .InRepo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
5845
<td>{{if .Exists}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
5946
<td>{{if .Accessible}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
47+
<td class="gt-text-right">
48+
<a class="ui primary button" href="{{$.LFSFilesLink}}/find?oid={{.Oid}}&size={{.Size}}&sha={{.SHA}}">{{$.locale.Tr "repo.settings.lfs_findcommits"}}</a>
49+
</td>
6050
</tr>
6151
{{end}}
6252
</tbody>

0 commit comments

Comments
 (0)