2023-08-01 03:43:42 +05:30
|
|
|
<div class="flex-list">
|
2015-12-08 04:00:52 +05:30
|
|
|
{{range .Repos}}
|
2023-08-01 03:43:42 +05:30
|
|
|
<div class="flex-item">
|
|
|
|
<div class="flex-item-leading">
|
2023-08-08 12:59:35 +05:30
|
|
|
{{template "repo/icon" .}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</div>
|
|
|
|
<div class="flex-item-main">
|
|
|
|
<div class="flex-item-header">
|
|
|
|
<div class="flex-item-title">
|
2024-01-05 09:04:35 +05:30
|
|
|
{{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-08-01 03:43:42 +05:30
|
|
|
<span class="label-list">
|
|
|
|
{{if .IsArchived}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
|
2020-12-08 09:44:28 +05:30
|
|
|
{{end}}
|
2023-10-17 02:36:15 +05:30
|
|
|
{{if .IsPrivate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.private"}}</span>
|
2020-12-08 09:44:28 +05:30
|
|
|
{{else}}
|
2023-10-17 02:36:15 +05:30
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.internal"}}</span>
|
2020-12-08 09:44:28 +05:30
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2023-10-17 02:36:15 +05:30
|
|
|
{{if .IsTemplate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.template"}}</span>
|
|
|
|
{{end}}
|
2024-01-19 21:35:02 +05:30
|
|
|
{{if eq .ObjectFormatName "sha256"}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.sha256"}}</span>
|
|
|
|
{{end}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</span>
|
2020-12-08 09:44:28 +05:30
|
|
|
</div>
|
2024-03-21 22:34:03 +05:30
|
|
|
<div class="flex-item-trailing muted-links">
|
2023-08-01 03:43:42 +05:30
|
|
|
{{if .PrimaryLanguage}}
|
2024-03-21 22:34:03 +05:30
|
|
|
<a class="flex-text-inline" href="?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}{{if $.TabName}}&tab={{$.TabName}}{{end}}">
|
|
|
|
<i class="color-icon gt-mr-3" style="background-color: {{.PrimaryLanguage.Color}}"></i>
|
|
|
|
{{.PrimaryLanguage.Language}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{if not $.DisableStars}}
|
2024-03-21 22:34:03 +05:30
|
|
|
<a class="flex-text-inline" href="{{.Link}}/stars">
|
|
|
|
<span aria-label="{{ctx.Locale.Tr "repo.stars"}}">{{svg "octicon-star" 16}}</span>
|
|
|
|
<span {{if ge .NumStars 1000}}data-tooltip-content="{{.NumStars}}"{{end}}>{{CountFmt .NumStars}}</span>
|
|
|
|
</a>
|
2023-08-01 03:43:42 +05:30
|
|
|
{{end}}
|
2024-02-25 16:28:23 +05:30
|
|
|
{{if not $.DisableForks}}
|
2024-03-21 22:34:03 +05:30
|
|
|
<a class="flex-text-inline" href="{{.Link}}/forks">
|
|
|
|
<span aria-label="{{ctx.Locale.Tr "repo.forks"}}">{{svg "octicon-git-branch" 16}}</span>
|
|
|
|
<span {{if ge .NumForks 1000}}data-tooltip-content="{{.NumForks}}"{{end}}>{{CountFmt .NumForks}}</span>
|
|
|
|
</a>
|
2024-02-25 16:28:23 +05:30
|
|
|
{{end}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</div>
|
2020-12-08 09:44:28 +05:30
|
|
|
</div>
|
2022-08-26 03:25:52 +05:30
|
|
|
{{$description := .DescriptionHTML $.Context}}
|
2023-08-01 03:43:42 +05:30
|
|
|
{{if $description}}
|
|
|
|
<div class="flex-item-body">{{$description}}</div>
|
|
|
|
{{end}}
|
2022-08-26 03:25:52 +05:30
|
|
|
{{if .Topics}}
|
2023-08-01 03:43:42 +05:30
|
|
|
<div class="label-list">
|
2019-05-30 07:52:26 +05:30
|
|
|
{{range .Topics}}
|
2023-06-24 18:00:46 +05:30
|
|
|
{{if ne . ""}}<a class="ui label" href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1">{{.}}</a>{{end}}
|
2019-05-30 07:52:26 +05:30
|
|
|
{{end}}
|
|
|
|
</div>
|
2018-05-13 07:20:39 +05:30
|
|
|
{{end}}
|
2023-09-25 18:12:40 +05:30
|
|
|
<div class="flex-item-body">{{ctx.Locale.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix ctx.Locale}}</div>
|
2019-05-30 07:52:26 +05:30
|
|
|
</div>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2016-12-01 16:22:57 +05:30
|
|
|
{{else}}
|
|
|
|
<div>
|
2024-03-15 04:54:59 +05:30
|
|
|
{{ctx.Locale.Tr "search.no_results"}}
|
2016-12-01 16:22:57 +05:30
|
|
|
</div>
|
2015-12-08 04:00:52 +05:30
|
|
|
{{end}}
|
|
|
|
</div>
|