Skip to content

Instantly share code, notes, and snippets.

@dstarh
Created September 13, 2012 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstarh/3714598 to your computer and use it in GitHub Desktop.
Save dstarh/3714598 to your computer and use it in GitHub Desktop.
MAIN FILE
<table>
<tr th:each="object : ${objects}" th:include="admin/objects/list_partial :: row" th:attr=data-id=${object.id}>
</tr>
</table>
Include
<tr th:each="object : ${objects}" th:fragment="row" th:attr=data-id=${object.id}>
<td>
<a href="#" class="object-details" th:href="${router.reverse('objectAdminController.objectDetails', {'id'}, {object.id})}" th:text="${object.name}">object Name Here</a>
</td>
<td th:text="${#dates.format(object.statusChangedDate, 'yyyy-MM-dd')}" th:title="${#dates.format(object.statusChangedDate)}"></td>
<td th:text="${object.defaultAssignee?.firstName + ' ' + object.defaultAssignee?.lastName}"></td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment