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.

71 lines
2.7 KiB

  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_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 and (not .InRepo) .Exists .Accessible}}
  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><i class="fa fa{{if .InRepo}}-check{{end}}-square-o"></i></td>
  62. <td><i class="fa fa{{if .Exists}}-check{{end}}-square-o"></i></td>
  63. <td><i class="fa fa{{if .Accessible}}-check{{end}}-square-o"></i></td>
  64. </tr>
  65. {{end}}
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. </div>
  71. {{template "base/footer" .}}