mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-07 14:22:12 +00:00
merge
This commit is contained in:
commit
72b5ab50c5
@ -1,9 +1,17 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { concat } from "@ember/helper";
|
||||
|
||||
export default class FavoriteCategories extends Component {
|
||||
<template>
|
||||
<div class="rewind-report-page">
|
||||
FavoriteCategories
|
||||
<div class="rewind-report-page -favorite-categories">
|
||||
<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>
|
||||
</template>
|
||||
}
|
||||
|
@ -1,9 +1,17 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { concat } from "@ember/helper";
|
||||
|
||||
export default class FavoriteTags extends Component {
|
||||
<template>
|
||||
<div class="rewind-report-page">
|
||||
FavoriteTags
|
||||
<div class="rewind-report-page -favorite-tags">
|
||||
<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>
|
||||
</template>
|
||||
}
|
||||
|
@ -121,6 +121,10 @@ export default class Rewind extends Component {
|
||||
<BestTopics @report={{report}} />
|
||||
{{else if (eq report.identifier "activity-calendar")}}
|
||||
<ActivityCalendar @report={{report}} />
|
||||
{{else if (eq report.identifier "favorite-tags")}}
|
||||
<FavoriteTags @report={{report}} />
|
||||
{{else if (eq report.identifier "favorite-categories")}}
|
||||
<FavoriteCategories @report={{report}} />
|
||||
{{/if}}
|
||||
{{!-- {{else if (eq report.identifier "fbff")}}
|
||||
<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 {
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user