alert.tmpl 457 B

123456789101112131415161718192021
  1. {{if .Flash.ErrorMsg}}
  2. <div class="ui negative message">
  3. <p>{{.Flash.ErrorMsg | Str2html}}</p>
  4. </div>
  5. {{end}}
  6. {{if .Flash.WarningMsg}}
  7. <div class="ui warning message">
  8. <p>{{.Flash.WarningMsg | Str2html}}</p>
  9. </div>
  10. {{end}}
  11. {{if .Flash.SuccessMsg}}
  12. <div class="ui positive message">
  13. <p>{{.Flash.SuccessMsg | Str2html}}</p>
  14. </div>
  15. {{end}}
  16. {{if .Flash.InfoMsg}}
  17. <div class="ui info message">
  18. <p>{{.Flash.InfoMsg | Str2html}}</p>
  19. </div>
  20. {{end}}