Skip to content

Commit cd015d9

Browse files
committed
revert
1 parent fef3f2e commit cd015d9

File tree

5 files changed

+7
-38
lines changed

5 files changed

+7
-38
lines changed

custom/conf/app.example.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,9 +1357,6 @@ LEVEL = Info
13571357
;; Number of orgs that are displayed on profile page
13581358
;ORG_PAGING_NUM = 15
13591359

1360-
;; Whether to show the pagination on the user dashbaord page
1361-
;DASHBOARD_ACTIVITIES_PAGINATION = false
1362-
13631360
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13641361
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13651362
;[ui.meta]

modules/setting/ui.go

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ var UI = struct {
6363
OrgPagingNum int
6464
} `ini:"ui.admin"`
6565
User struct {
66-
RepoPagingNum int
67-
OrgPagingNum int
68-
DashboardActivitiesPagination bool // display pagination for dashboard activities
66+
RepoPagingNum int
67+
OrgPagingNum int
6968
} `ini:"ui.user"`
7069
Meta struct {
7170
Author string
@@ -130,13 +129,11 @@ var UI = struct {
130129
OrgPagingNum: 50,
131130
},
132131
User: struct {
133-
RepoPagingNum int
134-
OrgPagingNum int
135-
DashboardActivitiesPagination bool
132+
RepoPagingNum int
133+
OrgPagingNum int
136134
}{
137-
RepoPagingNum: 15,
138-
OrgPagingNum: 15,
139-
DashboardActivitiesPagination: false,
135+
RepoPagingNum: 15,
136+
OrgPagingNum: 15,
140137
},
141138
Meta: struct {
142139
Author string

routers/web/user/home.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ func Dashboard(ctx *context.Context) {
142142
pager := context.NewPagination(int(count), setting.UI.FeedPagingNum, page, 5)
143143
pager.AddParamFromRequest(ctx.Req)
144144
ctx.Data["Page"] = pager
145-
ctx.Data["ShowPagination"] = setting.UI.User.DashboardActivitiesPagination
146145

147146
ctx.HTML(http.StatusOK, tplDashboard)
148147
}

templates/base/pre_next.tmpl

Lines changed: 0 additions & 17 deletions
This file was deleted.

templates/user/dashboard/feeds.tmpl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,5 @@
126126
</div>
127127
</div>
128128
{{end}}
129-
{{$paginater := .Page.Paginater}}
130-
{{if $paginater}}
131-
{{if .ShowPagination}}
132-
{{template "base/paginate" .}}
133-
{{else}}
134-
{{template "base/pre_next" .}}
135-
{{end}}
136-
{{end}}
129+
{{template "base/paginate" .}}
137130
</div>

0 commit comments

Comments
 (0)