Add a presentation of Plume and of the instance on the homepage

Fixes #132
This commit is contained in:
Bat
2018-07-27 22:16:17 +02:00
parent 0926a1d3b5
commit ed8982b7fd
16 changed files with 295 additions and 6 deletions
+3 -1
View File
@@ -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
View File
@@ -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());