designs.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <table class="table table-striped table-condensed datatables">
  2. <thead>
  3. <tr>
  4. <th width="1%"><div class="hueCheckbox selectAll" data-selectables="savedCheck"></div></th>
  5. <th>{{ name }}</th>
  6. <th>{{ description }}</th>
  7. <th>{{ owner }}</th>
  8. <th>{{ type }}</th>
  9. <th>{{ status }}</th>
  10. <th>{{ last_modified }}</th>
  11. </tr>
  12. </thead>
  13. <tbody data-bind="foreach: designs">
  14. <tr data-bind="with: design">
  15. <td data-row-selector-exclude="true">
  16. <div class="hueCheckbox savedCheck" data-row-selector-exclude="true"></div>
  17. </td>
  18. <td><a href="javascript:void(0);" data-row-selector="true" data-bind="text: name, click: function(data, event) {$root.select.call($root, $index()); $root.showDesign.call($root, data, event);}"></a></td>
  19. <td data-bind="text: description"></td>
  20. <td data-bind="text: owner"></td>
  21. <td data-bind="text: type"></td>
  22. <td data-bind="text: is_shared"></td>
  23. <td data-sort-value="${time.mktime(design.mtime.timetuple())}" data-bind="text: last_modified"></td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. <div class="pagination">
  28. <ul class="pull-right">
  29. <li class="prev"><a title="{{ first }}" ${toppage(page)}>&larr; {{ first }}</a></li>
  30. <li><a title="{{ previous }}" ${prevpage(page)}>{{ previous }}</a></li>
  31. <li><a title="{{ next }}" ${nextpage(page)}>{{ next }}</a></li>
  32. <li class="next"><a title="{{ last }}" ${bottompage(page)}>{{ last }} &rarr;</a></li>
  33. </ul>
  34. <!-- <p>${_('Showing %(start)s to %(end)s of %(count)s items, page %(page)s of %(pages)s') % dict(start=page.start_index(),end=page.end_index(),count=page.total_count(),page=page.number,pages=page.num_pages())}</p> -->
  35. </div>