Browse Source

#1603 suburl for comment attachments

tags/v0.9.99
Unknwon 8 years ago
parent
commit
6f6f38e7c3
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      routers/repo/issue.go
  2. 1
    1
      templates/repo/issue/view_content.tmpl

+ 1
- 1
routers/repo/issue.go View File

ctx.Handle(500, "ChangeStatus", err) ctx.Handle(500, "ChangeStatus", err)
return 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())) ctx.Redirect(fmt.Sprintf("%s/issues/%d#%s", ctx.Repo.RepoLink, issue.Index, comment.HashTag()))

+ 1
- 1
templates/repo/issue/view_content.tmpl View File

<div class="ui bottom attached segment"> <div class="ui bottom attached segment">
<div class="ui small images"> <div class="ui small images">
{{range .Attachments}} {{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}} {{end}}
</div> </div>
</div> </div>

Loading…
Cancel
Save