Skip to content

Commit 8d91708

Browse files
committed
Add RSS Feed buttons to Repo, User and Org pages
1 parent d906858 commit 8d91708

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ error404 = The page you are trying to reach either <strong>does not exist</stron
105105

106106
never = Never
107107

108+
rss_feed = RSS Feed
109+
108110
[error]
109111
occurred = An error occurred
110112
report_message = If you are sure this is a Gitea bug, please search for issues on <a href="https://github.com/go-gitea/gitea/issues" target="_blank">GitHub</a> or open a new issue if necessary.

templates/org/home.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<div id="org-info">
66
<div class="ui header">
77
{{.Org.DisplayName}}
8+
<a href="{{.Org.HomeLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{.i18n.Tr "rss_feed"}}" data-position="top center">{{svg "octicon-rss" 36}}</i></a>
89
<span class="org-visibility">
910
{{if .Org.Visibility.IsLimited}}<div class="ui large basic horizontal label">{{.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
1011
{{if .Org.Visibility.IsPrivate}}<div class="ui large basic horizontal label">{{.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}

templates/repo/header.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
1414
<div class="mx-2">/</div>
1515
<a href="{{$.RepoLink}}">{{.Name}}</a>
16+
<a href="{{$.RepoLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{$.i18n.Tr "rss_feed"}}" data-position="top center">{{svg "octicon-rss" 18}}</i></a>
1617
<div class="labels df ac fw">
1718
{{if .IsTemplate}}
1819
{{if .IsPrivate}}

templates/user/profile.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<div class="content word-break profile-avatar-name">
1717
{{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
1818
<span class="username text center">{{.Owner.Name}}</span>
19+
<a href="{{.Owner.HomeLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{.i18n.Tr "rss_feed"}}" data-position="bottom center">{{svg "octicon-rss" 18}}</i></a>
1920
</div>
2021
<div class="extra content word-break">
2122
<ul>

web_src/less/_organization.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
overflow-wrap: anywhere;
5151

5252
.ui.header {
53+
display: flex;
54+
align-items: center;
5355
font-size: 36px;
5456
margin-bottom: 0;
5557
.org-visibility .label {

web_src/less/_user.less

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
.user {
44
&.profile {
55
.ui.card {
6-
.header,
7-
.username {
8-
display: block;
9-
}
10-
116
.header {
7+
display: block;
128
font-weight: 600;
139
font-size: 1.3rem;
1410
margin-top: -.2rem;
@@ -17,6 +13,7 @@
1713

1814
.profile-avatar-name {
1915
border-top: none;
16+
text-align: center;
2017
}
2118

2219
.extra.content {

0 commit comments

Comments
 (0)