From ef164d33c28f4456cb98d24932d360a949142d9d Mon Sep 17 00:00:00 2001 From: ktprograms <71804605+ktprograms@users.noreply.github.com> Date: Mon, 25 Apr 2022 04:03:39 +0800 Subject: [PATCH] Add RSS Feed buttons to Repo, User and Org pages (#19370) --- options/locale/locale_en-US.ini | 2 ++ templates/org/home.tmpl | 1 + templates/repo/header.tmpl | 1 + templates/user/profile.tmpl | 1 + web_src/less/_organization.less | 2 ++ web_src/less/_user.less | 7 ++----- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 21bf0c49ea..6725964f53 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -105,6 +105,8 @@ error404 = The page you are trying to reach either does not existGitHub or open a new issue if necessary. diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index c72fc53de5..1fe0b035e6 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -5,6 +5,7 @@
{{.Org.DisplayName}} + {{svg "octicon-rss" 36}} {{if .Org.Visibility.IsLimited}}
{{.i18n.Tr "org.settings.visibility.limited_shortname"}}
{{end}} {{if .Org.Visibility.IsPrivate}}
{{.i18n.Tr "org.settings.visibility.private_shortname"}}
{{end}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 198b05b4ba..588cfc7717 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -13,6 +13,7 @@ {{.Owner.Name}}
/
{{.Name}} + {{svg "octicon-rss" 18}}
{{if .IsTemplate}} {{if .IsPrivate}} diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 34ecf1afe2..6f5efae02e 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -16,6 +16,7 @@
{{if .Owner.FullName}}{{.Owner.FullName}}{{end}} {{.Owner.Name}} + {{svg "octicon-rss" 18}}
    diff --git a/web_src/less/_organization.less b/web_src/less/_organization.less index d86938d56a..b80739671f 100644 --- a/web_src/less/_organization.less +++ b/web_src/less/_organization.less @@ -50,6 +50,8 @@ overflow-wrap: anywhere; .ui.header { + display: flex; + align-items: center; font-size: 36px; margin-bottom: 0; .org-visibility .label { diff --git a/web_src/less/_user.less b/web_src/less/_user.less index 7d8f9b2495..8284022115 100644 --- a/web_src/less/_user.less +++ b/web_src/less/_user.less @@ -3,12 +3,8 @@ .user { &.profile { .ui.card { - .header, - .username { - display: block; - } - .header { + display: block; font-weight: 600; font-size: 1.3rem; margin-top: -.2rem; @@ -17,6 +13,7 @@ .profile-avatar-name { border-top: none; + text-align: center; } .extra.content {