loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix LFS object list style (#26133)

Close #26104 . Only a quick fix, the UI is not perfect.

Before:

<details>


![image](https://github.com/go-gitea/gitea/assets/2114189/7b10d42d-8317-4d99-80f9-b6c5fe05c17e)


![image](https://github.com/go-gitea/gitea/assets/2114189/b43f1242-61a0-45e3-98b7-aa74b29f3813)

</details>

After:

<details>


![image](https://github.com/go-gitea/gitea/assets/2114189/a8d27f70-781d-4702-866f-a56df6dd6c0a)


![image](https://github.com/go-gitea/gitea/assets/2114189/379274e7-c67b-4c11-9cee-28a298b4ff5a)

</details>

authored by

wxiaoguang and committed by
GitHub
9ed3700a 74ca4377

+13 -25
+3 -5
templates/repo/settings/lfs.tmpl
··· 12 12 {{range .LFSFiles}} 13 13 <tr> 14 14 <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> 20 18 </td> 21 19 <td>{{FileSize .Size}}</td> 22 20 <td>{{TimeSince .CreatedUnix.AsTime $.locale}}</td>
+10 -20
templates/repo/settings/lfs_pointers.tmpl
··· 22 22 <tr> 23 23 <th class="three wide">{{.locale.Tr "repo.settings.lfs_pointers.sha"}}</th> 24 24 <th class="four wide">{{.locale.Tr "repo.settings.lfs_pointers.oid"}}</th> 25 - <th class="three wide"></th> 26 25 <th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.inRepo"}}</th> 27 26 <th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.exists"}}</th> 28 27 <th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.accessible"}}</th> 28 + <th class="three wide"></th> 29 29 </tr> 30 30 </thead> 31 31 <tbody> 32 32 {{range .Pointers}} 33 33 <tr> 34 34 <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> 40 - </td> 41 - <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> 35 + <a href="{{$.RepoLink}}/raw/blob/{{.SHA}}" rel="nofollow" target="_blank" title="{{.SHA}}" class="ui button gt-mono"> 36 + {{ShortSha .SHA}} 37 + </a> 53 38 </td> 54 39 <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> 56 43 </td> 57 44 <td>{{if .InRepo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> 58 45 <td>{{if .Exists}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> 59 46 <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> 60 50 </tr> 61 51 {{end}} 62 52 </tbody>