Skip to content

Commit dd56933

Browse files
authored
Add links to owner home page in explore (go-gitea#28341)
User can select access repo or owner's home page. Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/f40a833f-8560-4585-b047-3a225be2e6ee) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/7893bf3a-5050-4bcb-af99-d56d6c7925f8)
1 parent 92711b0 commit dd56933

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

templates/explore/repo_list.tmpl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
<div class="flex-item-main">
88
<div class="flex-item-header">
99
<div class="flex-item-title">
10-
<a class="text primary name" href="{{.Link}}">
11-
{{if or $.PageIsExplore $.PageIsProfileStarList}}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}}
12-
</a>
10+
{{if and (or $.PageIsExplore $.PageIsProfileStarList) .Owner}}
11+
<a class="text primary name" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/
12+
{{end}}
13+
<a class="text primary name" href="{{.Link}}">{{.Name}}</a>
1314
<span class="label-list">
1415
{{if .IsArchived}}
1516
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>

0 commit comments

Comments
 (0)