mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-08 06:32:46 +00:00
favorite tags/categories
This commit is contained in:
parent
9847ecfe6e
commit
f28f894b97
@ -1,9 +1,17 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
|
import { concat } from "@ember/helper";
|
||||||
|
|
||||||
export default class FavoriteCategories extends Component {
|
export default class FavoriteCategories extends Component {
|
||||||
<template>
|
<template>
|
||||||
<div class="rewind-report-page">
|
<div class="rewind-report-page -favorite-categories">
|
||||||
FavoriteCategories
|
<h3 class="rewind-report-title">Your favorite categories</h3>
|
||||||
|
<div class="rewind-report-container">
|
||||||
|
{{#each @report.data as |data|}}
|
||||||
|
<div class="rewind-card">
|
||||||
|
<a href={{concat "/c/-/" data.category_id}}>{{data.name}}</a>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,17 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
|
import { concat } from "@ember/helper";
|
||||||
|
|
||||||
export default class FavoriteTags extends Component {
|
export default class FavoriteTags extends Component {
|
||||||
<template>
|
<template>
|
||||||
<div class="rewind-report-page">
|
<div class="rewind-report-page -favorite-tags">
|
||||||
FavoriteTags
|
<h3 class="rewind-report-title">Your favorite tags</h3>
|
||||||
|
<div class="rewind-report-container">
|
||||||
|
{{#each @report.data as |data|}}
|
||||||
|
<div class="rewind-card">
|
||||||
|
<a href={{concat "/tag/-/" data.name}}>{{data.name}}</a>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
}
|
}
|
||||||
|
@ -121,6 +121,10 @@ export default class Rewind extends Component {
|
|||||||
<BestTopics @report={{report}} />
|
<BestTopics @report={{report}} />
|
||||||
{{else if (eq report.identifier "activity-calendar")}}
|
{{else if (eq report.identifier "activity-calendar")}}
|
||||||
<ActivityCalendar @report={{report}} />
|
<ActivityCalendar @report={{report}} />
|
||||||
|
{{else if (eq report.identifier "favorite-tags")}}
|
||||||
|
<FavoriteTags @report={{report}} />
|
||||||
|
{{else if (eq report.identifier "favorite-categories")}}
|
||||||
|
<FavoriteCategories @report={{report}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{!-- {{else if (eq report.identifier "fbff")}}
|
{{!-- {{else if (eq report.identifier "fbff")}}
|
||||||
<FBFF @report={{report}} />
|
<FBFF @report={{report}} />
|
||||||
|
2
assets/stylesheets/common/favorite-categories.scss
Normal file
2
assets/stylesheets/common/favorite-categories.scss
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.-favorite-categories {
|
||||||
|
}
|
2
assets/stylesheets/common/favorite-tags.scss
Normal file
2
assets/stylesheets/common/favorite-tags.scss
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.-favorite-tags {
|
||||||
|
}
|
@ -6,4 +6,6 @@
|
|||||||
@import "activity-calendar";
|
@import "activity-calendar";
|
||||||
@import "best-posts";
|
@import "best-posts";
|
||||||
@import "best-topics";
|
@import "best-topics";
|
||||||
|
@import "favorite-tags";
|
||||||
|
@import "favorite-categories";
|
||||||
@import "blobs";
|
@import "blobs";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user