|
1 | 1 | <form class="ignore-dirty tw-flex tw-flex-1 tw-mt-1" action="{{.RepoLink}}/search" method="get"> |
2 | 2 | <div class="ui small action input tw-flex-1"> |
3 | | - <input name="q" size="10" placeholder="{{ctx.Locale.Tr "search.code_kind"}}"> |
4 | | - {{template "shared/search/button"}} |
| 3 | + <input name="q" size="10" placeholder="{{ctx.Locale.Tr "search.code_kind"}}"> {{template "shared/search/button"}} |
5 | 4 | </div> |
6 | 5 | </form> |
7 | 6 |
|
|
10 | 9 | <div class="flex-item-main"> |
11 | 10 | <div class="flex-item-title">{{ctx.Locale.Tr "repo.repo_desc"}}</div> |
12 | 11 | <div class="flex-item-body"> |
13 | | - {{if and (not .HideRepoInfo) (not .IsBlame)}} |
14 | | - <div class="repo-description tw-break-anywhere tw-gap-2 tw-my-2"> |
| 12 | + <div class="tw-flex tw-flex-col tw-gap-1 tw-mt-2"> |
| 13 | + <div class="repo-description tw-break-anywhere tw-gap-2"> |
15 | 14 | {{- $description := .Repository.DescriptionHTML ctx -}} |
16 | 15 | {{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.repo_no_desc"}}{{end}} |
17 | 16 | </div> |
| 17 | + |
18 | 18 | {{if .Repository.Website}} |
19 | 19 | <a class="flex-text-block" href="{{.Repository.Website}}"> |
20 | 20 | {{svg "octicon-link" 16 "tw-text-text"}} <span class="tw-text-primary">{{.Repository.Website}}</span> |
21 | 21 | </a> |
22 | 22 | {{end}} |
| 23 | + |
23 | 24 | <div id="repo-topics" class="flex-text-block tw-flex-wrap tw-gap-1 tw-my-2 tw-text-text"> |
24 | 25 | {{/* !!!! it SHOULD and MUST match the code in repo-home.ts */}} |
25 | 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}} |
26 | 27 | </div> |
27 | 28 | {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} |
28 | | - <button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button> |
| 29 | + <button id="manage_topic" class="btn interact-fg tw-text-12 tw-mb-2">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button> |
29 | 30 | <div class="ui form tw-hidden tw-my-2" id="topic_edit"> |
30 | 31 | <div class="ui fluid multiple search selection dropdown tw-flex-wrap tw-flex-1"> |
31 | 32 | <input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}"> |
|
41 | 42 | </div> |
42 | 43 | </div> |
43 | 44 | {{end}} |
44 | | - {{end}} |
45 | | - </div> |
46 | | - <div class="flex-item-body"> |
47 | | - <div class="tw-flex tw-flex-col tw-gap-1 tw-mt-2"> |
| 45 | + |
48 | 46 | {{if .ReadmeExist}} |
49 | 47 | <a class="flex-text-block muted" href="{{.TreeLink}}/{{.FileName}}"> |
50 | 48 | {{svg "octicon-book"}} {{ctx.Locale.Tr "readme"}} |
51 | 49 | </a> |
52 | 50 | {{end}} |
| 51 | + |
53 | 52 | {{if .DetectedRepoLicenses}} |
54 | 53 | <a class="flex-text-block muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}"> |
55 | 54 | {{svg "octicon-law"}} {{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}} |
56 | 55 | </a> |
57 | 56 | {{end}} |
| 57 | + |
58 | 58 | {{if .CitiationExist}} |
59 | 59 | {{template "repo/cite/cite_modal" .}} |
60 | 60 | <a class="flex-text-block muted" id="cite-repo-button"> |
|
0 commit comments