|
12 | 12 | {{ctx.Locale.Tr "repo.repo_desc"}} |
13 | 13 | </div> |
14 | 14 | {{if and (not .HideRepoInfo) (not .IsBlame)}} |
15 | | - <div class="flex-item-body repo-description tw-break-anywhere tw-gap-2 tw-mt-2"> |
| 15 | + <div class="flex-item-body repo-description tw-break-anywhere tw-gap-2 tw-my-2"> |
16 | 16 | {{- $description := .Repository.DescriptionHTML ctx -}} |
17 | 17 | {{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.repo_no_desc"}}{{end}} |
18 | | - {{if .Repository.Website}}{{svg "octicon-link"}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}} |
19 | 18 | </div> |
| 19 | + {{if .Repository.Website}} |
| 20 | + <a class="flex-text-block muted" href="{{.Repository.Website}}"> |
| 21 | + {{svg "octicon-link"}} <span class="tw-text-primary">{{.Repository.Website}}</span> |
| 22 | + </a> |
| 23 | + {{end}} |
20 | 24 | <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics"> |
21 | 25 | {{/* !!!! it SHOULD and MUST match the code in issue-home.js */}} |
22 | 26 | {{range .Topics}}<a class="repo-topic ui large label gt-ellipsis" title={{.Name}} href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}} |
|
41 | 45 | </div> |
42 | 46 | </div> |
43 | 47 | {{end}} |
44 | | - <div class="tw-flex tw-flex-col tw-gap-1 tw-mt-2"> |
| 48 | + <div class="flex-item-body tw-flex tw-flex-col tw-gap-1 tw-mt-2 tw-items-start"> |
45 | 49 | {{if .ReadmeExist}} |
46 | | - <div class="flex-item-body"> |
47 | | - <a class="flex-text-block muted" href="{{.TreeLink}}/{{.FileName}}"> |
48 | | - {{svg "octicon-book"}} {{ctx.Locale.Tr "readme"}} |
49 | | - </a> |
50 | | - </div> |
| 50 | + <a class="flex-text-block muted" href="{{.TreeLink}}/{{.FileName}}"> |
| 51 | + {{svg "octicon-book"}} {{ctx.Locale.Tr "readme"}} |
| 52 | + </a> |
51 | 53 | {{end}} |
52 | 54 | {{if .DetectedRepoLicenses}} |
53 | | - <div class="flex-item-body"> |
54 | | - <a class="flex-text-block muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}"> |
55 | | - {{svg "octicon-law"}} {{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}} |
56 | | - </a> |
57 | | - </div> |
| 55 | + <a class="flex-text-block muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}"> |
| 56 | + {{svg "octicon-law"}} {{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}} |
| 57 | + </a> |
58 | 58 | {{end}} |
59 | 59 | {{if .CitiationExist}} |
60 | | - <div class="flex-item-body"> |
61 | | - {{template "repo/cite/cite_modal" .}} |
62 | | - <a class="flex-text-block muted" id="cite-repo-button"> |
63 | | - {{svg "octicon-cross-reference"}} {{ctx.Locale.Tr "repo.cite_this_repo"}} |
64 | | - </a> |
65 | | - </div> |
| 60 | + {{template "repo/cite/cite_modal" .}} |
| 61 | + <a class="flex-text-block muted" id="cite-repo-button"> |
| 62 | + {{svg "octicon-cross-reference"}} {{ctx.Locale.Tr "repo.cite_this_repo"}} |
| 63 | + </a> |
66 | 64 | {{end}} |
67 | 65 | </div> |
68 | 66 | </div> |
|
0 commit comments