- if rows.is_empty() {
- if nothing_trashed {
-
(t(language, Key::TrashEmpty))
- } else {
-
(t(language, Key::NoResults))
- }
- }
+
for row in &rows {
- match row {
- TrashEntry::Folder(folder) =>
-
"▤"
-
(folder.name.clone())
-
(trash_details(language, row))
-
-
-
-
,
- TrashEntry::File(file) =>
- (trash_chip(cx, file).await?)
-
(file.name.clone())
-
(trash_details(language, row))
-
-
-
-
,
- }
+ // Trashed entries open nothing — the row is a fact,
+ // not a way in; the ⋯ holds the way back and the way
+ // gone. The grid is `.drive-cols`, the same columns
+ // the drive's anchors wear.
+
+
+ match row {
+ TrashEntry::Folder(folder) => {
+ "▤"
+ (folder.name.clone())
+
+ }
+ TrashEntry::File(file) => {
+ (trash_chip(cx, file).await?)
+ (file.name.clone())
+ (crate::drive::human_size(file.size_bytes))
+ }
+ }
+ (row.deleted().date().to_string())
+ if let TrashEntry::File(file) = row {
+ (file.download_count.to_string())
+ } else {
+
+ }
+
+
+
}
+ }
(crate::dropdown::dropdown_script(cx).await?)
diff --git a/crates/in-web/tests/http.rs b/crates/in-web/tests/http.rs
index d3c98e3..12fbe6e 100644
--- a/crates/in-web/tests/http.rs
+++ b/crates/in-web/tests/http.rs
@@ -2835,10 +2835,7 @@ async fn shared_lists_nest_inside_the_stage() {
assert!(answer.accepted(), "add refused: {:?}", answer.location);
let page = app.get("/shared", Some(&bob)).await;
assert_eq!(page.status, StatusCode::OK, "{}", page.text());
- assert_stage_nests(
- &page.text(),
- &["panel-head", "panel-title", "staged.txt", "class=\"chip\""],
- );
+ assert_stage_nests(&page.text(), &["drive-panel", "drive-head", "staged.txt"]);
}
#[tokio::test]
@@ -2855,7 +2852,8 @@ async fn trash_panels_nest_inside_the_stage() {
assert_stage_nests(
&page.text(),
&[
- "panel-head",
+ "drive-panel",
+ "drive-head",
"staged-trash.txt",
"action=\"/api/trash/restore\"",
"action=\"/api/trash/empty\"",