2023-07-31 22:13:42 +00:00
|
|
|
<div class="flex-list">
|
2015-12-07 22:30:52 +00:00
|
|
|
{{range .Repos}}
|
2023-07-31 22:13:42 +00:00
|
|
|
<div class="flex-item">
|
|
|
|
<div class="flex-item-leading">
|
2023-08-08 07:29:35 +00:00
|
|
|
{{template "repo/icon" .}}
|
2023-07-31 22:13:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex-item-main">
|
|
|
|
<div class="flex-item-header">
|
|
|
|
<div class="flex-item-title">
|
|
|
|
<a class="text primary name" href="{{.Link}}">
|
|
|
|
{{if or $.PageIsExplore $.PageIsProfileStarList}}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}}
|
|
|
|
</a>
|
|
|
|
<span class="label-list">
|
|
|
|
{{if .IsArchived}}
|
|
|
|
<span class="ui basic label">{{$.locale.Tr "repo.desc.archived"}}</span>
|
2020-12-08 04:14:28 +00:00
|
|
|
{{end}}
|
2023-07-31 22:13:42 +00:00
|
|
|
{{if .IsTemplate}}
|
|
|
|
{{if .IsPrivate}}
|
|
|
|
<span class="ui basic label">{{$.locale.Tr "repo.desc.private_template"}}</span>
|
|
|
|
{{else}}
|
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
|
|
|
<span class="ui basic label">{{$.locale.Tr "repo.desc.internal_template"}}</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2020-12-08 04:14:28 +00:00
|
|
|
{{else}}
|
2023-07-31 22:13:42 +00:00
|
|
|
{{if .IsPrivate}}
|
|
|
|
<span class="ui basic label">{{$.locale.Tr "repo.desc.private"}}</span>
|
|
|
|
{{else}}
|
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
|
|
|
<span class="ui basic label">{{$.locale.Tr "repo.desc.internal"}}</span>
|
|
|
|
{{end}}
|
2020-12-08 04:14:28 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2023-07-31 22:13:42 +00:00
|
|
|
</span>
|
2020-12-08 04:14:28 +00:00
|
|
|
{{if .IsFork}}
|
2023-07-31 22:13:42 +00:00
|
|
|
<span data-tooltip-content="{{$.locale.Tr "repo.fork"}}">{{svg "octicon-repo-forked"}}</span>
|
2020-12-08 04:14:28 +00:00
|
|
|
{{else if .IsMirror}}
|
2023-07-31 22:13:42 +00:00
|
|
|
<span data-tooltip-content="{{$.locale.Tr "mirror"}}">{{svg "octicon-mirror"}}</span>
|
2020-12-08 04:14:28 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2023-07-31 22:13:42 +00:00
|
|
|
<div class="flex-item-trailing">
|
|
|
|
{{if .PrimaryLanguage}}
|
|
|
|
<a class="muted" href="{{$.Link}}?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}">
|
|
|
|
<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}}
|
|
|
|
<a class="text grey flex-text-inline" href="{{.Link}}/forks">{{svg "octicon-git-branch" 16}}{{.NumForks}}</a>
|
|
|
|
</div>
|
2020-12-08 04:14:28 +00:00
|
|
|
</div>
|
2022-08-25 21:55:52 +00:00
|
|
|
{{$description := .DescriptionHTML $.Context}}
|
2023-07-31 22:13:42 +00:00
|
|
|
{{if $description}}
|
|
|
|
<div class="flex-item-body">{{$description}}</div>
|
|
|
|
{{end}}
|
2022-08-25 21:55:52 +00:00
|
|
|
{{if .Topics}}
|
2023-07-31 22:13:42 +00:00
|
|
|
<div class="label-list">
|
2019-05-30 02:22:26 +00:00
|
|
|
{{range .Topics}}
|
2023-06-24 12:30:46 +00:00
|
|
|
{{if ne . ""}}<a class="ui label" href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1">{{.}}</a>{{end}}
|
2019-05-30 02:22:26 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2018-05-13 01:50:39 +00:00
|
|
|
{{end}}
|
2023-07-31 22:13:42 +00:00
|
|
|
<div class="flex-item-body">{{$.locale.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.locale}}</div>
|
2019-05-30 02:22:26 +00:00
|
|
|
</div>
|
2015-12-07 22:30:52 +00:00
|
|
|
</div>
|
2016-12-01 10:52:57 +00:00
|
|
|
{{else}}
|
|
|
|
<div>
|
2022-06-27 20:58:46 +00:00
|
|
|
{{$.locale.Tr "explore.repo_no_results"}}
|
2016-12-01 10:52:57 +00:00
|
|
|
</div>
|
2015-12-07 22:30:52 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|