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.

lfs_locks.tmpl 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {{template "base/head" .}}
  2. <div class="repository settings lfs">
  3. {{template "repo/header" .}}
  4. {{template "repo/settings/navbar" .}}
  5. <div class="ui container repository file list">
  6. {{template "base/alert" .}}
  7. <div class="tab-size-8 non-diff-file-content">
  8. <h4 class="ui top attached header">
  9. <a href="{{.LFSFilesLink}}">{{.i18n.Tr "repo.settings.lfs"}}</a> / {{.i18n.Tr "repo.settings.lfs_locks"}} ({{.i18n.Tr "admin.total" .Total}})
  10. </h4>
  11. <div class="ui attached segment">
  12. <form class="ui form ignore-dirty" method="POST">
  13. {{$.CsrfTokenHtml}}
  14. <div class="ui fluid action input">
  15. <input name="path" value="" placeholder="{{.i18n.Tr "repo.settings.lfs_lock_path"}}" autofocus>
  16. <button class="ui blue button">{{.i18n.Tr "repo.settings.lfs_lock"}}</button>
  17. </div>
  18. </form>
  19. </div>
  20. <table id="lfs-files-locks-table" class="ui attached segment single line table">
  21. <tbody>
  22. {{range $index, $lock := .LFSLocks}}
  23. <tr>
  24. <td>
  25. {{if index $.Linkable $index}}
  26. {{svg "octicon-file" 16}}
  27. <a href="{{EscapePound $.RepoLink}}/src/branch/{{EscapePound $lock.Repo.DefaultBranch}}/{{EscapePound $lock.Path}}" title="{{$lock.Path}}">{{$lock.Path}}</a>
  28. {{else}}
  29. {{svg "octicon-diff" 16}}
  30. <span class="poping up" title="{{$.i18n.Tr "repo.settings.lfs_lock_file_no_exist"}}">{{$lock.Path}}</span>
  31. {{end}}
  32. {{if not (index $.Lockables $index)}}
  33. <span class="poping up" title="{{$.i18n.Tr "repo.settings.lfs_noattribute"}}">{{svg "octicon-alert" 16}}</span>
  34. {{end}}
  35. </td>
  36. <td>
  37. <a href="{{$.AppSubUrl}}/{{$lock.Owner.Name}}">
  38. <img class="ui avatar image" src="{{$lock.Owner.RelAvatarLink}}">
  39. {{$lock.Owner.DisplayName}}
  40. </a>
  41. </td>
  42. <td>{{TimeSince .Created $.Lang}}</td>
  43. <td class="right aligned">
  44. <form action="{{$.LFSFilesLink}}/locks/{{$lock.ID}}/unlock" method="POST">
  45. {{$.CsrfTokenHtml}}
  46. <button class="ui blue button"><span class="btn-octicon">{{svg "octicon-lock" 16}}</span>{{$.i18n.Tr "repo.settings.lfs_force_unlock"}}</button>
  47. </form>
  48. </td>
  49. </tr>
  50. {{else}}
  51. <tr>
  52. <td colspan="4">{{.i18n.Tr "repo.settings.lfs_locks_no_locks"}}</td>
  53. </tr>
  54. {{end}}
  55. </tbody>
  56. </table>
  57. {{template "base/paginate" .}}
  58. </div>
  59. </div>
  60. </div>
  61. {{template "base/footer" .}}