aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-05-10 23:50:58 +0800
committerGitHub <noreply@github.com>2023-05-10 15:50:58 +0000
commit23ae939ef3ef03848038372de21490725855b5f9 (patch)
treefaaf98dea14e8ac6fd0e60df67f0f94c8bee97d7 /templates/repo/issue
parent54f399c4df7d3470fff570afc145cbec3f0dcd40 (diff)
downloadgitea-23ae939ef3ef03848038372de21490725855b5f9.tar.gz
gitea-23ae939ef3ef03848038372de21490725855b5f9.zip
Improve "goto issue by number" button (#24577)
Follow #24479 ![image](https://user-images.githubusercontent.com/2114189/236694114-c5cb42ff-456d-465a-bcb9-89ed5959d346.png) ![image](https://user-images.githubusercontent.com/2114189/236694119-052e689c-6264-4468-9ab3-0e5c97521bec.png) ![image](https://user-images.githubusercontent.com/2114189/236694139-f8940765-42ce-462d-b49e-50a416cc6f85.png) ![image](https://user-images.githubusercontent.com/2114189/236694154-6d8a000c-9ef3-4d07-af1c-59b0cf8f4d33.png) ![image](https://user-images.githubusercontent.com/2114189/236694166-3bc3e585-7955-44aa-af34-b33ae91e132f.png) --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/search.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/issue/search.tmpl b/templates/repo/issue/search.tmpl
index 3e7bf1d9ca..f24c2dbb7e 100644
--- a/templates/repo/issue/search.tmpl
+++ b/templates/repo/issue/search.tmpl
@@ -8,9 +8,9 @@
<input type="hidden" name="assignee" value="{{$.AssigneeID}}">
<input type="hidden" name="poster" value="{{$.PosterID}}">
<input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}...">
- <button id="hashtag-button" class="ui small icon button gt-hidden" data-tooltip-content="{{.locale.Tr "explore.go_to"}}">{{svg "octicon-hash"}}</button>
- <button id="search-button" class="ui small icon button" aria-label="{{.locale.Tr "explore.search"}}">
- {{svg "octicon-search"}}
- </button>
+ {{if .PageIsIssueList}}
+ <button id="issue-list-quick-goto" class="ui small icon button gt-hidden" data-tooltip-content="{{.locale.Tr "explore.go_to"}}" data-repo-link="{{.RepoLink}}">{{svg "octicon-hash"}}</button>
+ {{end}}
+ <button class="ui small icon button" aria-label="{{.locale.Tr "explore.search"}}">{{svg "octicon-search"}}</button>
</div>
</form>