code.gitea.io/gitea@v1.22.3/templates/repo/settings/lfs.tmpl (about) 1 {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}} 2 <div class="repo-setting-content"> 3 <h4 class="ui top attached header"> 4 {{ctx.Locale.Tr "repo.settings.lfs_filelist"}} ({{ctx.Locale.Tr "admin.total" .Total}}) 5 <div class="ui right"> 6 <a class="ui tiny button" href="{{.Link}}/locks">{{ctx.Locale.Tr "repo.settings.lfs_locks"}}</a> 7 <a class="ui primary tiny button" href="{{.Link}}/pointers"> {{ctx.Locale.Tr "repo.settings.lfs_findpointerfiles"}}</a> 8 </div> 9 </h4> 10 <table id="lfs-files-table" class="ui attached segment single line table"> 11 <tbody> 12 {{range .LFSFiles}} 13 <tr> 14 <td> 15 <a href="{{$.Link}}/show/{{.Oid}}" title="{{.Oid}}" class="ui brown button tw-font-mono"> 16 {{ShortSha .Oid}} 17 </a> 18 </td> 19 <td>{{FileSize .Size}}</td> 20 <td>{{TimeSince .CreatedUnix.AsTime ctx.Locale}}</td> 21 <td class="right aligned"> 22 <a class="ui primary button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a> 23 <button class="ui basic show-modal icon button red" data-modal="#delete-{{.Oid}}"> 24 <span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{ctx.Locale.Tr "repo.editor.delete_this_file"}}">{{svg "octicon-trash"}}</span> 25 </button> 26 </td> 27 </tr> 28 {{else}} 29 <tr> 30 <td colspan="4">{{ctx.Locale.Tr "repo.settings.lfs_no_lfs_files"}}</td> 31 </tr> 32 {{end}} 33 </tbody> 34 </table> 35 {{template "base/paginate" .}} 36 {{range .LFSFiles}} 37 <div class="ui g-modal-confirm modal" id="delete-{{.Oid}}"> 38 <div class="header"> 39 {{ctx.Locale.Tr "repo.settings.lfs_delete" .Oid}} 40 </div> 41 <div class="content"> 42 <p> 43 {{ctx.Locale.Tr "repo.settings.lfs_delete_warning"}} 44 </p> 45 <form class="ui form" action="{{$.Link}}/delete/{{.Oid}}" method="post"> 46 {{$.CsrfTokenHtml}} 47 {{template "base/modal_actions_confirm"}} 48 </form> 49 </div> 50 </div> 51 {{end}} 52 </div> 53 {{template "repo/settings/layout_footer" .}}