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.

list.tmpl 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content admin authentication">
  3. {{template "admin/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.locale.Tr "admin.auths.auth_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
  8. <div class="ui right">
  9. <a class="ui primary tiny button" href="{{AppSubUrl}}/admin/auths/new">{{.locale.Tr "admin.auths.new"}}</a>
  10. </div>
  11. </h4>
  12. <div class="ui attached table segment">
  13. <table class="ui very basic striped table unstackable">
  14. <thead>
  15. <tr>
  16. <th>ID</th>
  17. <th>{{.locale.Tr "admin.auths.name"}}</th>
  18. <th>{{.locale.Tr "admin.auths.type"}}</th>
  19. <th>{{.locale.Tr "admin.auths.enabled"}}</th>
  20. <th>{{.locale.Tr "admin.auths.updated"}}</th>
  21. <th>{{.locale.Tr "admin.users.created"}}</th>
  22. <th>{{.locale.Tr "admin.users.edit"}}</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. {{range .Sources}}
  27. <tr>
  28. <td>{{.ID}}</td>
  29. <td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}">{{.Name}}</a></td>
  30. <td>{{.TypeName}}</td>
  31. <td>{{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
  32. <td><span class="tooltip" data-content="{{.UpdatedUnix.FormatShort}}"><time data-format="short-date" datetime="{{.UpdatedUnix.FormatLong}}">{{.UpdatedUnix.FormatShort}}</time></span></td>
  33. <td><span class="tooltip" data-content="{{.CreatedUnix.FormatLong}}"><time data-format="short-date" datetime="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</time></span></td>
  34. <td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}">{{svg "octicon-pencil"}}</a></td>
  35. </tr>
  36. {{end}}
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>
  41. </div>
  42. {{template "base/footer" .}}