mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
dashboard next: minor tweaks
* help texts * renaming of components to dashboard-* * use number formatter * adjust trend position
This commit is contained in:
@@ -3,7 +3,7 @@ import computed from 'ember-addons/ember-computed-decorators';
|
||||
import loadScript from 'discourse/lib/load-script';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ["mini-chart"],
|
||||
classNames: ["dashboard-mini-chart"],
|
||||
|
||||
classNameBindings: ["trend", "oneDataPoint"],
|
||||
|
||||
@@ -2,7 +2,7 @@ import { ajax } from 'discourse/lib/ajax';
|
||||
import computed from 'ember-addons/ember-computed-decorators';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ["mini-table"],
|
||||
classNames: ["dashboard-mini-table"],
|
||||
|
||||
total: null,
|
||||
labels: null,
|
||||
@@ -2,18 +2,19 @@
|
||||
<div class="chart-title">
|
||||
<h3>{{title}}</h3>
|
||||
|
||||
{{d-icon "question-circle"}}
|
||||
{{#if help}}
|
||||
{{d-icon "question-circle" title=help}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="chart-container">
|
||||
|
||||
{{#if oneDataPoint}}
|
||||
<span class="data-point">
|
||||
{{chartData.lastObject.y}}
|
||||
</span>
|
||||
{{else}}
|
||||
<div class="chart-trend {{trend}}">
|
||||
<span>{{total}}</span>
|
||||
<span>{{number total}}</span>
|
||||
|
||||
{{#if trendIcon}}
|
||||
{{d-icon trendIcon}}
|
||||
@@ -19,7 +19,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
{{#each dataset as |data|}}
|
||||
<td>{{data}}</td>
|
||||
<td>{{number data}}</td>
|
||||
{{/each}}
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -9,15 +9,24 @@
|
||||
|
||||
<div class="section-body">
|
||||
<div class="charts">
|
||||
{{mini-chart dataSourceName="signups" startDate=startDate endDate=endDate}}
|
||||
{{mini-chart dataSourceName="topics" startDate=startDate endDate=endDate}}
|
||||
{{dashboard-mini-chart
|
||||
dataSourceName="signups"
|
||||
startDate=startDate
|
||||
endDate=endDate
|
||||
help="admin.dashboard.charts.signups.help"}}
|
||||
|
||||
{{dashboard-mini-chart
|
||||
dataSourceName="topics"
|
||||
startDate=startDate
|
||||
endDate=endDate
|
||||
help="admin.dashboard.charts.topics.help"}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section-columns">
|
||||
<div class="section-column">
|
||||
{{mini-table dataSourceName="users_by_trust_level"}}
|
||||
{{dashboard-mini-table dataSourceName="users_by_trust_level"}}
|
||||
</div>
|
||||
|
||||
<div class="section-column">
|
||||
|
||||
Reference in New Issue
Block a user