File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 9
9
"io/ioutil"
10
10
"path/filepath"
11
11
"strings"
12
- "time"
13
12
14
13
"code.gitea.io/git"
15
14
@@ -19,6 +18,7 @@ import (
19
18
"code.gitea.io/gitea/modules/context"
20
19
"code.gitea.io/gitea/modules/markup"
21
20
"code.gitea.io/gitea/modules/markup/markdown"
21
+ "code.gitea.io/gitea/modules/util"
22
22
)
23
23
24
24
const (
@@ -45,9 +45,9 @@ func MustEnableUncyclo(ctx *context.Context) {
45
45
46
46
// PageMeta wiki page meat information
47
47
type PageMeta struct {
48
- Name string
49
- SubURL string
50
- Updated time. Time
48
+ Name string
49
+ SubURL string
50
+ UpdatedUnix util. TimeStamp
51
51
}
52
52
53
53
// findEntryForFile finds the tree entry for a target filepath.
@@ -266,9 +266,9 @@ func UncycloPages(ctx *context.Context) {
266
266
return
267
267
}
268
268
pages = append (pages , PageMeta {
269
- Name : wikiName ,
270
- SubURL : models .UncycloNameToSubURL (wikiName ),
271
- Updated : c .Author .When ,
269
+ Name : wikiName ,
270
+ SubURL : models .UncycloNameToSubURL (wikiName ),
271
+ UpdatedUnix : util . TimeStamp ( c .Author .When . Unix ()) ,
272
272
})
273
273
}
274
274
ctx .Data ["Pages" ] = pages
You can’t perform that action at this time.
0 commit comments