aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorBruno Sofiato <bruno.sofiato@gmail.com>2024-09-17 15:33:11 -0300
committerGitHub <noreply@github.com>2024-09-18 02:33:11 +0800
commit7dde3e64894edf9949f5199c0d1084bb3015cac9 (patch)
tree9f4ca6191a46ea960e258ae500ecaa8bc0eb1f6f /templates/repo
parentf528df944bb9436afcb9272add2ee0cccefbdb55 (diff)
downloadgitea-7dde3e64894edf9949f5199c0d1084bb3015cac9.tar.gz
gitea-7dde3e64894edf9949f5199c0d1084bb3015cac9.zip
Included tag search capabilities (#32045)
Resolves #31998 The first screenshot shows the tag page without any filter being applied: ![image](https://github.com/user-attachments/assets/eac0e51c-9e48-42b2-bb1c-a25896ca40cb) The second one, shows the page when the given filter returns no tag: ![image](https://github.com/user-attachments/assets/98df191e-1a7b-4947-b0ef-4987a0293c3e) The last one shows a single tag being filtered: ![image](https://github.com/user-attachments/assets/79c7e05e-8c86-4f06-b17e-15818b7b9291) Signed-off-by: Bruno Sofiato <bruno.sofiato@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/tag/list.tmpl16
1 files changed, 12 insertions, 4 deletions
diff --git a/templates/repo/tag/list.tmpl b/templates/repo/tag/list.tmpl
index 354808ed2e..eac846da7d 100644
--- a/templates/repo/tag/list.tmpl
+++ b/templates/repo/tag/list.tmpl
@@ -4,14 +4,19 @@
<div class="ui container">
{{template "base/alert" .}}
{{template "repo/release_tag_header" .}}
- {{if .Releases}}
<h4 class="ui top attached header">
<div class="five wide column tw-flex tw-items-center">
- {{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.tags"}}
+ {{.TagCount}} {{ctx.Locale.Tr "repo.release.tags"}}
</div>
</h4>
{{$canReadReleases := $.Permission.CanRead ctx.Consts.RepoUnitTypeReleases}}
+ <div class="ui attached segment">
+ <form class="ignore-dirty" method="get">
+ {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.tag_kind") "Tooltip" (ctx.Locale.Tr "search.tag_tooltip")}}
+ </form>
+ </div>
<div class="ui attached table segment">
+ {{if .Releases}}
<table class="ui very basic striped fixed table single line" id="tags-table">
<tbody class="tag-list">
{{range $idx, $release := .Releases}}
@@ -57,9 +62,12 @@
{{end}}
</tbody>
</table>
+ {{else}}
+ {{if .NumTags}}
+ <p class="tw-p-4">{{ctx.Locale.Tr "no_results_found"}}</p>
+ {{end}}
+ {{end}}
</div>
- {{end}}
-
{{template "base/paginate" .}}
</div>
</div>