diff options
author | Dessalines <tyhou13@gmx.com> | 2019-12-07 16:39:43 -0800 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-12-07 16:39:43 -0800 |
commit | a29af98e4bc2df045052a935030abe2e31ca22e1 (patch) | |
tree | a2295c1c5217ba9cc9463990b2e67b6354465576 /ui/src/components/inbox.tsx | |
parent | 88402909ff841bb397c461855321a904397120ef (diff) |
Adding RSS feeds for inbox and subscribed. Refactored RSS code.
- Fixes #349
Diffstat (limited to 'ui/src/components/inbox.tsx')
-rw-r--r-- | ui/src/components/inbox.tsx | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index bcde9363..39109a5d 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -92,11 +92,23 @@ export class Inbox extends Component<any, InboxState> { <div class="row"> <div class="col-12"> <h5 class="mb-0"> - <span> - <T i18nKey="inbox_for" interpolation={{ user: user.username }}> - #<Link to={`/u/${user.username}`}>#</Link> - </T> - </span> + <T + class="d-inline" + i18nKey="inbox_for" + interpolation={{ user: user.username }} + > + #<Link to={`/u/${user.username}`}>#</Link> + </T> + <small> + <a + href={`/feeds/inbox/${UserService.Instance.auth}.xml`} + target="_blank" + > + <svg class="icon mx-2 text-muted small"> + <use xlinkHref="#icon-rss">#</use> + </svg> + </a> + </small> </h5> {this.state.replies.length + this.state.mentions.length > 0 && this.state.unreadOrAll == UnreadOrAll.Unread && ( |