0
0
mirror of https://dev.sigpipe.me/dashie/git.txt synced 2025-10-06 02:12:39 +02:00

Some fixes

This commit is contained in:
Dashie
2018-03-08 11:14:05 +01:00
parent 7fa519d79b
commit a7c9c3c20f
2 changed files with 3 additions and 0 deletions

View File

@@ -8,6 +8,8 @@
* Ways of improvement
** TODO Merge AssignUser and AssignRepository ?
** TODO Cleanup gogs imports of unused bits
** TODO Can't add files with filename "/some/thing/foo.bar"
** TODO Investigate the non-working context.Flash when not using a redirect
** DONE Correctly handle filenames with a /, like raw view
** DONE strip '/' from filenames
** DONE _ shouldn't be stripped from filenames

View File

@@ -160,6 +160,7 @@ func NewPost(ctx *context.Context, f form.Gitxt) {
log.Warn("init_error_add_entry: %s", err)
ctx.Data["HasError"] = true
ctx.Data["ErrorMsg"] = ctx.Tr("gitxt_git.error_add_entry")
ctx.Flash.Error(ctx.Tr("gitxt_git.error_add_entry"), true)
ctx.Success(tmplNew)
return
}