1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-26 06:46:10 +02:00

minor fixes on #1551

This commit is contained in:
Unknwon 2015-09-01 07:04:35 -04:00
parent 67f07e21f5
commit 7714e792a4
10 changed files with 322 additions and 734 deletions

View File

@ -13,6 +13,8 @@ ROOT =
SCRIPT_TYPE = bash
[ui]
; Number of repositories that are showed in one explore page
EXPLORE_PAGING_NUM = 20
; Number of issues that are showed in one page
ISSUE_PAGING_NUM = 10

View File

@ -1105,9 +1105,9 @@ func GetRepositories(uid int64, private bool) ([]*Repository, error) {
}
// GetRecentUpdatedRepositories returns the list of repositories that are recently updated.
func GetRecentUpdatedRepositories(num int) (repos []*Repository, err error) {
err = x.Where("is_private=?", false).Limit(num).Desc("updated").Find(&repos)
return repos, err
func GetRecentUpdatedRepositories(page int) (repos []*Repository, err error) {
return repos, x.Limit(setting.ExplorePagingNum, (page-1)*setting.ExplorePagingNum).
Where("is_private=?", false).Limit(setting.ExplorePagingNum).Desc("updated").Find(&repos)
}
// GetRepositoryCount returns the total number of repositories of user.

File diff suppressed because one or more lines are too long

View File

@ -91,7 +91,8 @@ var (
AnsiCharset string
// UI settings.
IssuePagingNum int
ExplorePagingNum int
IssuePagingNum int
// Picture settings.
PictureService string
@ -352,6 +353,7 @@ func NewConfigContext() {
AnsiCharset = sec.Key("ANSI_CHARSET").MustString("")
// UI settings.
ExplorePagingNum = Cfg.Section("ui").Key("EXPLORE_PAGING_NUM").MustInt(20)
IssuePagingNum = Cfg.Section("ui").Key("ISSUE_PAGING_NUM").MustInt(10)
sec = Cfg.Section("picture")

View File

@ -2,38 +2,20 @@
"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
"creatorBuild": "18493",
"files": {
"\/css\/bootstrap-colorpicker.min.css": {
"\/css\/dropzone-4.0.1.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/bootstrap-colorpicker.min.css",
"inputAbbreviatedPath": "\/css\/dropzone-4.0.1.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/css\/bootstrap.min.css": {
"\/css\/font-awesome-4.4.0.min.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/bootstrap.min.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/css\/datepicker3.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/datepicker3.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/css\/font-awesome.min.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/font-awesome.min.css",
"inputAbbreviatedPath": "\/css\/font-awesome-4.4.0.min.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
@ -56,29 +38,38 @@
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/css\/gogs.min.css": {
"\/css\/highlight-8.7\/default.css": {
"fileType": 16,
"ignore": 1,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/gogs.min.css",
"inputAbbreviatedPath": "\/css\/highlight-8.7\/default.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/css\/markdown.css": {
"\/css\/jquery.datetimepicker-2.4.5.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/markdown.css",
"inputAbbreviatedPath": "\/css\/jquery.datetimepicker-2.4.5.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/css\/semantic.min.css": {
"\/css\/jquery.minicolors-2.1.12.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/semantic.min.css",
"inputAbbreviatedPath": "\/css\/jquery.minicolors-2.1.12.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/css\/semantic-2.0.8.min.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/semantic-2.0.8.min.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
@ -94,15 +85,6 @@
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/css\/todc-bootstrap.min.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/css\/todc-bootstrap.min.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/img\/404.png": {
"fileType": 32768,
"ignore": 0,
@ -136,61 +118,6 @@
"outputPathIsSetByUser": 0,
"processed": 1
},
"\/img\/bootstrap-colorpicker\/alpha-horizontal.png": {
"fileType": 32768,
"ignore": 0,
"ignoreWasSetByUser": 0,
"initialSize": 3635,
"inputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/alpha-horizontal.png",
"outputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/alpha-horizontal.png",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/img\/bootstrap-colorpicker\/alpha.png": {
"fileType": 32768,
"ignore": 0,
"ignoreWasSetByUser": 0,
"initialSize": 3271,
"inputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/alpha.png",
"outputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/alpha.png",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/img\/bootstrap-colorpicker\/hue-horizontal.png": {
"fileType": 32768,
"ignore": 0,
"ignoreWasSetByUser": 0,
"initialSize": 2837,
"inputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/hue-horizontal.png",
"outputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/hue-horizontal.png",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/img\/bootstrap-colorpicker\/hue.png": {
"fileType": 32768,
"ignore": 0,
"ignoreWasSetByUser": 0,
"initialSize": 2972,
"inputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/hue.png",
"outputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/hue.png",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/img\/bootstrap-colorpicker\/saturation.png": {
"fileType": 32768,
"ignore": 0,
"ignoreWasSetByUser": 0,
"initialSize": 8817,
"inputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/saturation.png",
"outputAbbreviatedPath": "\/img\/bootstrap-colorpicker\/saturation.png",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/img\/checkmark.png": {
"fileType": 32768,
"ignore": 0,
@ -224,49 +151,16 @@
"outputPathIsSetByUser": 0,
"processed": 1
},
"\/js\/app.js": {
"fileType": 64,
"\/img\/slack.png": {
"fileType": 32768,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/app.js",
"outputAbbreviatedPath": "\/js\/min\/app-min.js",
"initialSize": 1633,
"inputAbbreviatedPath": "\/img\/slack.png",
"outputAbbreviatedPath": "\/img\/slack.png",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/bootstrap-colorpicker.min.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/bootstrap-colorpicker.min.js",
"outputAbbreviatedPath": "\/js\/min\/bootstrap-colorpicker.min-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/bootstrap-datepicker.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/bootstrap-datepicker.js",
"outputAbbreviatedPath": "\/js\/min\/bootstrap-datepicker-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/bootstrap.min.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/bootstrap.min.js",
"outputAbbreviatedPath": "\/js\/min\/bootstrap.min-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
"processed": 0
},
"\/js\/gogs.js": {
"fileType": 64,
@ -279,632 +173,102 @@
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/jquery-1.10.1.min.js": {
"\/js\/jquery-1.11.3.min.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/jquery-1.10.1.min.js",
"outputAbbreviatedPath": "\/js\/min\/jquery-1.10.1.min-min.js",
"inputAbbreviatedPath": "\/js\/jquery-1.11.3.min.js",
"outputAbbreviatedPath": "\/js\/min\/jquery-1.11.3.min-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/jquery-1.11.2.min.js": {
"\/js\/libs\/dropzone-4.0.1.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/jquery-1.11.2.min.js",
"outputAbbreviatedPath": "\/js\/min\/jquery-1.11.2.min-min.js",
"inputAbbreviatedPath": "\/js\/libs\/dropzone-4.0.1.js",
"outputAbbreviatedPath": "\/js\/libs\/min\/dropzone-4.0.1-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/jquery.validate.min.js": {
"\/js\/libs\/highlight-8.7.pack.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/jquery.validate.min.js",
"outputAbbreviatedPath": "\/js\/min\/jquery.validate.min-min.js",
"inputAbbreviatedPath": "\/js\/libs\/highlight-8.7.pack.js",
"outputAbbreviatedPath": "\/js\/libs\/min\/highlight-8.7.pack-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/lib.js": {
"\/js\/libs\/jquery.datetimepicker-2.4.5.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/lib.js",
"outputAbbreviatedPath": "\/js\/min\/lib-min.js",
"inputAbbreviatedPath": "\/js\/libs\/jquery.datetimepicker-2.4.5.js",
"outputAbbreviatedPath": "\/js\/libs\/min\/jquery.datetimepicker-2.4.5-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ar.js": {
"\/js\/libs\/jquery.minicolors-2.1.12.min.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ar.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ar-min.js",
"inputAbbreviatedPath": "\/js\/libs\/jquery.minicolors-2.1.12.min.js",
"outputAbbreviatedPath": "\/js\/libs\/min\/jquery.minicolors-2.1.12.min-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.az.js": {
"\/js\/libs\/jquery.minicolors.png": {
"fileType": 32768,
"ignore": 0,
"ignoreWasSetByUser": 0,
"initialSize": 77459,
"inputAbbreviatedPath": "\/js\/libs\/jquery.minicolors.png",
"outputAbbreviatedPath": "\/js\/libs\/jquery.minicolors.png",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"processed": 0
},
"\/js\/semantic-2.0.8.min.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.az.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.az-min.js",
"inputAbbreviatedPath": "\/js\/semantic-2.0.8.min.js",
"outputAbbreviatedPath": "\/js\/min\/semantic-2.0.8.min-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.bg.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.bg.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.bg-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ca.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ca.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ca-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.cs.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.cs.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.cs-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.cy.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.cy.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.cy-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.da.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.da.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.da-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.de.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.de.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.de-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.el.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.el.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.el-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.es.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.es.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.es-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.et.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.et.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.et-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.fa.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.fa.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.fa-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.fi.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.fi.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.fi-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.fr.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.fr.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.fr-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.gl.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.gl.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.gl-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.he.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.he.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.he-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.hr.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.hr.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.hr-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.hu.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.hu.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.hu-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.id.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.id.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.id-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.is.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.is.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.is-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.it.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.it.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.it-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ja.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ja.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ja-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ka.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ka.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ka-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.kk.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.kk.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.kk-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.kr.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.kr.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.kr-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.lt.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.lt.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.lt-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.lv.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.lv.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.lv-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.mk.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.mk.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.mk-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ms.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ms.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ms-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.nb.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.nb.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.nb-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.nl-BE.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.nl-BE.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.nl-BE-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.nl.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.nl.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.nl-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.no.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.no.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.no-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.pl.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.pl.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.pl-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.pt-BR.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.pt-BR.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.pt-BR-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.pt.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.pt.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.pt-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ro.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ro.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ro-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.rs-latin.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.rs-latin.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.rs-latin-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.rs.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.rs.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.rs-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ru.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ru.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ru-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.sk.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.sk.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.sk-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.sl.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.sl.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.sl-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.sq.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.sq.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.sq-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.sv.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.sv.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.sv-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.sw.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.sw.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.sw-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.th.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.th.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.th-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.tr.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.tr.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.tr-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.ua.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.ua.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.ua-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.vi.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.vi.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.vi-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.zh-CN.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.zh-CN.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.zh-CN-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/locales\/bootstrap-datepicker.zh-TW.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/locales\/bootstrap-datepicker.zh-TW.js",
"outputAbbreviatedPath": "\/js\/locales\/min\/bootstrap-datepicker.zh-TW-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/min\/gogs-min.js": {
"fileType": 64,
"\/less\/_admin.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/min\/gogs-min.js",
"outputAbbreviatedPath": "\/js\/min\/min\/gogs-min-min.js",
"inputAbbreviatedPath": "\/less\/_admin.less",
"outputAbbreviatedPath": "\/css\/_admin.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/semantic.min.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/semantic.min.js",
"outputAbbreviatedPath": "\/js\/min\/semantic.min-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_base.less": {
"allowInsecureImports": 0,
@ -926,6 +290,66 @@
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_dashboard.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_dashboard.less",
"outputAbbreviatedPath": "\/css\/_dashboard.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_explore.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_explore.less",
"outputAbbreviatedPath": "\/css\/_explore.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_form.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_form.less",
"outputAbbreviatedPath": "\/css\/_form.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_home.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
@ -946,6 +370,46 @@
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_install.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_install.less",
"outputAbbreviatedPath": "\/css\/_install.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_markdown.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_markdown.less",
"outputAbbreviatedPath": "\/css\/_markdown.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_octicons.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
@ -966,6 +430,66 @@
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_organization.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_organization.less",
"outputAbbreviatedPath": "\/css\/_organization.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_repository.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_repository.less",
"outputAbbreviatedPath": "\/css\/_repository.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/_user.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 1,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/less\/_user.less",
"outputAbbreviatedPath": "\/css\/_user.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
},
"\/less\/gogs.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
@ -986,6 +510,15 @@
"strictMath": 0,
"strictUnits": 0
},
"\/ng\/css\/font-awesome.min.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/ng\/css\/font-awesome.min.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/ng\/css\/gogs.css": {
"fileType": 16,
"ignore": 1,

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,30 @@
.explore {
padding-top: 15px;
padding-bottom: @footer-margin * 2;
&.repositories {
.ui.repository.list {
.item {
border-top: 1px solid #eee;
padding-top: 25px;
padding-bottom: 25px;
.ui.header {
font-size: 1.5rem;
padding-bottom: 10px;
.metas {
color: #888;
font-size: 13px;
font-weight: normal;
span:not(:last-child) {
margin-right: 5px;
}
}
}
.time {
font-size: 12px;
color: #808080;
}
}
}
}
}

View File

@ -7,6 +7,8 @@ package routers
import (
"fmt"
"github.com/Unknwon/paginater"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/middleware"
@ -50,7 +52,14 @@ func Explore(ctx *middleware.Context) {
ctx.Data["Title"] = ctx.Tr("explore")
ctx.Data["PageIsExploreRepositories"] = true
repos, err := models.GetRecentUpdatedRepositories(20)
page := ctx.QueryInt("page")
if page <= 1 {
page = 1
}
ctx.Data["Page"] = paginater.New(int(models.CountRepositories()), setting.ExplorePagingNum, page, 5)
repos, err := models.GetRecentUpdatedRepositories(page)
if err != nil {
ctx.Handle(500, "GetRecentUpdatedRepositories", err)
return

View File

@ -1,32 +1,47 @@
{{template "base/head" .}}
<div class="explore">
<div class="explore repositories">
<div class="ui container">
<div class="ui grid">
{{template "explore/nav" .}}
{{template "explore/navbar" .}}
<div class="twelve wide column content">
<h4 class="ui top attached header">
{{.i18n.Tr "explore.repos"}}
</h4>
<div class="ui attached segment">
<div class="ui repository list">
{{range $i, $v := .Repos}}
<div class="item">
<div class="ui right">
<span class="text grey right"><i class="octicon octicon-star"></i> {{.NumStars}}</li> </span>
<span class="text grey right"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li></span>
<div class="item">
<div class="ui header">
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a>
<div class="ui right metas">
<span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
<span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
</div>
<h2>
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a>
</h2>
<p class="org-repo-description">{{.Description}}</p>
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
</div>
{{if not (eq 1 (len $.Repos))}}
{{if not $i}}
<div class="ui divider"></div>
{{end}}
{{end}}
{{if .Description}}<p>{{.Description}}</p>{{end}}
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
</div>
{{end}}
</div>
{{with .Page}}
{{if gt .TotalPages 1}}
<div class="center page buttons">
<div class="ui borderless pagination menu">
<a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}"{{end}}>
<i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}}
</a>
{{range .Pages}}
{{if eq .Num -1}}
<a class="disabled item">...</a>
{{else}}
<a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}"{{end}}>{{.Num}}</a>
{{end}}
{{end}}
<a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}"{{end}}>
{{$.i18n.Tr "repo.issues.next"}} <i class="icon right arrow"></i>
</a>
</div>
</div>
{{end}}
{{end}}
</div>
</div>
</div>