Expand truncated numbers on mouseover. Close #156

This commit is contained in:
spikecodes 2021-03-20 15:42:47 -07:00
parent ab886d1e67
commit 966e0ce921
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
10 changed files with 26 additions and 70 deletions

View file

@ -206,7 +206,7 @@ async fn main() {
app.at("/").get(|r| subreddit::community(r).boxed());
// View Reddit wiki
app.at("/w").get(|_| async move { Ok(redirect("/wiki".to_string())) }.boxed());
app.at("/w").get(|_| async { Ok(redirect("/wiki".to_string())) }.boxed());
app
.at("/w/:page")
.get(|r| async move { Ok(redirect(format!("/wiki/{}", r.param("page").unwrap_or_default()))) }.boxed());