@ -8,7 +8,7 @@
<div class="gt-f1 gt-p-3">
<div class="gt-f1 gt-p-3">
<a target="_blank" rel="noopener noreferrer" href=" {{ .DownloadURL }} " title=" {{ ctx .Locale .Tr "repo.issues.attachment.open_tab" .Name }} ">
<a target="_blank" rel="noopener noreferrer" href=" {{ .DownloadURL }} " title=" {{ ctx .Locale .Tr "repo.issues.attachment.open_tab" .Name }} ">
{{ if FilenameIsImage .Name }}
{{ if FilenameIsImage .Name }}
{{ if not ( StringUtils .Contains ( StringUtils .ToString $ . Content) .UUID ) }}
{{ if not ( StringUtils .Contains ( StringUtils .ToString $ . Rendered Content) .UUID ) }}
{{ $ hasThumbnails = true }}
{{ $ hasThumbnails = true }}
{{ end }}
{{ end }}
{{ svg "octicon-file" }}
{{ svg "octicon-file" }}
@ -29,7 +29,7 @@
<div class="ui small thumbnails">
<div class="ui small thumbnails">
{{ - range .Attachments - }}
{{ - range .Attachments - }}
{{ if FilenameIsImage .Name }}
{{ if FilenameIsImage .Name }}
{{ if not ( StringUtils .Contains ( StringUtils .ToString $ . Content) .UUID ) }}
{{ if not ( StringUtils .Contains ( StringUtils .ToString $ . Rendered Content) .UUID ) }}
<a target="_blank" rel="noopener noreferrer" href=" {{ .DownloadURL }} ">
<a target="_blank" rel="noopener noreferrer" href=" {{ .DownloadURL }} ">
<img alt=" {{ .Name }} " src=" {{ .DownloadURL }} " title=" {{ ctx .Locale .Tr "repo.issues.attachment.open_tab" .Name }} ">
<img alt=" {{ .Name }} " src=" {{ .DownloadURL }} " title=" {{ ctx .Locale .Tr "repo.issues.attachment.open_tab" .Name }} ">
</a>
</a>