Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
crates/web/src/pages.rs +11 −11
| @@ -289,18 +289,18 @@ async fn repo_chooser(state: &AppState, user: &User, seg: &str, noun: &str) -> A | |||
| 289 | Ok(html! { | 289 | Ok(html! { |
| 290 | div class="new-repo" { | 290 | div class="new-repo" { |
| 291 | h1 { "New " (noun) } | 291 | h1 { "New " (noun) } |
| 292 | div class="card" { | 292 | p class="muted field-hint" { "Choose a repository." } |
| 293 | p class="muted field-hint" { "Choose a repository." } | 293 | @if usable.is_empty() { |
| 294 | @if usable.is_empty() { | 294 | div class="card" { |
| 295 | p class="muted" { "You have no repositories with " (noun) "s enabled." } | 295 | p class="muted" { "You have no repositories with " (noun) "s enabled." } |
| 296 | } @else { | 296 | } |
| 297 | ul class="repo-list" { | 297 | } @else { |
| 298 | @for r in &usable { | 298 | ul class="repo-list card" { |
| 299 | li { | 299 | @for r in &usable { |
| 300 | a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } { | 300 | li { |
| 301 | span class="repo-row-name" { | 301 | a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } { |
| 302 | (icon(Icon::Box)) span { (r.path) } | 302 | span class="repo-row-name" { |
| 303 | } | 303 | (icon(Icon::Box)) span { (r.path) } |
| 304 | } | 304 | } |
| 305 | } | 305 | } |
| 306 | } | 306 | } |