From 52ea7a32db439f9d9b0785ee132d312aa386b33e Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 1 Dec 2019 17:21:19 -0800
Subject: 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.
---
 ui/src/components/main.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'ui/src/components/main.tsx')

diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx
index c871db72..403368ab 100644
--- a/ui/src/components/main.tsx
+++ b/ui/src/components/main.tsx
@@ -431,9 +431,16 @@ export class Main extends Component<any, MainState> {
           type_={this.state.type_}
           onChange={this.handleTypeChange}
         />
-        <span class="ml-2">
+        <span class="mx-2">
           <SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
         </span>
+        {this.state.type_ == ListingType.All && (
+          <a href={`${document.location.origin}/feeds/all.xml`}>
+            <svg class="icon mx-1 text-muted small">
+              <use xlinkHref="#icon-rss">#</use>
+            </svg>
+          </a>
+        )}
       </div>
     );
   }
-- 
cgit v1.2.3

