From 0b76a56ce249146702d7e7b23a74d5b3ef290174 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 8 May 2014 22:29:09 +0200 Subject: display success flash message after forking --- data/templates/display-head.htm | 7 +------ data/templates/flashmessages.htm | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 data/templates/flashmessages.htm (limited to 'data') diff --git a/data/templates/display-head.htm b/data/templates/display-head.htm index ba1f467..f610f84 100644 --- a/data/templates/display-head.htm +++ b/data/templates/display-head.htm @@ -1,9 +1,4 @@ -{% if forksuccess %} -
- × - Paste has been successfully forked. -
-{% endif %} +{% include 'flashmessages.htm' %}

{{repo.getTitle}}

diff --git a/data/templates/flashmessages.htm b/data/templates/flashmessages.htm new file mode 100644 index 0000000..3ea654a --- /dev/null +++ b/data/templates/flashmessages.htm @@ -0,0 +1,6 @@ +{% for msgdata in flashmessages %} +
+ × + {{msgdata.msg}} +
+{% endfor %} \ No newline at end of file -- cgit v1.2.3