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 | 289 | Ok(html! { | |
| 290 | 290 | div class="new-repo" { | |
| 291 | 291 | h1 { "New " (noun) } | |
| 292 | - | div class="card" { | |
| 293 | - | p class="muted field-hint" { "Choose a repository." } | |
| 294 | - | @if usable.is_empty() { | |
| 292 | + | p class="muted field-hint" { "Choose a repository." } | |
| 293 | + | @if usable.is_empty() { | |
| 294 | + | div class="card" { | |
| 295 | 295 | p class="muted" { "You have no repositories with " (noun) "s enabled." } | |
| 296 | - | } @else { | |
| 297 | - | ul class="repo-list" { | |
| 298 | - | @for r in &usable { | |
| 299 | - | li { | |
| 300 | - | a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } { | |
| 301 | - | span class="repo-row-name" { | |
| 302 | - | (icon(Icon::Box)) span { (r.path) } | |
| 303 | - | } | |
| 296 | + | } | |
| 297 | + | } @else { | |
| 298 | + | ul class="repo-list card" { | |
| 299 | + | @for r in &usable { | |
| 300 | + | li { | |
| 301 | + | a class="repo-row" href={ "/" (user.username) "/" (r.path) "/-/" (seg) "/new" } { | |
| 302 | + | span class="repo-row-name" { | |
| 303 | + | (icon(Icon::Box)) span { (r.path) } | |
| 304 | 304 | } | |
| 305 | 305 | } | |
| 306 | 306 | } | |