]> source.dussan.org Git - gitea.git/commitdiff
Move citiation button to proper place (#29374)
authorwxiaoguang <wxiaoguang@gmail.com>
Sun, 25 Feb 2024 00:13:04 +0000 (08:13 +0800)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2024 00:13:04 +0000 (02:13 +0200)
The citiation button shouldn't be controlled by
DisableDownloadSourceArchives (line 134)

So move it out of that "if" block.

Co-authored-by: Giteabot <teabot@gitea.io>
templates/repo/home.tmpl

index f7c74c9aba85f1f830fe6ece7e5a64a4c7b2c494..2c08fb02d5f2407f67a3f84228c45bda8f8c7e9e 100644 (file)
                                                                        <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.download_zip"}}</a>
                                                                        <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.download_tar"}}</a>
                                                                        <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.bundle" rel="nofollow">{{svg "octicon-package" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.download_bundle"}}</a>
-                                                                       {{if .CitiationExist}}
-                                                                               <a class="item" id="cite-repo-button">{{svg "octicon-cross-reference" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.cite_this_repo"}}</a>
-                                                                       {{end}}
+                                                               {{end}}
+                                                               {{if .CitiationExist}}
+                                                                       <a class="item" id="cite-repo-button">{{svg "octicon-cross-reference" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.cite_this_repo"}}</a>
                                                                {{end}}
                                                                {{range .OpenWithEditorApps}}
                                                                        <a class="item js-clone-url-editor" data-href-template="{{.OpenURL}}">{{.IconHTML}}{{ctx.Locale.Tr "repo.open_with_editor" .DisplayName}}</a>