summaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorPanagiotis "Ivory" Vasilopoulos <git@n0toose.net>2023-12-06 20:29:26 +0000
committerGitHub <noreply@github.com>2023-12-06 20:29:26 +0000
commit22cb5b0c17d578bc995a7c99ca96711886a1fd5d (patch)
treec7938033af528caa7a9e89722846c62d97ed7e5f /templates/org
parent1e512b800c0d6ed3fb4ae7ecc8f5ef45d11d7aad (diff)
downloadgitea-22cb5b0c17d578bc995a7c99ca96711886a1fd5d.tar.gz
gitea-22cb5b0c17d578bc995a7c99ca96711886a1fd5d.zip
Improve RSS feed icons (#28368)
- The RSS Feed icons were placed in a proper button, so that it does not look "inconsistent". This also makes the problem of the button being improperly aligned go away. - The icon that shows on user profiles has not been modified because of a lack of better implementation ideas. - Where applicable, the RSS Feed icon was put directly next to the Follow button (right menu), as both functionalities effectively share the same purpose. - Despite the attempt at achieving less inconsistency, a conscious decision to not add any text to those buttons was made, opting for tooltips instead. "Make it present, but not too annoying." - A special exception was made for the Releases pages (which contains text, not a tooltip), where an RSS feed would be particularly beneficial to users. The fact that the RSS functionality is explicitly optional was taken into account, and these improvements were made with public-facing instances (where the feature works best) in mind.
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/home.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index 2bebcc0f87..a84e3efc89 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -9,9 +9,6 @@
{{if .Org.Visibility.IsLimited}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</span>{{end}}
{{if .Org.Visibility.IsPrivate}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</span>{{end}}
</span>
- {{if .EnableFeed}}
- <a class="rss-icon gt-mx-3" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">{{svg "octicon-rss" 24}}</a>
- {{end}}
</div>
{{if $.RenderedDescription}}<div class="render-content markup">{{$.RenderedDescription|Str2html}}</div>{{end}}
<div class="text grey meta">
@@ -23,6 +20,11 @@
</div>
</div>
<div class="right menu">
+ {{if .EnableFeed}}
+ <button class="link-action ui basic label button gt-mr-0" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}" data-url="{{$.Org.HomeLink}}.rss">
+ {{svg "octicon-rss" 24}}
+ </button>
+ {{end}}
<button class="link-action ui basic button gt-mr-0" data-url="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}">
{{if $.IsFollowing}}
{{ctx.Locale.Tr "user.unfollow"}}