summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-12-01 17:21:19 -0800
committerDessalines <tyhou13@gmx.com>2019-12-01 17:23:52 -0800
commit52ea7a32db439f9d9b0785ee132d312aa386b33e (patch)
tree95d8d160af95305a99b0ae122e12e2678c48841b /ui/src/components/community.tsx
parent8e5c02f96745d7c30d9636124bbd72dae2f31d4b (diff)
Some RSS work.
- Display rss buttons on front end for user, /c/all, and community pages. Fixes #348. - Some clean up and additions to RSS feeds.
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r--ui/src/components/community.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index cfeff085..a8ec9331 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -174,6 +174,13 @@ export class Community extends Component<any, State> {
return (
<div class="mb-2">
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
+ <a
+ href={`${document.location.origin}/feeds/c/${this.state.communityName}.xml`}
+ >
+ <svg class="icon mx-2 text-muted small">
+ <use xlinkHref="#icon-rss">#</use>
+ </svg>
+ </a>
</div>
);
}