2023-08-01 01:13:42 +03:00
|
|
|
<div class="flex-list">
|
2015-12-08 01:30:52 +03:00
|
|
|
{{range .Repos}}
|
2023-08-01 01:13:42 +03:00
|
|
|
<div class="flex-item">
|
|
|
|
<div class="flex-item-leading">
|
2023-08-08 10:29:35 +03:00
|
|
|
{{template "repo/icon" .}}
|
2023-08-01 01:13:42 +03:00
|
|
|
</div>
|
|
|
|
<div class="flex-item-main">
|
|
|
|
<div class="flex-item-header">
|
|
|
|
<div class="flex-item-title">
|
2024-01-05 06:34:35 +03: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-08-01 01:13:42 +03:00
|
|
|
<span class="label-list">
|
|
|
|
{{if .IsArchived}}
|
2023-09-25 11:56:50 +03:00
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
|
2020-12-08 07:14:28 +03:00
|
|
|
{{end}}
|
2023-10-17 00:06:15 +03:00
|
|
|
{{if .IsPrivate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.private"}}</span>
|
2020-12-08 07:14:28 +03:00
|
|
|
{{else}}
|
2023-10-17 00:06:15 +03:00
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.internal"}}</span>
|
2020-12-08 07:14:28 +03:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2023-10-17 00:06:15 +03:00
|
|
|
{{if .IsTemplate}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.template"}}</span>
|
|
|
|
{{end}}
|
2024-01-19 19:05:02 +03:00
|
|
|
{{if eq .ObjectFormatName "sha256"}}
|
|
|
|
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.sha256"}}</span>
|
|
|
|
{{end}}
|
2023-08-01 01:13:42 +03:00
|
|
|
</span>
|
2020-12-08 07:14:28 +03:00
|
|
|
</div>
|
2024-03-21 20:04:03 +03:00
|
|
|
<div class="flex-item-trailing muted-links">
|
2023-08-01 01:13:42 +03:00
|
|
|
{{if .PrimaryLanguage}}
|
2024-03-21 20:04:03 +03:00
|
|
|
<a class="flex-text-inline" href="?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}{{if $.TabName}}&tab={{$.TabName}}{{end}}">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
|
|
|
<i class="color-icon tw-mr-2" style="background-color: {{.PrimaryLanguage.Color}}"></i>
|
2024-03-21 20:04:03 +03:00
|
|
|
{{.PrimaryLanguage.Language}}
|
2023-08-01 01:13:42 +03:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{if not $.DisableStars}}
|
2024-04-11 00:50:06 +03:00
|
|
|
<a class="flex-text-inline" href="{{.Link}}/stars" aria-label="{{ctx.Locale.TrN .NumStars "explore.stars_one" "explore.stars_few" .NumStars}}" {{if ge .NumStars 1000}}data-tooltip-content="{{.NumStars}}"{{end}}>
|
2024-03-28 17:48:56 +03:00
|
|
|
{{svg "octicon-star" 16}}
|
2024-04-11 00:50:06 +03:00
|
|
|
{{CountFmt .NumStars}}
|
2024-03-21 20:04:03 +03:00
|
|
|
</a>
|
2023-08-01 01:13:42 +03:00
|
|
|
{{end}}
|
2024-02-25 13:58:23 +03:00
|
|
|
{{if not $.DisableForks}}
|
2024-04-11 00:50:06 +03:00
|
|
|
<a class="flex-text-inline" href="{{.Link}}/forks" aria-label="{{ctx.Locale.TrN .NumForks "explore.forks_one" "explore.forks_few" .NumForks}}" {{if ge .NumForks 1000}}data-tooltip-content="{{.NumForks}}"{{end}}>
|
2024-03-28 17:48:56 +03:00
|
|
|
{{svg "octicon-git-branch" 16}}
|
2024-04-11 00:50:06 +03:00
|
|
|
{{CountFmt .NumForks}}
|
2024-03-21 20:04:03 +03:00
|
|
|
</a>
|
2024-02-25 13:58:23 +03:00
|
|
|
{{end}}
|
2023-08-01 01:13:42 +03:00
|
|
|
</div>
|
2020-12-08 07:14:28 +03:00
|
|
|
</div>
|
2022-08-26 00:55:52 +03:00
|
|
|
{{$description := .DescriptionHTML $.Context}}
|
2023-08-01 01:13:42 +03:00
|
|
|
{{if $description}}
|
|
|
|
<div class="flex-item-body">{{$description}}</div>
|
|
|
|
{{end}}
|
2022-08-26 00:55:52 +03:00
|
|
|
{{if .Topics}}
|
2023-08-01 01:13:42 +03:00
|
|
|
<div class="label-list">
|
2019-05-30 05:22:26 +03:00
|
|
|
{{range .Topics}}
|
2023-06-24 15:30:46 +03:00
|
|
|
{{if ne . ""}}<a class="ui label" href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1">{{.}}</a>{{end}}
|
2019-05-30 05:22:26 +03:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2018-05-13 04:50:39 +03:00
|
|
|
{{end}}
|
2024-11-04 14:30:00 +03:00
|
|
|
<div class="flex-item-body">{{ctx.Locale.Tr "org.repo_updated" (DateUtils.TimeSince .UpdatedUnix)}}</div>
|
2019-05-30 05:22:26 +03:00
|
|
|
</div>
|
2015-12-08 01:30:52 +03:00
|
|
|
</div>
|
2016-12-01 13:52:57 +03:00
|
|
|
{{else}}
|
|
|
|
<div>
|
2024-03-15 02:24:59 +03:00
|
|
|
{{ctx.Locale.Tr "search.no_results"}}
|
2016-12-01 13:52:57 +03:00
|
|
|
</div>
|
2015-12-08 01:30:52 +03:00
|
|
|
{{end}}
|
|
|
|
</div>
|