summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-08 09:09:40 -0400
committerUnknwon <u@gogs.io>2015-09-08 09:09:40 -0400
commit6f6f38e7c34baed7f0f6c5d9caf339ff8896dc6d (patch)
tree04cc0325ec0a800652d20686eed0a36d1112d620
parent49e120a67c2d27597764eb260cdec07b5fd67fbb (diff)
downloadgitea-6f6f38e7c34baed7f0f6c5d9caf339ff8896dc6d.tar.gz
gitea-6f6f38e7c34baed7f0f6c5d9caf339ff8896dc6d.zip
#1603 suburl for comment attachments
-rw-r--r--routers/repo/issue.go2
-rw-r--r--templates/repo/issue/view_content.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 019bb1d750..e242dd0e5f 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -819,7 +819,7 @@ func NewComment(ctx *middleware.Context, form auth.CreateCommentForm) {
ctx.Handle(500, "ChangeStatus", err)
return
}
- log.Trace("%s Issue[%d] status changed: %v", ctx.Req.RequestURI, issue.ID, !issue.IsClosed)
+ log.Trace("Issue[%d] status changed: %v", issue.ID, !issue.IsClosed)
}
ctx.Redirect(fmt.Sprintf("%s/issues/%d#%s", ctx.Repo.RepoLink, issue.Index, comment.HashTag()))
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 41b46c5844..d258d3d0a9 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -91,7 +91,7 @@
<div class="ui bottom attached segment">
<div class="ui small images">
{{range .Attachments}}
- <a target="_blank" href="/attachments/{{.UUID}}"><img class="ui image" src="/attachments/{{.UUID}}"></a>
+ <a target="_blank" href="{{AppSubUrl}}/attachments/{{.UUID}}"><img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}"></a>
{{end}}
</div>
</div>