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.

53 lines
2.7 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="admin-wrapper">
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="admin-setting" class="container clear">
  6. {{template "admin/nav" .}}
  7. <div class="grid-4-5 left">
  8. <div class="setting-content">
  9. {{template "ng/base/alert" .}}
  10. <div id="setting-content">
  11. <div class="panel panel-radius">
  12. <div class="panel-header">
  13. <strong>{{.i18n.Tr "admin.notices.system_notice_list"}}</strong>
  14. </div>
  15. <div class="panel-body admin-panel">
  16. <div class="admin-table">
  17. <table class="table table-striped">
  18. <thead>
  19. <tr>
  20. <th>Id</th>
  21. <th>{{.i18n.Tr "admin.notices.type"}}</th>
  22. <th>{{.i18n.Tr "admin.notices.desc"}}</th>
  23. <th>{{.i18n.Tr "admin.users.created"}}</th>
  24. <th>{{.i18n.Tr "admin.notices.op"}}</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. {{range .Notices}}
  29. <tr>
  30. <td>{{.Id}}</td>
  31. <td>{{$.i18n.Tr .TrStr}}</td>
  32. <td class="grid-1-2"><span>{{.Description}}</span></td>
  33. <td>{{.Created}}</td>
  34. <td><a href="{{AppSubUrl}}/admin/notices/{{.Id}}/delete"><i class="fa fa-trash-o text-red"></i></a></td>
  35. </tr>
  36. {{end}}
  37. </tbody>
  38. </table>
  39. {{if or .LastPageNum .NextPageNum}}
  40. <ul class="pagination">
  41. {{if .LastPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/users?p={{.LastPageNum}}">&laquo; {{.i18n.Tr "admin.prev"}}</a></li>{{end}}
  42. {{if .NextPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/users?p={{.NextPageNum}}">&raquo; {{.i18n.Tr "admin.next"}}</a></li>{{end}}
  43. </ul>
  44. {{end}}
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. {{template "ng/base/footer" .}}