Add a button to write a new article

This commit is contained in:
Bat
2018-06-10 19:16:25 +01:00
parent edbeeef640
commit 7fd152e270
3 changed files with 26 additions and 6 deletions
+1
View File
@@ -24,6 +24,7 @@ fn details(name: String, conn: DbConn, user: Option<User>) -> Template {
Template::render("blogs/details", json!({
"blog": blog,
"account": user,
"is_author": user.map(|x| x.is_author_in(&*conn, blog)),
"recents": recents.into_iter().map(|p| {
json!({
"post": p,