| 1 | <div id="list" class="container has-background-white px-1 py-1"> |
| 2 | {{ xmlui.generate_list( |
| 3 | list_items|reverse, |
| 4 | ( |
| 5 | ('title', _('Title')), |
| 6 | ('labels', _('Labels')), |
| 7 | ('id', _('Id')), |
| 8 | ('author', _('Author')), |
| 9 | ), |
| 10 | { |
| 11 | 'id': '\n#{value}', |
| 12 | 'author': _('by {value}'), |
| 13 | }, |
| 14 | item_class_fields=['status', 'priority', 'severity'], |
| 15 | field_class_map={ |
| 16 | 'title': 'has-text-weight-bold', |
| 17 | 'labels': 'tag is-rounded x-is-hoverable', |
| 18 | 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap', |
| 19 | 'author': 'is-size-7' |
| 20 | }, |
| 21 | on_click=on_list_item_click) |
| 22 | }} |
| 23 | </div> |