2023-07-31 17:13:42 -05:00
|
|
|
<div class="flex-list">
|
2015-12-07 17:30:52 -05:00
|
|
|
{{range .Repos}}
|
2023-07-31 17:13:42 -05:00
|
|
|
<div class="flex-item">
|
|
|
|
<div class="flex-item-leading">
|
2023-08-08 02:29:35 -05:00
|
|
|
{{template "repo/icon" .}}
|
2023-07-31 17:13:42 -05:00
|
|
|
</div>
|
|
|
|
<div class="flex-item-main">
|
|
|
|
<div class="flex-item-header">
|
|
|
|
<div class="flex-item-title">
|
2024-01-04 22:34:35 -05:00
|
|
|
{{if and (or $.PageIsExplore $.PageIsProfileStarList) .Owner}}
|
|
|
|
<a class="text primary name" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/
|
|
|
|
{{end}}
|
|
|
|
<a class="text primary name" href="{{.Link}}">{{.Name}}</a>
|
2023-07-31 17:13:42 -05:00
|
|
|
<span class="label-list">
|
|
|
|
{{if .IsArchived}}
|
2023-09-25 03:56:50 -05:00
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
|
2020-12-07 23:14:28 -05:00
|
|
|
{{end}}
|
2023-10-16 16:06:15 -05:00
|
|
|
{{if .IsPrivate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.private"}}</span>
|
2020-12-07 23:14:28 -05:00
|
|
|
{{else}}
|
2023-10-16 16:06:15 -05:00
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.internal"}}</span>
|
2020-12-07 23:14:28 -05:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2023-10-16 16:06:15 -05:00
|
|
|
{{if .IsTemplate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.template"}}</span>
|
|
|
|
{{end}}
|
2024-01-19 11:05:02 -05:00
|
|
|
{{if eq .ObjectFormatName "sha256"}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.sha256"}}</span>
|
|
|
|
{{end}}
|
2023-07-31 17:13:42 -05:00
|
|
|
</span>
|
2020-12-07 23:14:28 -05:00
|
|
|
</div>
|
2023-07-31 17:13:42 -05:00
|
|
|
<div class="flex-item-trailing">
|
|
|
|
{{if .PrimaryLanguage}}
|
2023-12-01 15:31:40 -05:00
|
|
|
<a class="muted" href="{{$.Link}}?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}{{if $.TabName}}&tab={{$.TabName}}{{end}}">
|
2023-07-31 17:13:42 -05:00
|
|
|
<span class="flex-text-inline"><i class="color-icon gt-mr-3" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{.PrimaryLanguage.Language}}</span>
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{if not $.DisableStars}}
|
|
|
|
<a class="text grey flex-text-inline" href="{{.Link}}/stars">{{svg "octicon-star" 16}}{{.NumStars}}</a>
|
|
|
|
{{end}}
|
2024-02-25 05:58:23 -05:00
|
|
|
{{if not $.DisableForks}}
|
|
|
|
<a class="text grey flex-text-inline" href="{{.Link}}/forks">{{svg "octicon-git-branch" 16}}{{.NumForks}}</a>
|
|
|
|
{{end}}
|
2023-07-31 17:13:42 -05:00
|
|
|
</div>
|
2020-12-07 23:14:28 -05:00
|
|
|
</div>
|
2022-08-25 16:55:52 -05:00
|
|
|
{{$description := .DescriptionHTML $.Context}}
|
2023-07-31 17:13:42 -05:00
|
|
|
{{if $description}}
|
|
|
|
<div class="flex-item-body">{{$description}}</div>
|
|
|
|
{{end}}
|
2022-08-25 16:55:52 -05:00
|
|
|
{{if .Topics}}
|
2023-07-31 17:13:42 -05:00
|
|
|
<div class="label-list">
|
2019-05-29 21:22:26 -05:00
|
|
|
{{range .Topics}}
|
2023-06-24 07:30:46 -05:00
|
|
|
{{if ne . ""}}<a class="ui label" href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1">{{.}}</a>{{end}}
|
2019-05-29 21:22:26 -05:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2018-05-12 20:50:39 -05:00
|
|
|
{{end}}
|
2023-09-25 07:42:40 -05:00
|
|
|
<div class="flex-item-body">{{ctx.Locale.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix ctx.Locale}}</div>
|
2019-05-29 21:22:26 -05:00
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
</div>
|
2016-12-01 05:52:57 -05:00
|
|
|
{{else}}
|
|
|
|
<div>
|
2023-09-25 03:56:50 -05:00
|
|
|
{{ctx.Locale.Tr "explore.repo_no_results"}}
|
2016-12-01 05:52:57 -05:00
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
{{end}}
|
|
|
|
</div>
|