diff options
author | zeripath <art27@cantab.net> | 2020-10-21 00:50:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 19:50:10 -0400 |
commit | 965861043ae4daf7ae50460edf5533e52980bdb1 (patch) | |
tree | 5b4ecf5e4ce21195e5cb5c449c98ee82a170d005 /templates/base | |
parent | 48a80096bbc7bb4b0fef487df8f176c08f0bf609 (diff) | |
download | gitea-965861043ae4daf7ae50460edf5533e52980bdb1.tar.gz gitea-965861043ae4daf7ae50460edf5533e52980bdb1.zip |
Return the full rejection message and errors in flash errors (#13221)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/alert.tmpl | 6 | ||||
-rw-r--r-- | templates/base/alert_details.tmpl | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/templates/base/alert.tmpl b/templates/base/alert.tmpl index 61b99486e2..cf886f529c 100644 --- a/templates/base/alert.tmpl +++ b/templates/base/alert.tmpl @@ -1,15 +1,15 @@ {{if .Flash.ErrorMsg}} - <div class="ui negative message"> + <div class="ui negative message flash-error"> <p>{{.Flash.ErrorMsg | Str2html}}</p> </div> {{end}} {{if .Flash.SuccessMsg}} - <div class="ui positive message"> + <div class="ui positive message flash-success"> <p>{{.Flash.SuccessMsg | Str2html}}</p> </div> {{end}} {{if .Flash.InfoMsg}} - <div class="ui info message"> + <div class="ui info message flash-info"> <p>{{.Flash.InfoMsg | Str2html}}</p> </div> {{end}} diff --git a/templates/base/alert_details.tmpl b/templates/base/alert_details.tmpl new file mode 100644 index 0000000000..38a2721bf8 --- /dev/null +++ b/templates/base/alert_details.tmpl @@ -0,0 +1,7 @@ +{{.Message}} +<details> + <summary>{{.Summary}}</summary> + <code> + {{.Details | Str2html}} + </code> +</details> |