summaryrefslogtreecommitdiffstats
path: root/ui/src/components/main.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/main.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/main.tsx')
-rw-r--r--ui/src/components/main.tsx9
1 files changed, 8 insertions, 1 deletions
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>
);
}