|
11 | 11 | <div class="flex-item-title"> |
12 | 12 | {{ctx.Locale.Tr "repo.repo_desc"}} |
13 | 13 | </div> |
| 14 | + <div class="flex-item-body"> |
| 15 | + |
14 | 16 | {{if and (not .HideRepoInfo) (not .IsBlame)}} |
15 | | - <div class="flex-item-body repo-description tw-break-anywhere tw-gap-2 tw-my-2"> |
| 17 | + <div class="repo-description tw-break-anywhere tw-gap-2 tw-mt-2"> |
16 | 18 | {{- $description := .Repository.DescriptionHTML ctx -}} |
17 | 19 | {{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.repo_no_desc"}}{{end}} |
| 20 | + {{if .Repository.Website}}{{svg "octicon-link"}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}} |
18 | 21 | </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}} |
24 | 22 | <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-my-2" id="repo-topics"> |
25 | 23 | {{/* !!!! it SHOULD and MUST match the code in issue-home.js */}} |
26 | 24 | {{range .Topics}}<a class="repo-topic ui large label gt-ellipsis" title={{.Name}} href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}} |
|
29 | 27 | <button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button> |
30 | 28 | {{end}} |
31 | 29 | {{end}} |
| 30 | + |
32 | 31 | {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} |
33 | | - <div class="ui form tw-hidden flex-item-body tw-gap-2 tw-my-2" id="topic_edit"> |
| 32 | + <div class="ui form tw-hidden tw-gap-2 tw-my-2" id="topic_edit"> |
34 | 33 | <div class="ui fluid multiple search selection dropdown tw-flex-wrap tw-flex-1"> |
35 | 34 | <input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}"> |
36 | 35 | {{range .Topics}} |
|
45 | 44 | </div> |
46 | 45 | </div> |
47 | 46 | {{end}} |
48 | | - <div class="flex-item-body tw-flex tw-flex-col tw-gap-1 tw-mt-2 tw-items-start"> |
49 | | - {{if .ReadmeExist}} |
| 47 | + |
| 48 | + {{if .ReadmeExist}} |
| 49 | + <div class="tw-mt-2"> |
50 | 50 | <a class="flex-text-block muted" href="{{.TreeLink}}/{{.FileName}}"> |
51 | 51 | {{svg "octicon-book"}} {{ctx.Locale.Tr "readme"}} |
52 | 52 | </a> |
53 | | - {{end}} |
54 | | - {{if .DetectedRepoLicenses}} |
| 53 | + </div> |
| 54 | + {{end}} |
| 55 | + |
| 56 | + {{if .DetectedRepoLicenses}} |
| 57 | + <div> |
55 | 58 | <a class="flex-text-block muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}"> |
56 | 59 | {{svg "octicon-law"}} {{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}} |
57 | 60 | </a> |
58 | | - {{end}} |
59 | | - {{if .CitiationExist}} |
| 61 | + </div> |
| 62 | + {{end}} |
| 63 | + {{if .CitiationExist}} |
| 64 | + <div> |
60 | 65 | {{template "repo/cite/cite_modal" .}} |
61 | 66 | <a class="flex-text-block muted" id="cite-repo-button"> |
62 | 67 | {{svg "octicon-cross-reference"}} {{ctx.Locale.Tr "repo.cite_this_repo"}} |
63 | 68 | </a> |
64 | | - {{end}} |
| 69 | + </div> |
| 70 | + {{end}} |
| 71 | + |
65 | 72 | </div> |
66 | 73 | </div> |
67 | 74 | </div> |
|
0 commit comments