diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-05-08 22:29:09 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-05-08 22:29:09 +0200 |
| commit | 0b76a56ce249146702d7e7b23a74d5b3ef290174 (patch) | |
| tree | 295feeee6cef47843a72ba7182807ee311533919 /data | |
| parent | 38aa0dc6133ff53d20fd9f714eb380809c8dba67 (diff) | |
| download | phorkie-0b76a56ce249146702d7e7b23a74d5b3ef290174.tar.gz phorkie-0b76a56ce249146702d7e7b23a74d5b3ef290174.zip | |
display success flash message after forking
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/display-head.htm | 7 | ||||
| -rw-r--r-- | data/templates/flashmessages.htm | 6 |
2 files changed, 7 insertions, 6 deletions
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 %} -<div class="alert alert-success"> - <a href="#" class="close" data-dismiss="alert">×</a> - Paste has been successfully forked. -</div> -{% endif %} +{% include 'flashmessages.htm' %} <h1>{{repo.getTitle}}</h1> <div class="row repo-info"> 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 %} +<div class="alert alert-{{msgdata.type}}"> + <a href="#" class="close" data-dismiss="alert">×</a> + {{msgdata.msg}} +</div> +{% endfor %}
\ No newline at end of file |
