diff --git a/crates/forge-web/src/pages/audit_log.rs b/crates/forge-web/src/pages/audit_log.rs index bfacae9..60197dc 100644 --- a/crates/forge-web/src/pages/audit_log.rs +++ b/crates/forge-web/src/pages/audit_log.rs @@ -170,11 +170,11 @@ async fn admin_audit_view( }
audit_table(lang: lang, rows: rows, show_actor: true) - + }
}) @@ -193,11 +193,11 @@ async fn own_log_view(
audit_table(lang: lang, rows: rows, show_actor: false) - + }
}) } diff --git a/crates/forge-web/src/pages/ci_runs.rs b/crates/forge-web/src/pages/ci_runs.rs index 94ddff4..f0348f3 100644 --- a/crates/forge-web/src/pages/ci_runs.rs +++ b/crates/forge-web/src/pages/ci_runs.rs @@ -1700,15 +1700,17 @@ async fn runs_body( } } - + if newer_href.is_some() || older_href.is_some() { + + }
if let Some(run) = detail { diff --git a/crates/forge-web/src/pages/commits.rs b/crates/forge-web/src/pages/commits.rs index 94519ac..c78b3e1 100644 --- a/crates/forge-web/src/pages/commits.rs +++ b/crates/forge-web/src/pages/commits.rs @@ -320,15 +320,17 @@ async fn commits_page(cx: &Cx) -> Result { } } - + if has_newer || has_older { + + } ) }) } diff --git a/crates/forge-web/src/pages/discussions.rs b/crates/forge-web/src/pages/discussions.rs index 14367c2..8538409 100644 --- a/crates/forge-web/src/pages/discussions.rs +++ b/crates/forge-web/src/pages/discussions.rs @@ -348,15 +348,17 @@ async fn discussions_list_page(cx: &Cx) -> Result { } } - + if has_newer || has_older { + + } ) }) } diff --git a/crates/forge-web/src/pages/issues_list.rs b/crates/forge-web/src/pages/issues_list.rs index ddf5ca0..2998407 100644 --- a/crates/forge-web/src/pages/issues_list.rs +++ b/crates/forge-web/src/pages/issues_list.rs @@ -603,15 +603,17 @@ async fn issues_list_page(cx: &Cx) -> Result { } } - + if has_newer || has_older { + + } ) }) } @@ -1380,7 +1382,8 @@ mod tests { ) .await; assert_eq!(reply.status, 200, "{query}"); - assert!(reply.text().contains("Page 1"), "{query}"); + // Page 1 of one page: no pager at all. + assert!(!reply.text().contains("class=\"pager\""), "{query}"); } } } diff --git a/crates/forge-web/src/pages/pulls_list.rs b/crates/forge-web/src/pages/pulls_list.rs index 08acbce..368d3a3 100644 --- a/crates/forge-web/src/pages/pulls_list.rs +++ b/crates/forge-web/src/pages/pulls_list.rs @@ -367,15 +367,17 @@ async fn pulls_list_page(cx: &Cx) -> Result { } } - + if has_newer || has_older { + + } ) }) }