This commit is contained in:
2023-05-08 08:53:39 +02:00
parent 38d8e51975
commit c98fcfe26a

View File

@@ -196,7 +196,6 @@ impl InventoryItemList {
"border",
"w-full",
]>
<thead class=["bg-gray-200"]>
<tr class=["h-10"]>
<th class=["border", "p-2"]>"Name"</th>
@@ -205,9 +204,19 @@ impl InventoryItemList {
</thead>
<tbody>
{items.iter().map(|item| html!(
<tr>
<td>
<tr class=["h-10", "even:bg-gray-100", "hover:bg-purple-100"]>
<td class=["border", "p-0", "m-0"]>
<a
class=["p-2", "w-full", "inline-block"]
href={
format!("/inventory/item/{id}/", id=item.id)
}
>
{text!(item.name.clone())}
</a>
</td>
<td class=["border", "p-0", "m-0"]>
{text!(item.weight.to_string())}
</td>
</tr>
))}