summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorTyrone Yeh <tyrone_yeh@draytek.com>2023-05-07 23:44:16 +0800
committerGitHub <noreply@github.com>2023-05-07 23:44:16 +0800
commit1144b1d129de530b2c07dfdfaf55de383cd82212 (patch)
tree24da6cc110d2df310ce2284620cab4e8721ca082 /templates
parent0bb52883eb8f866821fb7cb91e535bb4d051dbfb (diff)
downloadgitea-1144b1d129de530b2c07dfdfaf55de383cd82212.tar.gz
gitea-1144b1d129de530b2c07dfdfaf55de383cd82212.zip
Add goto issue id function (#24479)
for https://github.com/go-gitea/gitea/issues/4109#issuecomment-1527104992 Supports format: `#1234` `Org/Repo#1234` --------- Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/search.tmpl3
-rw-r--r--templates/user/dashboard/issues.tmpl3
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/repo/issue/search.tmpl b/templates/repo/issue/search.tmpl
index cb460eae6f..3e7bf1d9ca 100644
--- a/templates/repo/issue/search.tmpl
+++ b/templates/repo/issue/search.tmpl
@@ -8,7 +8,8 @@
<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 class="ui small icon button" type="submit" aria-label="{{.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>
</div>
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index 8878fe93ca..bf13cf993b 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -78,7 +78,8 @@
<input type="hidden" name="sort" value="{{$.SortType}}">
<input type="hidden" name="state" value="{{$.State}}">
<input name="q" value="{{$.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}...">
- <button class="ui small icon button" type="submit" aria-label="{{.locale.Tr "explore.search"}}">{{svg "octicon-search"}}</button>
+ <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>
</div>
</form>
<!-- Sort -->