1
0
Fork 0
forked from forgejo/forgejo

add comment form UI

This commit is contained in:
Unknwon 2015-08-12 18:44:09 +08:00
parent b4c0b7b98b
commit ab2d0b3b44
9 changed files with 96 additions and 48 deletions

View file

@ -441,11 +441,11 @@ func ViewIssue(ctx *middleware.Context) {
}
if ctx.IsSigned {
// // Update issue-user.
// if err = models.UpdateIssueUserPairByRead(ctx.User.Id, issue.ID); err != nil {
// ctx.Handle(500, "UpdateIssueUserPairByRead: %v", err)
// return
// }
// Update issue-user.
if err = issue.ReadBy(ctx.User.Id); err != nil {
ctx.Handle(500, "ReadBy: %v", err)
return
}
if ctx.User.IsAdmin {
// labels, err := models.GetLabelsByRepoID(ctx.Repo.Repository.ID)