Update the article_row template to use helpers to make rows concise.

main
KKlochko 1 year ago
parent 9c0e888284
commit cbc813924e

@ -1,12 +1,12 @@
<tr id="row-{{ article.id }}" <tr id="row-{{ article.id }}"
x-data='{ title: "{{ article.title }}", created: "{{ article.created }}" }' x-data='{ title: "{{ article.title }}", created: "{{ full-timestamp article.created }}" }'
class="border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"> class="border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700">
<th scope="row" class="px-4 py-3 font-medium text-gray-900 whitespace-nowrap dark:text-white"> <th scope="row" class="px-4 py-3 font-medium text-gray-900 whitespace-nowrap dark:text-white">
<div class="flex items-center mr-3" x-text="title"> <div class="flex items-center mr-3" x-text="title">
</div> </div>
</th> </th>
<td class="px-4 py-3"> <td class="px-4 py-3">
<span class="bg-primary-100 text-primary-800 text-xs font-medium px-2 py-0.5 rounded dark:bg-primary-900 dark:text-primary-300"> {{ article.content }} </span> <span class="bg-primary-100 text-primary-800 text-xs font-medium px-2 py-0.5 rounded dark:bg-primary-900 dark:text-primary-300"> {{ article.content }} {{ is-brief article.content_length }} </span>
</td> </td>
<td class="px-4 py-3" x-text="created"></td> <td class="px-4 py-3" x-text="created"></td>
<td class="px-4 py-3 font-medium text-gray-900 whitespace-nowrap dark:text-white"> <td class="px-4 py-3 font-medium text-gray-900 whitespace-nowrap dark:text-white">

Loading…
Cancel
Save