Add a presentation of Plume and of the instance on the homepage
Fixes #132
This commit is contained in:
@@ -26,7 +26,9 @@ fn paginated_index(conn: DbConn, user: Option<User>, page: Page) -> Template {
|
||||
"account": user,
|
||||
"recents": recents.into_iter().map(|p| p.to_json(&*conn)).collect::<Vec<serde_json::Value>>(),
|
||||
"page": page.page,
|
||||
"n_pages": Page::total(Post::count(&*conn) as i32)
|
||||
"n_pages": Page::total(Post::count(&*conn) as i32),
|
||||
"n_users": User::count_local(&*conn),
|
||||
"n_articles": Post::count_local(&*conn)
|
||||
}))
|
||||
}
|
||||
None => {
|
||||
|
||||
+3
-1
@@ -155,7 +155,9 @@ fn quick_setup(conn: DbConn) {
|
||||
long_description: String::new(),
|
||||
short_description: String::new(),
|
||||
default_license: String::from("CC-0"),
|
||||
open_registrations: true
|
||||
open_registrations: true,
|
||||
short_description_html: String::new(),
|
||||
long_description_html: String::new()
|
||||
});
|
||||
|
||||
println!("{}\n", " ✔️ Your instance was succesfully created!".green());
|
||||
|
||||
Reference in New Issue
Block a user