parent
0e334c0546
commit
841197e428
3 changed files with 12 additions and 3 deletions
5
ui/src/components/community.tsx
vendored
5
ui/src/components/community.tsx
vendored
|
@ -175,7 +175,10 @@ export class Community extends Component<any, State> {
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
|
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
|
||||||
<a
|
<a
|
||||||
href={`${document.location.origin}/feeds/c/${this.state.communityName}.xml`}
|
href={`/feeds/c/${this.state.communityName}.xml?sort=${
|
||||||
|
SortType[this.state.sort]
|
||||||
|
}`}
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
<svg class="icon mx-2 text-muted small">
|
<svg class="icon mx-2 text-muted small">
|
||||||
<use xlinkHref="#icon-rss">#</use>
|
<use xlinkHref="#icon-rss">#</use>
|
||||||
|
|
5
ui/src/components/main.tsx
vendored
5
ui/src/components/main.tsx
vendored
|
@ -435,7 +435,10 @@ export class Main extends Component<any, MainState> {
|
||||||
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
|
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
|
||||||
</span>
|
</span>
|
||||||
{this.state.type_ == ListingType.All && (
|
{this.state.type_ == ListingType.All && (
|
||||||
<a href={`${document.location.origin}/feeds/all.xml`}>
|
<a
|
||||||
|
href={`/feeds/all.xml?sort=${SortType[this.state.sort]}`}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
<svg class="icon mx-1 text-muted small">
|
<svg class="icon mx-1 text-muted small">
|
||||||
<use xlinkHref="#icon-rss">#</use>
|
<use xlinkHref="#icon-rss">#</use>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
5
ui/src/components/user.tsx
vendored
5
ui/src/components/user.tsx
vendored
|
@ -250,7 +250,10 @@ export class User extends Component<any, UserState> {
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<a
|
<a
|
||||||
href={`${document.location.origin}/feeds/u/${this.state.username}.xml`}
|
href={`/feeds/u/${this.state.username}.xml?sort=${
|
||||||
|
SortType[this.state.sort]
|
||||||
|
}`}
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
<svg class="icon mx-2 text-muted small">
|
<svg class="icon mx-2 text-muted small">
|
||||||
<use xlinkHref="#icon-rss">#</use>
|
<use xlinkHref="#icon-rss">#</use>
|
||||||
|
|
Loading…
Reference in a new issue