diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-01-14 23:21:10 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-01-14 23:21:10 +0100 |
commit | bf2e515855ffa04c8884a14c872001dd378d673e (patch) | |
tree | d515bdac9671e7675453b3d7b157b5a521fff21f /src/utils | |
parent | d4d23a484dac966e83b625edcaa867c0f3137b5e (diff) | |
download | rocket-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.rs | 1 |
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 } |