Skip to content

Commit 37fb679

Browse files
committed
improvements
1 parent 5c80b9a commit 37fb679

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

routers/web/explore/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func Repos(ctx *context.Context) {
151151
ctx.Data["CodePageIsDisabled"] = setting.Service.Explore.DisableCodePage
152152
ctx.Data["Title"] = ctx.Tr("explore")
153153
ctx.Data["PageIsExplore"] = true
154-
ctx.Data["ShowOwnerOnList"] = true
154+
ctx.Data["ShowRepoOwnerOnList"] = true
155155
ctx.Data["PageIsExploreRepositories"] = true
156156
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
157157

routers/web/repo/view.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ func Forks(ctx *context.Context) {
394394
}
395395

396396
pager := context.NewPagination(int(total), pageSize, page, 5)
397-
ctx.Data["IsForksPage"] = true
398-
ctx.Data["ShowOwnerOnList"] = true
397+
ctx.Data["ShowRepoOwnerAvatar"] = true
398+
ctx.Data["ShowRepoOwnerOnList"] = true
399399
ctx.Data["Page"] = pager
400400
ctx.Data["Repos"] = forks
401401

routers/web/user/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func prepareUserProfileTabData(ctx *context.Context, profileDbRepo *repo_model.R
197197
total = int(count)
198198
case "stars":
199199
ctx.Data["PageIsProfileStarList"] = true
200-
ctx.Data["ShowOwnerOnList"] = true
200+
ctx.Data["ShowRepoOwnerOnList"] = true
201201
repos, count, err = repo_model.SearchRepository(ctx, repo_model.SearchRepoOptions{
202202
ListOptions: db.ListOptions{
203203
PageSize: pagingNum,

templates/shared/repo/list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{range .Repos}}
33
<div class="flex-item">
44
<div class="flex-item-leading">
5-
{{if $.IsForksPage}}
5+
{{if $.ShowRepoOwnerAvatar}}
66
{{ctx.AvatarUtils.Avatar .Owner 24}}
77
{{else}}
88
{{template "repo/icon" .}}
@@ -11,7 +11,7 @@
1111
<div class="flex-item-main">
1212
<div class="flex-item-header">
1313
<div class="flex-item-title">
14-
{{if and $.ShowOwnerOnList .Owner}}
14+
{{if and $.ShowRepoOwnerOnList .Owner}}
1515
<a class="text primary name" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/
1616
{{end}}
1717
<a class="text primary name" href="{{.Link}}">{{.Name}}</a>

0 commit comments

Comments
 (0)