summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-09-12 11:08:46 +0200
committerGitHub <noreply@github.com>2022-09-12 17:08:46 +0800
commitafdab9d8d495590f215f9a2a54d925ed72ad75d0 (patch)
treedcb46abb69f22c1a85ba4d415c544f084e00f1ba /templates/repo/issue
parentfe73246cf93628cfc7abf096fb540b2f532b4507 (diff)
downloadgitea-afdab9d8d495590f215f9a2a54d925ed72ad75d0.tar.gz
gitea-afdab9d8d495590f215f9a2a54d925ed72ad75d0.zip
Remove fomantic image module (#21145)
Remove this small, but unnecessary [module](https://fomantic-ui.com/elements/image.html) and use `img` selector over previous `.image`. Did a few tests, could not notice any visual regression. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/view_content/attachments.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/issue/view_content/attachments.tmpl b/templates/repo/issue/view_content/attachments.tmpl
index 150779531d..86696ec62b 100644
--- a/templates/repo/issue/view_content/attachments.tmpl
+++ b/templates/repo/issue/view_content/attachments.tmpl
@@ -11,9 +11,9 @@
{{if not (containGeneric $.Content .UUID)}}
{{$hasThumbnails = true}}
{{end}}
- <span class="ui image">{{svg "octicon-file"}}</span>
+ {{svg "octicon-file"}}
{{else}}
- <span class="ui image">{{svg "octicon-desktop-download"}}</span>
+ {{svg "octicon-desktop-download"}}
{{end}}
<span><strong>{{.Name}}</strong></span>
</a>
@@ -26,12 +26,12 @@
{{if $hasThumbnails}}
<div class="ui clearing divider"></div>
- <div class="ui small images thumbnails">
+ <div class="ui small thumbnails">
{{- range .Attachments -}}
{{if FilenameIsImage .Name}}
{{if not (containGeneric $.Content .UUID)}}
<a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
- <img class="ui image" src="{{.DownloadURL}}" title='{{$.ctx.locale.Tr "repo.issues.attachment.open_tab" .Name}}'>
+ <img src="{{.DownloadURL}}" title='{{$.ctx.locale.Tr "repo.issues.attachment.open_tab" .Name}}'>
</a>
{{end}}
{{end}}