aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base/alert.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-10 16:36:50 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-10 16:36:50 -0400
commit45462662e9bdb001f1cf3d4ca0e4d679757c7642 (patch)
treeeb5f3bfe24a423601ad27121c95427719cb16984 /templates/base/alert.tmpl
parent459223cf01d19a6956d370fad9ab41d3a32233d0 (diff)
downloadgitea-45462662e9bdb001f1cf3d4ca0e4d679757c7642.tar.gz
gitea-45462662e9bdb001f1cf3d4ca0e4d679757c7642.zip
Add flash
Diffstat (limited to 'templates/base/alert.tmpl')
-rw-r--r--templates/base/alert.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/base/alert.tmpl b/templates/base/alert.tmpl
index 699314ace7..bb1eb6aab1 100644
--- a/templates/base/alert.tmpl
+++ b/templates/base/alert.tmpl
@@ -1 +1,2 @@
-{{if .Flash.ErrorMsg}}<div class="alert alert-danger form-error">{{.Flash.ErrorMsg}}</div>{{end}} \ No newline at end of file
+{{if .Flash.ErrorMsg}}<div class="alert alert-danger form-error">{{.Flash.ErrorMsg}}</div>{{end}}
+{{if .Flash.SuccessMsg}}<div class="alert alert-success">{{.Flash.SuccessMsg}}</div>{{end}} \ No newline at end of file