summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-06-13 08:04:40 -0400
committerGitHub <noreply@github.com>2023-06-13 12:04:40 +0000
commit9cef7a4600d96220fb46817bb2efc9f7b7c4a58f (patch)
tree07312db217f1b3495f2460fb5f75708c067a01af /modules
parentc207b94e0c99080fe7f43c3049469883fe4dde15 (diff)
downloadgitea-9cef7a4600d96220fb46817bb2efc9f7b7c4a58f.tar.gz
gitea-9cef7a4600d96220fb46817bb2efc9f7b7c4a58f.zip
Use inline SVG for built-in OAuth providers (#25171) (#25234)
Backport #25171 by @silverwind The plan is that all built-in auth providers use inline SVG for more flexibility in styling and to get the GitHub icon to follow `currentcolor`. This only removes the `public/img/auth` directory and adds the missing svgs to our svg build. It should map the built-in providers to these SVGs and render them. If the user has set a Icon URL, it should render that as an `img` tag instead. ``` gitea-azure-ad gitea-bitbucket gitea-discord gitea-dropbox gitea-facebook gitea-gitea gitea-gitlab gitea-google gitea-mastodon gitea-microsoftonline gitea-nextcloud gitea-twitter gitea-yandex octicon-mark-github ``` GitHub logo is now white again on dark theme: <img width="431" alt="Screenshot 2023-06-12 at 21 45 34" src="https://github.com/go-gitea/gitea/assets/115237/27a43504-d60a-4132-a502-336b25883e4d"> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/svg/svg.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/svg/svg.go b/modules/svg/svg.go
index 071340764e..6db5c7109b 100644
--- a/modules/svg/svg.go
+++ b/modules/svg/svg.go
@@ -62,5 +62,5 @@ func RenderHTML(icon string, others ...interface{}) template.HTML {
}
return template.HTML(svgStr)
}
- return template.HTML("")
+ return ""
}