|
|
|
@ -43,22 +43,23 @@
|
|
|
|
|
{{end}}
|
|
|
|
|
{{if .ReadmeExist}}
|
|
|
|
|
<div class="flex-item-body tw-mt-2">
|
|
|
|
|
<a class="tw-flex tw-items-center tw-gap-2 muted" href="{{.TreeLink}}/{{.FileName}}">
|
|
|
|
|
{{svg "octicon-book"}}{{ctx.Locale.Tr "readme"}}
|
|
|
|
|
<a class="flex-text-block muted" href="{{.TreeLink}}/{{.FileName}}">
|
|
|
|
|
{{svg "octicon-book"}} {{ctx.Locale.Tr "readme"}}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{if .DetectedRepoLicenses}}
|
|
|
|
|
<div class="flex-item-body">
|
|
|
|
|
<a class="tw-flex tw-items-center tw-gap-2 muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}">
|
|
|
|
|
{{svg "octicon-law"}}{{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}}
|
|
|
|
|
<a class="flex-text-block muted" href="{{.RepoLink}}/src/{{.Repository.DefaultBranch}}/{{PathEscapeSegments .LicenseFileName}}" title="{{StringUtils.Join .DetectedRepoLicenses ", "}}">
|
|
|
|
|
{{svg "octicon-law"}} {{if eq (len .DetectedRepoLicenses) 1}}{{index .DetectedRepoLicenses 0}}{{else}}{{ctx.Locale.Tr "repo.multiple_licenses"}}{{end}}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{if .CitiationExist}}
|
|
|
|
|
<div class="flex-item-body">
|
|
|
|
|
<a class="tw-flex tw-items-center tw-gap-2 muted" id="cite-repo-button">
|
|
|
|
|
{{svg "octicon-cross-reference"}}{{ctx.Locale.Tr "repo.cite_this_repo"}}
|
|
|
|
|
{{template "repo/cite/cite_modal" .}}
|
|
|
|
|
<a class="flex-text-block muted" id="cite-repo-button">
|
|
|
|
|
{{svg "octicon-cross-reference"}} {{ctx.Locale.Tr "repo.cite_this_repo"}}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|
|
|
|
|