Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

lfs_pointers.tmpl 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content 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. {{.locale.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 .Associatable}}
  15. <input type="hidden" name="oid" value="{{.Oid}} {{.Size}}">
  16. {{end}}
  17. {{end}}
  18. <button class="ui green button">{{$.locale.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">{{.locale.Tr "repo.settings.lfs_pointers.sha"}}</th>
  28. <th class="four wide">{{.locale.Tr "repo.settings.lfs_pointers.oid"}}</th>
  29. <th class="three wide"></th>
  30. <th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.inRepo"}}</th>
  31. <th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.exists"}}</th>
  32. <th class="two wide">{{.locale.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. <button class="ui detail icon button brown disabled truncate">
  53. {{ShortSha .Oid}}
  54. </button>
  55. {{end}}
  56. </span>
  57. </td>
  58. <td>
  59. <a class="ui primary button" href="{{$.LFSFilesLink}}/find?oid={{.Oid}}&size={{.Size}}&sha={{.SHA}}">{{$.locale.Tr "repo.settings.lfs_findcommits"}}</a>
  60. </td>
  61. <td>{{if .InRepo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
  62. <td>{{if .Exists}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
  63. <td>{{if .Accessible}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
  64. </tr>
  65. {{end}}
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. </div>
  71. {{template "base/footer" .}}