diff --git a/templates/list_images.html b/templates/list_images.html
index 1a15cf7..fca9c68 100644
--- a/templates/list_images.html
+++ b/templates/list_images.html
@@ -174,42 +174,51 @@
// Timestamp
row.insertCell(4).textContent = new Date(image.timestamp * 1000).toISOString();
- // 评论
- row += `
| `;
+ // Comment
+ const commentCell = row.insertCell(5);
+ const commentInput = document.createElement('input');
+ commentInput.type = 'text';
+ commentInput.id = `comment-${image.id}`;
+ commentInput.value = image.comment || '';
+ commentInput.onchange = function() {
+ updateComment(image.id, this.value);
+ };
+ commentCell.appendChild(commentInput);
+
// Actions
- row += `
-
-
-
-
-
-
-
-
- | `;
- row += '';
+ const actionsCell = row.insertCell(6);
+ actionsCell.innerHTML = `
+
+
+
+
+
+
+
+
+ `;
});
}