diff options
author | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:24:59 +0100 |
---|---|---|
committer | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:24:59 +0100 |
commit | f6a11e0de1ab950b42679d6be9dc0f3ac86c3399 (patch) | |
tree | 949480af7bd3cf0dd27f33256bb964d9b5bbfea2 /routers/repo/issue.go | |
parent | f388661bda8097b5ff01548e6153c566690c9b5e (diff) | |
download | gitea-f6a11e0de1ab950b42679d6be9dc0f3ac86c3399.tar.gz gitea-f6a11e0de1ab950b42679d6be9dc0f3ac86c3399.zip |
More MixedCase consts
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 8e8328c7e4..9dff643ea4 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -126,16 +126,16 @@ func Issues(ctx *context.Context) { assigneeID = ctx.QueryInt64("assignee") posterID int64 ) - filterMode := models.FM_ALL + filterMode := models.FilterModeAll switch viewType { case "assigned": - filterMode = models.FM_ASSIGN + filterMode = models.FilterModeAssign assigneeID = ctx.User.ID case "created_by": - filterMode = models.FM_CREATE + filterMode = models.FilterModeCreate posterID = ctx.User.ID case "mentioned": - filterMode = models.FM_MENTION + filterMode = models.FilterModeMention } var uid int64 = -1 @@ -179,7 +179,7 @@ func Issues(ctx *context.Context) { MilestoneID: milestoneID, Page: pager.Current(), IsClosed: isShowClosed, - IsMention: filterMode == models.FM_MENTION, + IsMention: filterMode == models.FilterModeMention, IsPull: isPullList, Labels: selectLabels, SortType: sortType, |