feat(admin): add edit button to post list
This commit is contained in:
parent
026a331dcd
commit
0c3a084c9b
@ -124,7 +124,12 @@ fn PostRow(post: Post, deleting: bool, on_delete: EventHandler<i32>) -> Element
|
|||||||
td { class: "px-4 py-3 text-gray-500 dark:text-[#9b9c9d]",
|
td { class: "px-4 py-3 text-gray-500 dark:text-[#9b9c9d]",
|
||||||
"{date_str}"
|
"{date_str}"
|
||||||
}
|
}
|
||||||
td { class: "px-4 py-3 text-right",
|
td { class: "px-4 py-3 text-right space-x-3",
|
||||||
|
Link {
|
||||||
|
class: "text-xs text-gray-600 dark:text-[#9b9c9d] hover:text-gray-900 dark:hover:text-[#dadadb] transition-colors cursor-pointer",
|
||||||
|
to: Route::WriteEdit { id: post.id },
|
||||||
|
"编辑"
|
||||||
|
}
|
||||||
button {
|
button {
|
||||||
class: if deleting {
|
class: if deleting {
|
||||||
"text-xs text-gray-400 cursor-not-allowed"
|
"text-xs text-gray-400 cursor-not-allowed"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user