本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.2KB

  1. {{template "base/head" .}}
  2. <div class="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_filelist"}}
  9. <div class="ui right">
  10. <a class="ui blue tiny show-panel button" href="{{.Link}}/pointers">{{.i18n.Tr "repo.settings.lfs_findpointerfiles"}}</a>
  11. </div>
  12. </h4>
  13. <table id="lfs-files-table" class="ui attached segment single line table">
  14. <tbody>
  15. {{range .LFSFiles}}
  16. <tr>
  17. <td>
  18. <span class="text sha label">
  19. <a href="{{$.Link}}/show/{{.Oid}}" title="{{.Oid}}" class="ui detail icon button brown truncate">
  20. {{ShortSha .Oid}}
  21. </a>
  22. </span>
  23. </td>
  24. <td>{{FileSize .Size}}</td>
  25. <td>{{TimeSince .CreatedUnix.AsTime $.Lang}}</td>
  26. <td class="right aligned">
  27. <a class="ui blue show-panel button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{$.i18n.Tr "repo.settings.lfs_findcommits"}}</a>
  28. <button class="ui basic show-modal icon button" data-modal="#delete-{{.Oid}}">
  29. <i class="octicon octicon-trashcan btn-octicon btn-octicon-danger poping up" data-content="{{$.i18n.Tr "repo.editor.delete_this_file"}}" data-position="bottom center" data-variation="tiny inverted"></i>
  30. </button>
  31. </td>
  32. </tr>
  33. {{else}}
  34. <tr>
  35. <td colspan="4">{{.i18n.Tr "repo.settings.lfs_no_lfs_files"}}</td>
  36. </tr>
  37. {{end}}
  38. </tbody>
  39. </table>
  40. {{template "base/paginate" .}}
  41. {{range .LFSFiles}}
  42. <div class="ui basic modal" id="delete-{{.Oid}}">
  43. <div class="ui icon header">
  44. {{$.i18n.Tr "repo.settings.lfs_delete" .Oid}}
  45. </div>
  46. <div class="content center">
  47. <p>
  48. {{$.i18n.Tr "repo.settings.lfs_delete_warning"}}
  49. </p>
  50. <form class="ui form" action="{{$.Link}}/delete/{{.Oid}}" method="post">
  51. {{$.CsrfTokenHtml}}
  52. <div class="center actions">
  53. <div class="ui basic cancel inverted button">{{$.i18n.Tr "settings.cancel"}}</div>
  54. <button class="ui basic inverted yellow button">{{$.i18n.Tr "modal.yes"}}</button>
  55. </div>
  56. </form>
  57. </div>
  58. </div>
  59. {{end}}
  60. </div>
  61. </div>
  62. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1