mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
- remove inactive user report and replace with posts - clean up internals so grouping by week happens on client - when switching periods old report was not destroyed leading to bugs - calculate trend based on previous interval ... not previous 30 days - show percentages for mau/dau - be more careful about utc date usage - show uniqu and click through rate on search panel - publish key of report with report so we only load the correct one - subscribe earlier in channel in case of concurrency issues
38 lines
906 B
Handlebars
38 lines
906 B
Handlebars
{{#conditional-loading-section isLoading=isLoading title=report.title}}
|
|
<div class="chart-title">
|
|
<h3 title={{report.description}}>
|
|
{{report.title}}
|
|
|
|
{{#if report.description}}
|
|
{{d-icon "question-circle"}}
|
|
{{/if}}
|
|
</h3>
|
|
|
|
<div class="chart-trend {{trend}}">
|
|
{{#if average}}
|
|
<span title="{{report.trendTitle}}">
|
|
{{report.currentAverage}}%
|
|
</span>
|
|
{{else}}
|
|
<span title="{{report.trendTitle}}">
|
|
{{number report.currentTotal noTitle="true"}}
|
|
</span>
|
|
{{/if}}
|
|
|
|
{{#if trendIcon}}
|
|
{{d-icon trendIcon}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chart-container">
|
|
{{#if oneDataPoint}}
|
|
<span class="data-point">
|
|
{{number values.lastObject.y}}
|
|
</span>
|
|
{{else}}
|
|
<canvas class="chart-canvas"></canvas>
|
|
{{/if}}
|
|
</div>
|
|
{{/conditional-loading-section}}
|