diff --git a/crates/izlek-web/src/board.rs b/crates/izlek-web/src/board.rs index 13f1681..d824c14 100644 --- a/crates/izlek-web/src/board.rs +++ b/crates/izlek-web/src/board.rs @@ -367,7 +367,7 @@ async fn render_card( default_tag_id: Option<&str>, lang: Lang, ) -> Result { - let blocks = card.blocks.len(); + let blocks = card.blocks.join(", "); let blocked_by = card.blocked_by.join(", "); let overdue = card.is_overdue(today); let deadline_parts = card.deadline_parts(today); @@ -423,7 +423,7 @@ async fn render_card( >
(card.task_key.clone()) - if blocks > 0 { (format!("{} {blocks}", t(lang, Key::Blocks))) } + if !blocks.is_empty() { (format!("{} {blocks}", t(lang, Key::Blocks))) } if !blocked_by.is_empty() { (format!("{} {blocked_by}", t(lang, Key::BlockedBy))) } diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index 2d82a48..6d7101b 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -1755,15 +1755,21 @@ async fn dep_row( Direction::Blocks => t(lang, Key::Blocks).to_uppercase(), }; let remove_title = t(lang, Key::RemoveThisLink); + let href = format!("/?task={}", edge.task_id); view! { cx =>
- (tag) - if cleared { (glyph::tick(cx).await?) } else { (glyph::lock(cx).await?) } - (edge.task_key.clone()) - (edge.title.clone()) -
- (note) + // One link, not two, the subtask row's own shape: tag, key, + // title and note are the same target, so the whole stretch + // between the row's edges and the X is the way in. + + (tag) + if cleared { (glyph::tick(cx).await?) } else { (glyph::lock(cx).await?) } + (edge.task_key.clone()) + (edge.title.clone()) +
+ (note) +
if may_write {