From 86546fe63ea1b17cfca0b3b340e8a8a1529596e9 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Sat, 2 Nov 2024 10:24:35 +0100 Subject: feat: Add Search to Releases Page --- templates/repo/release_tag_header.tmpl | 11 ++++++++--- templates/swagger/v1_json.tmpl | 6 ++++++ 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/repo/release_tag_header.tmpl b/templates/repo/release_tag_header.tmpl index dafe9f2fa6..63d0689c50 100644 --- a/templates/repo/release_tag_header.tmpl +++ b/templates/repo/release_tag_header.tmpl @@ -5,15 +5,20 @@
+ {{if .ShowReleaseSearch}} +
+ {{template "shared/search/combo" dict "Value" .Keyword}} +
+ {{end}}
{{if .EnableFeed}} - + {{svg "octicon-rss" 16}} {{ctx.Locale.Tr "rss_feed"}} {{end}} diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index dcf505cc7d..8e64c68f89 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -14163,6 +14163,12 @@ "name": "pre-release", "in": "query" }, + { + "type": "string", + "description": "Search string", + "name": "q", + "in": "query" + }, { "type": "integer", "description": "page number of results to return (1-based)", -- cgit v1.2.3