aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-14 23:21:10 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-14 23:21:10 +0100
commitbf2e515855ffa04c8884a14c872001dd378d673e (patch)
treed515bdac9671e7675453b3d7b157b5a521fff21f /src/utils
parentd4d23a484dac966e83b625edcaa867c0f3137b5e (diff)
downloadrocket-blog-bf2e515855ffa04c8884a14c872001dd378d673e.tar.gz
rocket-blog-bf2e515855ffa04c8884a14c872001dd378d673e.tar.bz2
rocket-blog-bf2e515855ffa04c8884a14c872001dd378d673e.zip
Add flash messages when adding/editing/deleting posts.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 2e79934..495440a 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -49,6 +49,7 @@ impl Deref for DbConn {
#[template = "templates/layout.html"]
pub struct Page<T: Display> {
pub title: String,
+ pub flash: Option<String>,
pub content: T
}