Skip to content

Commit 839700b

Browse files
committed
don't render anything in tag list if there are no tags
1 parent 41bd63b commit 839700b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/repo/tag/list.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<div class="ui container">
55
{{template "base/alert" .}}
66
{{template "repo/release_tag_header" .}}
7+
{{if .Releases}}
78
<h4 class="ui top attached header">
89
<div class="five wide column tw-flex tw-items-center">
910
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.tags"}}
@@ -57,6 +58,7 @@
5758
</tbody>
5859
</table>
5960
</div>
61+
{{end}}
6062

6163
{{template "base/paginate" .}}
6264
</div>

0 commit comments

Comments
 (0)