entry_list.js 854 B

1234567891011121314151617181920212223242526272829303132
  1. // TODO: This file was created by bulk-decaffeinate.
  2. // Sanity-check the conversion and remove this comment.
  3. /*
  4. * decaffeinate suggestions:
  5. * DS002: Fix invalid constructor
  6. * DS102: Remove unnecessary code created because of implicit returns
  7. * DS206: Consider reworking classes to avoid initClass
  8. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
  9. */
  10. //= require views/list/paginated_list
  11. app.views.EntryList = class EntryList extends app.views.PaginatedList {
  12. static initClass() {
  13. this.tagName = "div";
  14. this.className = "_list _list-sub";
  15. }
  16. constructor(entries) {
  17. this.entries = entries;
  18. super(...arguments);
  19. }
  20. init() {
  21. this.renderPaginated();
  22. this.activate();
  23. }
  24. render(entries) {
  25. return this.tmpl("sidebarEntry", entries);
  26. }
  27. };
  28. app.views.EntryList.initClass();