Skip to content

A platform for community discussion. Free, open, simple.

FIX: fix/removes broken elements of old dashboard

Joffrey JAFFEUXf8838ac9cd09
diff --git a/app/assets/javascripts/admin/templates/dashboard.hbs b/app/assets/javascripts/admin/templates/dashboard.hbs
index 2d1e6437eee..fe44d20de18 100644
--- a/app/assets/javascripts/admin/templates/dashboard.hbs
+++ b/app/assets/javascripts/admin/templates/dashboard.hbs
@@ -117,27 +117,6 @@
</table>
</div>
- <div class="dashboard-stats">
- <table class="table table-condensed table-hover">
- <thead>
- <tr>
- <th>&nbsp;</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{i18n 'admin.dashboard.uploads'}}</td>
- <td>{{disk_space.uploads_used}} ({{i18n 'admin.dashboard.space_free' size=disk_space.uploads_free}})</td>
- <td>{{#if currentUser.admin}}<a href="{{get-url '/admin/backups'}}">{{i18n 'admin.dashboard.backups'}}</a>{{/if}}</td>
- <td>{{disk_space.backups_used}} ({{i18n 'admin.dashboard.space_free' size=disk_space.backups_free}})</td>
- </tr>
- </tbody>
- </table>
- </div>
-
{{#if showTrafficReport}}
<div class="dashboard-stats">
<table class="table table-condensed table-hover">
diff --git a/app/models/incoming_links_report.rb b/app/models/incoming_links_report.rb
index 8635fcdd90c..e809261fe09 100644
--- a/app/models/incoming_links_report.rb
+++ b/app/models/incoming_links_report.rb
@@ -105,7 +105,7 @@ class IncomingLinksReport
end
def self.report_top_referred_topics(report)
- report.y_titles[:num_clicks] = I18n.t("reports.#{report.type}.num_clicks")
+ report.y_titles[:num_clicks] = I18n.t("reports.#{report.type}.labels.num_clicks")
num_clicks = link_count_per_topic(start_date: report.start_date, end_date: report.end_date, category_id: report.category_id)
num_clicks = num_clicks.to_a.sort_by { |x| x[1] }.last(report.limit || 10).reverse
report.data = []