mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 23:16:52 +02:00
#1602 Wrong commit order on issue page when pushing multiple commits
This commit is contained in:
1 parent
21e13cb51e
commit
6dfee30bf0
9 files changed
+24
-22
No files matched your search
@@ -5,7 +5,7 @@ Gogs - Go Git Service [
|

|
||||||
|
|
||||||
##### Current version: 0.6.14 Beta
|
##### Current version: 0.6.15 Beta
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ SCRIPT_TYPE = bash
|
|||||||
EXPLORE_PAGING_NUM = 20
|
EXPLORE_PAGING_NUM = 20
|
||||||
; Number of issues that are showed in one page
|
; Number of issues that are showed in one page
|
||||||
ISSUE_PAGING_NUM = 10
|
ISSUE_PAGING_NUM = 10
|
||||||
|
; Number of maximum commits showed in one activity feed
|
||||||
|
FEED_MAX_COMMIT_NUM = 5
|
||||||
|
|
||||||
[ui.admin]
|
[ui.admin]
|
||||||
; Number of users that are showed in one page
|
; Number of users that are showed in one page
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import (
|
|||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.6.14.0925 Beta"
|
const APP_VER = "0.6.15.0925 Beta"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
|||||||
+9
-1
@@ -189,7 +189,11 @@ func issueIndexTrimRight(c rune) bool {
|
|||||||
|
|
||||||
// updateIssuesCommit checks if issues are manipulated by commit message.
|
// updateIssuesCommit checks if issues are manipulated by commit message.
|
||||||
func updateIssuesCommit(u *User, repo *Repository, repoUserName, repoName string, commits []*base.PushCommit) error {
|
func updateIssuesCommit(u *User, repo *Repository, repoUserName, repoName string, commits []*base.PushCommit) error {
|
||||||
for _, c := range commits {
|
// Commits are appended in the reverse order.
|
||||||
|
for i := len(commits) - 1; i >= 0; i-- {
|
||||||
|
c := commits[i]
|
||||||
|
fmt.Println(c)
|
||||||
|
|
||||||
refMarked := make(map[int64]bool)
|
refMarked := make(map[int64]bool)
|
||||||
for _, ref := range IssueReferenceKeywordsPat.FindAllString(c.Message, -1) {
|
for _, ref := range IssueReferenceKeywordsPat.FindAllString(c.Message, -1) {
|
||||||
ref = ref[strings.IndexByte(ref, byte(' '))+1:]
|
ref = ref[strings.IndexByte(ref, byte(' '))+1:]
|
||||||
@@ -350,6 +354,10 @@ func CommitRepoAction(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(commit.Commits) > setting.FeedMaxCommitNum {
|
||||||
|
commit.Commits = commit.Commits[:setting.FeedMaxCommitNum]
|
||||||
|
}
|
||||||
|
|
||||||
bs, err := json.Marshal(commit)
|
bs, err := json.Marshal(commit)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Marshal: %v", err)
|
return fmt.Errorf("Marshal: %v", err)
|
||||||
|
|||||||
+4
-8
@@ -777,19 +777,15 @@ func CountPublicRepositories() int64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// RepositoriesWithUsers returns number of repos in given page.
|
// RepositoriesWithUsers returns number of repos in given page.
|
||||||
func RepositoriesWithUsers(page, pageSize int) ([]*Repository, error) {
|
func RepositoriesWithUsers(page, pageSize int) (_ []*Repository, err error) {
|
||||||
repos := make([]*Repository, 0, pageSize)
|
repos := make([]*Repository, 0, pageSize)
|
||||||
if err := x.Limit(pageSize, (page-1)*pageSize).Asc("id").Find(&repos); err != nil {
|
if err = x.Limit(pageSize, (page-1)*pageSize).Asc("id").Find(&repos); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, repo := range repos {
|
for i := range repos {
|
||||||
repo.Owner = &User{Id: repo.OwnerID}
|
if err = repos[i].GetOwner(); err != nil {
|
||||||
has, err := x.Get(repo.Owner)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if !has {
|
|
||||||
return nil, ErrUserNotExist{repo.OwnerID, ""}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-8
@@ -23,10 +23,6 @@ type UpdateTask struct {
|
|||||||
NewCommitId string
|
NewCommitId string
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
|
||||||
MAX_COMMITS int = 5
|
|
||||||
)
|
|
||||||
|
|
||||||
func AddUpdateTask(task *UpdateTask) error {
|
func AddUpdateTask(task *UpdateTask) error {
|
||||||
_, err := x.Insert(task)
|
_, err := x.Insert(task)
|
||||||
return err
|
return err
|
||||||
@@ -147,10 +143,8 @@ func Update(refName, oldCommitId, newCommitId, userName, repoUserName, repoName
|
|||||||
&base.PushCommit{commit.Id.String(),
|
&base.PushCommit{commit.Id.String(),
|
||||||
commit.Message(),
|
commit.Message(),
|
||||||
commit.Author.Email,
|
commit.Author.Email,
|
||||||
commit.Author.Name})
|
commit.Author.Name,
|
||||||
if len(commits) >= MAX_COMMITS {
|
})
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = CommitRepoAction(userId, ru.Id, userName, actEmail,
|
if err = CommitRepoAction(userId, ru.Id, userName, actEmail,
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ func (fi bindataFileInfo) Sys() interface{} {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x7a\xcb\x8f\xe3\xc6\x76\xfe\x9e\x7f\x45\x59\xfe\xf9\xe7\x71\x20\xa9\x5f\x9e\x87\xdb\xee\xc4\x6a\x89\x52\xf3\x8e\x5e\x26\xa5\x69\x8f\x07\x0d\x36\x9b\x2c\x49\x74\x53\xa4\x86\x45\x76\x8f\x8c\x2c\xae\x91\x45\x80\x6c\x13\x24\x9b\x20\x48\x16\x41\x80\x9b\x07\x72\x91\xcd\xbd\x09\xb2\x32\xb2\x9f\xf9\x1f\x2e\x7c\x93\xff\x22\xdf\x39\x45\x4a\x54\x4f\xbb\x91\x0b\x24\xb0\xd1\x22\xeb\x71\xaa\xea\xab\x73\xce\xf7\x55\x71\x3e\x14\x43\xf3\x85\x69\x0b\xfe\x33\x18\x75\xac\xee\x4b\x31\x39\xb3\x1c\xd1\xb5\xfa\xa6\xf1\xa1\x18\xf7\xcd\x96\x63\x8a\x41\xeb\xb9\x29\xda\x67\xad\x61\xcf\x74\xc4\x68\x28\xda\x23\xdb\x36\x9d\xf1\x68\xd8\xb1\x86\x3d\xd1\x9e\x3a\x93\xd1\x00\x85\xc3\xae\xd5\xd3\x3d\x8d\xcf\x45\x6b\xb5\x12\xb1\xb7\x94\x22\x5b\x78\x99\x50\x8b\xe4\x56\x89\x24\x16\xf2\x46\xa6\x6b\xb1\xf2\xe6\xa8\x08\xb3\x48\x1a\xad\xf1\xd8\x1d\xb6\x06\xa6\x38\x11\xbd\x64\xae\x8e\xf1\x57\xf4\xc2\x4c\x38\x32\xbd\x09\x7d\x09\x4b\xed\x85\x17\xa3\x39\xca\xc2\x99\x58\x27\xb9\x48\xf3\x58\x44\x89\xef\x45\xd1\xda\xb0\xa7\x43\x77\xea\x60\xf6\x27\x62\x1e\x66\x68\x6d\x86\xd9\x42\xa6\xa2\x16\xc8\x9b\x5a\x5d\xd4\x56\x69\x12\xd4\x44\x82\x82\x4c\xaa\x0c\x25\x81\x9c\x79\x79\x04\x5b\x4a\xb7\x61\x0b\x58\x3a\x4d\x00\xef\x86\xf1\x2a\x95\xab\x44\x85\x59\x92\xae\x2f\x0c\x7b\x34\x9a\x88\x13\xc3\x69\xdb\xd6\x78\xe2\x4e\x5e\x8e\xa9\xd9\x95\xa7\x16\x68\x97\x87\x17\x18\x6f\x98\x2f\xaf\x30\x5e\x32\x13\x9b\x7e\xa1\x54\x7a\xd5\x5e\x2a\x79\xe5\x32\x10\x61\x8c\xd5\x4b\x21\xdf\xac\xa2\x04\xa5\x04\x80\x61\x7e\x3d\xee\x8f\x6c\xd3\x1d\xb7\x7a\xc0\xd1\x1d\x4e\x07\x30\x7e\xb8\xbf\x63\x34\x54\x2a\xff\x69\x73\x6c\xc6\x72\x9c\xe9\x1d\x23\x07\xfb\x3c\xbf\xa6\x17\x2c\xc3\x78\x77\x96\xb9\x92\xe9\xc3\xf6\x08\xce\x5d\x73\x8f\xf7\xdf\x5f\xe8\x83\x26\x6c\x73\x3c\x7a\xd0\x44\x9c\x64\xd8\xdc\x87\x8d\x0c\x47\x13\xab\x6d\x3e\x68\x26\x49\xe7\x5e\x1c\x7e\xe7\x65\x21\x5c\xeb\x21\x5b\x23\xbb\xf7\x9e\x21\xe3\xd5\xd2\x4b\xaf\x83\xe4\x96\x11\x32\x63\xef\x2a\x92\x62\xe1\xa5\x81\x88\x42\xf4\xbb\x4a\xa5\x77\x8d\x0d\xcb\x64\xac\x60\xde\x30\x87\xad\xd3\xbe\xe9\x9e\xb5\xec\x8e\xdb\xb7\x86\xa6\x7b\x6a\x9b\xad\xe7\x30\x35\xf3\x22\x25\x61\x0d\xc0\xc2\xb9\x2f\x8c\xb1\x3d\x9a\x8c\xda\xa3\x3e\xaa\x16\x59\xb6\x32\x3a\xa3\x41\xcb\x1a\xe2\x8d\x7d\x76\x91\xa8\x8c\xdd\xca\x9d\xda\xd4\xe4\xa3\x47\x65\xfb\x4f\xd4\xf1\xde\xde\x47\x8f\x74\x73\xbc\x7c\xf4\xe8\x6c\x32\x19\xbb\xe3\x91\x3d\xf9\x44\xed\x19\xfc\xd2\xea\x74\xe0\xea\xc6\xa6\x02\x06\x8e\xf6\xf7\x09\x94\x4e\xa8\x78\x01\x8e\x73\x26\x66\xd2\xcb\x72\x00\x71\xbb\x90\x31\x41\x2d\xbc\x1b\x2f\x8c\xa8\xda\xe8\x58\x0e\x2f\x83\x9a\x95\x53\xc7\x73\x69\xec\xf0\xb0\x62\xaa\xdd\x19\x52\xbc\xc6\x84\x64\x11\x48\xcb\x24\x00\x98\xdd\x2e\x03\x50\x44\x8d\x36\x52\x1a\xb6\x47\xd3\x09\xfc\xa7\x3f\xea\x6d\xaa\x3e\x17\x3d\x19\xcb\xd4\xcb\xb0\x35\x99\x5c\xa9\x63\x94\xfc\x3f\xe1\x07\xd8\x9a\x6c\xb1\x97\x25\x7b\x73\x04\xfe\x9e\x9f\xab\x2c\x59\xee\x11\x64\x8a\x1b\x34\xb9\x5c\xf8\x32\xcd\x44\xc3\xf7\x4e\xb2\x34\x97\xa2\x11\xe4\x29\x6f\xf7\xc9\xb3\xa7\x4f\xf6\x17\xfb\xcb\x7d\x25\x1a\x84\xe9\xc9\x72\x4d\x3f\x4d\xf9\xc6\x5b\xae\x22\xd9\xf4\x93\xa5\xf1\x39\xec\x8c\x52\x31\x4b\x93\xa5\xf0\x44\x73\x35\x7b\x23\x66\x61\xc4\x51\x98\xa4\x19\x5c\x84\x6b\x90\x2f\xc4\x79\x18\x07\x94\xa1\x68\xb0\x70\x16\xfa\x7a\xae\x14\xa9\x8f\x82\x04\x56\x08\xc4\x19\xbc\x4d\x66\x22\x4b\x8a\xfe\xdc\x71\x95\x86\x37\xd4\xf8\x5a\xae\x3f\xd1\xeb\x4a\x56\x70\x18\x15\x89\xd5\xb5\xaf\x0e\x0e\x45\x03\xe0\x91\x55\x1e\xbd\x91\xe4\x59\xf1\x26\x97\xa2\x11\x27\xe8\xa6\xfe\x67\xbd\xd0\xb2\xec\x44\x15\x8a\x1e\x02\xa9\x8c\xb6\x69\x4f\x5c\x4a\xba\x80\xbb\x0a\xe1\x5e\x39\x8c\xf1\xdc\x7c\x79\x6f\x83\xc2\x22\x86\x9f\xae\x56\x88\xa7\x08\x7b\x1d\x51\x54\x65\x12\x08\xd2\xa2\xbc\x38\x00\x0a\x80\xdb\xd7\xb8\xd1\x7e\xa1\x79\x25\x85\x32\x04\x28\x25\x57\x03\x58\x94\xc1\xa9\x58\xbe\x91\x7e\x0e\x80\x0d\x67\xd2\x42\x10\xbb\xec\xef\xe3\xd6\x04\x3e\xa7\xa9\x21\x22\x88\x29\x68\xf5\xa0\xbd\x6f\xac\xb1\x50\xf9\x8a\x60\x2d\x03\x8d\xcb\xb6\x2e\xd4\xc7\x64\xc2\x78\xae\xa9\x03\x5b\x81\x2d\x89\x1b\x51\x32\x9f\x63\x1b\x39\xa7\xd5\x85\xef\xc5\xe2\x4a\x8a\xda\x22\x59\x4a\x9d\xf3\x8b\x74\x5b\x33\xfa\x2d\xe6\x2a\xca\x01\x84\x03\xb5\x40\xc4\x06\x5e\xe6\x21\x99\xcb\x8b\x0a\x6f\x2c\xd7\xea\x75\xc4\xcc\x01\x6f\x9a\xa7\x52\x69\x4b\x28\x0c\x33\x79\x84\x8a\x30\xfb\x58\x11\x0d\xa5\xc2\x5f\x24\xc4\x50\x9d\xd3\x92\x18\xb8\xaf\x71\x36\x72\x28\x94\x0e\x0e\x9f\x36\xf7\xf1\xdf\xc1\xf1\xd1\xd1\xfe\x13\xa3\xe0\x38\x72\x69\xa3\x20\xac\x34\x49\x32\x63\xdc\x72\x9c\xf3\x0e\xe3\xd2\xa5\x81\x2a\xc3\xc6\xd1\xba\x2e\x64\xc9\x67\x3a\x28\x69\x66\xa9\x7c\x9d\x87\x69\xb1\x44\xa4\x9c\x70\xb6\x6e\xcc\xf2\x28\xaa\x21\x92\xfb\x1b\x2e\xd3\xed\x4b\xb3\xe5\xfc\x79\x4f\x6b\x59\x18\x5c\xd5\x0c\xbd\x21\x82\x50\xe0\x50\x6b\x06\x57\x00\xa5\xe0\x0c\xca\x67\x7e\x9e\x86\x19\x58\xd0\x1a\x62\x1f\xfb\x7d\x04\x75\xfb\x79\x65\x4b\x3e\xf8\x40\x6b\x02\x2d\x19\x26\x23\xf1\xdc\x34\xc7\xe2\xe5\x68\x6a\x0b\x5e\x61\xa7\x35\x69\x09\xa7\xd5\x35\x3f\xf8\xc0\x70\xcc\xb6\x6d\x4e\x5c\xf8\x22\x0c\x7c\xf0\xe1\x97\xdd\x8e\x79\x6e\xe3\xff\xff\xff\x7b\x8f\xc8\x23\xf2\Line truncated
|
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x7a\xcb\x8f\xe3\xc6\x76\xfe\x9e\x7f\x45\x59\xfe\xf9\xe7\x71\x20\xa9\x5f\x9e\x87\xdb\xee\xc4\x6a\x89\x52\xf3\x8e\x5e\x26\xa5\x19\x8f\x07\x0d\x36\x9b\x2c\x49\x74\x53\xa4\x86\x45\x76\xb7\x8c\x2c\xae\x91\x45\x80\x6c\x13\x24\x9b\x20\x48\x16\x41\x80\x9b\x07\x72\x91\xcd\xbd\x09\xb2\x32\xb2\x9f\xf9\x1f\x2e\x7c\x93\xff\x22\xdf\x39\x45\x4a\x54\x4f\xbb\x91\x0b\x24\xb0\xd1\x22\xeb\x71\xaa\xea\xab\x73\xce\xf7\x55\x71\x3e\x14\x43\xf3\x85\x69\x0b\xfe\x33\x18\x75\xac\xee\x2b\x31\x39\xb3\x1c\xd1\xb5\xfa\xa6\xf1\xa1\x18\xf7\xcd\x96\x63\x8a\x41\xeb\xb9\x29\xda\x67\xad\x61\xcf\x74\xc4\x68\x28\xda\x23\xdb\x36\x9d\xf1\x68\xd8\xb1\x86\x3d\xd1\x9e\x3a\x93\xd1\x00\x85\xc3\xae\xd5\xd3\x3d\x8d\xcf\x45\x6b\xb5\x12\xb1\xb7\x94\x22\x5b\x78\x99\x50\x8b\xe4\x46\x89\x24\x16\xf2\x5a\xa6\x6b\xb1\xf2\xe6\xa8\x08\xb3\x48\x1a\xad\xf1\xd8\x1d\xb6\x06\xa6\x38\x11\xbd\x64\xae\x8e\xf1\x57\xf4\xc2\x4c\x38\x32\xbd\x0e\x7d\x09\x4b\xed\x85\x17\xa3\x39\xca\xc2\x99\x58\x27\xb9\x48\xf3\x58\x44\x89\xef\x45\xd1\xda\xb0\xa7\x43\x77\xea\x60\xf6\x27\x62\x1e\x66\x68\x6d\x86\xd9\x42\xa6\xa2\x16\xc8\xeb\x5a\x5d\xd4\x56\x69\x12\xd4\x44\x82\x82\x4c\xaa\x0c\x25\x81\x9c\x79\x79\x04\x5b\x4a\xb7\x61\x0b\x58\x3a\x4d\x00\xef\x86\xf1\x3a\x95\xab\x44\x85\x59\x92\xae\xcf\x0d\x7b\x34\x9a\x88\x13\xc3\x69\xdb\xd6\x78\xe2\x4e\x5e\x8d\xa9\xd9\xa5\xa7\x16\x68\x97\x87\xe7\x18\x6f\x98\x2f\x2f\x31\x5e\x32\x13\x9b\x7e\xa1\x54\x7a\xd5\x5e\x2a\x79\xe5\x32\x10\x61\x8c\xd5\x4b\x21\x6f\x57\x51\x82\x52\x02\xc0\x30\xbf\x1e\xf7\x47\xb6\xe9\x8e\x5b\x3d\xe0\xe8\x0e\xa7\x03\x18\x3f\xdc\xdf\x31\x1a\x2a\x95\xff\xb4\x39\x36\x63\x39\xce\xf4\x8e\x91\x83\x5d\x23\x4b\xef\x36\x5c\xe6\x4b\xe1\x27\xcb\x65\x98\xa9\x3b\x46\x3c\x3f\x0b\xaf\xc3\x6c\x2d\x66\x52\x06\x46\xd7\x34\x3b\xee\xa0\xf5\xb5\xdb\x1e\x0d\x06\xd6\xa4\x30\xf8\x98\xd7\xdb\xf4\x82\x65\x18\xef\xae\x3a\x57\x32\x7d\x78\x7e\xb4\x3d\xbb\xd3\x7b\xbc\xff\x3e\x70\x0f\x9a\xb0\xcd\xf1\xe8\x41\x13\x71\x92\xc1\x59\x1e\x36\x32\x1c\x4d\xac\xb6\xf9\xa0\x99\x24\x9d\x7b\x71\xf8\x9d\x97\x85\x70\xd5\x87\x6c\x8d\xec\xde\x7b\x86\x8c\xd7\x4b\x2f\xbd\x0a\x92\x1b\x46\xc8\x8c\xbd\xcb\x48\x8a\x85\x97\x06\x22\x0a\xd1\xef\x32\x95\xde\x15\x1c\x20\x93\xb1\x82\x79\xc3\x1c\xb6\x4e\xfb\xa6\x7b\xd6\xb2\x3b\x6e\xdf\x1a\x9a\xee\xa9\x6d\xb6\x9e\xc3\xd4\xcc\x8b\x94\x84\x35\x00\x8b\x60\x39\x37\xc6\xf6\x68\x32\x6a\x8f\xfa\xa8\x5a\x64\xd9\xca\xe8\x8c\x06\x2d\x6b\x88\x37\x8e\x81\x45\xa2\x32\x76\x53\x77\x6a\x53\x93\x8f\x1e\x95\xed\x3f\x51\xc7\x7b\x7b\x1f\x3d\xd2\xcd\xf1\xf2\xd1\xa3\xb3\xc9\x64\xec\x8e\x47\xf6\xe4\x13\xb5\x67\xf0\x4b\xab\xd3\x41\xe8\x18\x9b\x0a\x18\x38\xda\xdf\x27\x50\x3a\xa1\xe2\x05\x38\xce\x19\x1c\xc3\xcb\x72\x00\x71\xb3\x90\x31\x41\x2d\xbc\x6b\x2f\x8c\xa8\xda\xe8\x58\x0e\x2f\x83\x9a\x95\x53\xc7\x73\x69\xec\xf0\xb0\x62\xaa\xdd\x19\x52\xfc\xc7\x84\x64\x11\x98\xcb\x24\x00\x98\xdd\x2e\x03\x50\x44\xa1\x36\x52\x1a\xb6\x47\xd3\x09\xfc\xa7\x3f\xea\x6d\xaa\x3e\x17\x3d\x19\xcb\xd4\xcb\xb0\x35\x99\x5c\xa9\x63\x94\xfc\x3f\xe1\x07\xd8\x9a\x6c\xb1\x97\x25\x7b\x73\x24\x92\x3d\x3f\x57\x59\xb2\xdc\x23\xc8\x14\x37\x68\x72\xb9\xf0\x65\x9a\x89\x86\xef\x9d\x64\x69\x2e\x45\x23\xc8\x53\xde\xee\x93\x67\x4f\x9f\xec\x2f\xf6\x97\xfb\x4a\x34\x08\xd3\x93\xe5\x9a\x7e\x9a\xf2\xd6\x5b\xae\x22\xd9\x44\xec\x18\x9f\xc3\xce\x28\x15\xb3\x34\x59\x0a\x4f\x34\x57\xb3\x5b\x31\x0b\x23\x8e\xea\x24\xcd\xe0\x22\x5c\x83\xfc\x23\x5e\x86\x71\x40\x19\x8f\x06\x0b\x67\xa1\xaf\xe7\x4a\x91\xff\x28\x48\x60\x85\x40\x9c\xc1\xdb\x64\x26\xb2\xa4\xe8\xcf\x1d\x57\x69\x78\x4d\x8d\xaf\xe4\xfa\x13\xbd\xae\x64\x05\x87\x51\x91\x58\x5d\xf9\xea\xe0\x50\x34\x00\x1e\x59\xe5\xd1\x1b\x49\x9e\x15\x6f\x72\x29\x1a\x71\x82\x6e\xea\x7f\xd6\x0b\x2d\xcb\x4e\x54\xa1\xe8\x21\x90\xca\x68\x9b\xf6\xc4\xa5\x24\x0e\xb8\xab\x10\xee\x95\xc3\x18\xcf\xcd\x57\xf7\x36\x28\x2c\x62\xf8\xe9\x6a\x85\x78\x8a\xb0\xd7\x11\x45\x55\x26\x81\x20\x2d\xca\x8b\x03\xa0\x00\xb8\x7d\x8d\x1b\xed\x17\x9a\x57\x52\x32\x43\x80\x52\x72\x35\x80\x45\x8c\x40\xc5\xf2\x56\xfa\x39\x00\x36\x9c\x49\x0b\x41\xec\xb2\xbf\x8f\x5b\x13\xf8\x9c\xa6\x9a\x88\x20\xa6\xa0\xd5\x83\xf6\xbe\xb1\xc6\x42\xe5\x2b\x82\xb5\x0c\x34\x2e\xdb\xba\x50\x1f\x93\x09\xe3\xb9\xa6\x22\x6c\x05\xb6\x24\x6e\x44\xc9\x7c\x8e\x6d\xe4\x9c\x56\x17\xbe\x17\x8b\x4b\x29\x6a\x8b\x64\x29\x35\x87\x14\xe9\xbb\x66\xf4\x5b\xcc\x7d\x94\x03\x08\x07\x6a\x81\x88\x0d\xbc\xcc\x03\x39\xc8\xf3\x0a\x0f\x2d\xd7\xea\x4d\xc4\x4c\x04\x6f\x9a\xa7\x52\x69\x4b\x28\x0c\x33\x79\x84\x8a\x30\xfb\x58\x11\xad\xa5\xc2\x5f\x24\xc4\x78\x9d\xd3\x92\x68\xb8\xaf\x71\x36\x72\x28\x94\x0e\x0e\x9f\x36\xf7\xf1\xdf\xc1\xf1\xd1\xd1\xfe\x13\xa3\xe0\x4c\x72\x69\xa3\x20\xc0\x34\x49\x32\x63\xdc\x72\x9c\x97\x1d\xc6\xa5\x4b\x03\x55\x86\x8d\xa3\x75\x5d\xc8\x92\x1f\x75\x50\xd2\xcc\x52\xf9\x26\x0f\xd3\x62\x89\x48\x39\xe1\x6c\xdd\x98\xe5\x51\x54\x43\x24\xf7\x37\xdc\xa8\xdb\x97\x66\xcb\xf9\xf3\x9e\xd6\xb2\x30\xb8\xac\x19\x7a\x43\x04\xa1\xc0\xa1\xd6\x0c\x2e\x01\x4a\xc1\x19\x94\xcf\xfc\x3c\x05\xcf\x9c\x1b\xd6\x10\xfb\xd8\xef\x23\xa8\xdb\xcf\x2b\x5b\xf2\xc1\x07\x5a\x63\x68\x09\x32\x19\x89\xe7\xa6\x39\x16\xaf\Line truncated
|
||||||
|
|
||||||
func confAppIniBytes() ([]byte, error) {
|
func confAppIniBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
@@ -299,7 +299,7 @@ func confAppIni() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindataFileInfo{name: "conf/app.ini", size: 9146, mode: os.FileMode(420), modTime: time.Unix(1443222333, 0)}
|
info := bindataFileInfo{name: "conf/app.ini", size: 9226, mode: os.FileMode(420), modTime: time.Unix(1443227263, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ var (
|
|||||||
// UI settings.
|
// UI settings.
|
||||||
ExplorePagingNum int
|
ExplorePagingNum int
|
||||||
IssuePagingNum int
|
IssuePagingNum int
|
||||||
|
FeedMaxCommitNum int
|
||||||
AdminUserPagingNum int
|
AdminUserPagingNum int
|
||||||
AdminRepoPagingNum int
|
AdminRepoPagingNum int
|
||||||
AdminNoticePagingNum int
|
AdminNoticePagingNum int
|
||||||
@@ -370,6 +371,7 @@ func NewContext() {
|
|||||||
sec = Cfg.Section("ui")
|
sec = Cfg.Section("ui")
|
||||||
ExplorePagingNum = sec.Key("EXPLORE_PAGING_NUM").MustInt(20)
|
ExplorePagingNum = sec.Key("EXPLORE_PAGING_NUM").MustInt(20)
|
||||||
IssuePagingNum = sec.Key("ISSUE_PAGING_NUM").MustInt(10)
|
IssuePagingNum = sec.Key("ISSUE_PAGING_NUM").MustInt(10)
|
||||||
|
FeedMaxCommitNum = sec.Key("FEED_MAX_COMMIT_NUM").MustInt(5)
|
||||||
|
|
||||||
sec = Cfg.Section("ui.admin")
|
sec = Cfg.Section("ui.admin")
|
||||||
AdminUserPagingNum = sec.Key("USER_PAGING_NUM").MustInt(50)
|
AdminUserPagingNum = sec.Key("USER_PAGING_NUM").MustInt(50)
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
0.6.14.0925 Beta
|
0.6.15.0925 Beta
|
||||||
Reference in new issue
Block a user