gitea源码

list.tmpl 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}}
  2. <div class="admin-setting-content">
  3. <h4 class="ui top attached header">
  4. {{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
  5. <div class="ui right">
  6. <a class="ui primary tiny button" href="{{AppSubUrl}}/-/admin/auths/new">{{ctx.Locale.Tr "admin.auths.new"}}</a>
  7. </div>
  8. </h4>
  9. <div class="ui attached table segment">
  10. <table class="ui very basic striped table unstackable">
  11. <thead>
  12. <tr>
  13. <th>ID</th>
  14. <th>{{ctx.Locale.Tr "admin.auths.name"}}</th>
  15. <th>{{ctx.Locale.Tr "admin.auths.type"}}</th>
  16. <th>{{ctx.Locale.Tr "admin.auths.enabled"}}</th>
  17. <th>{{ctx.Locale.Tr "admin.auths.updated"}}</th>
  18. <th>{{ctx.Locale.Tr "admin.users.created"}}</th>
  19. <th>{{ctx.Locale.Tr "admin.users.edit"}}</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. {{range .Sources}}
  24. <tr>
  25. <td>{{.ID}}</td>
  26. <td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{.Name}}</a></td>
  27. <td>{{.TypeName}}</td>
  28. <td>{{svg (Iif .IsActive "octicon-check" "octicon-x")}}</td>
  29. <td>{{DateUtils.AbsoluteShort .UpdatedUnix}}</td>
  30. <td>{{DateUtils.AbsoluteShort .CreatedUnix}}</td>
  31. <td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{svg "octicon-pencil"}}</a></td>
  32. </tr>
  33. {{else}}
  34. <tr><td class="tw-text-center" colspan="7">{{ctx.Locale.Tr "no_results_found"}}</td></tr>
  35. {{end}}
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. {{template "admin/layout_footer" .}}