The JavaScript required to display the chart wasn't loaded on the admin stats page. We're not adding a test because we're going to move the budgets graph to a different page on the pull request containing this commit. Note we're changing the "Go back" link, since using a turbolinks refresh broke this link when using the Chromium browser. Besides, there was an inconsistency where some of the "Go back" links in admin stats pointed to the admin stats page but other links pointed to `:back`.
22 lines
672 B
Plaintext
22 lines
672 B
Plaintext
<%= back_link_to admin_stats_path %>
|
|
|
|
<h2><%= t("admin.stats.direct_messages.title") %></h2>
|
|
|
|
<div class="stats">
|
|
<div class="row stats-numbers">
|
|
<div class="small-12 medium-3 column">
|
|
<p class="featured">
|
|
<%= t("admin.stats.direct_messages.total") %><br>
|
|
<span id="direct_messages_count" class="number"><%= @direct_messages %></span>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="small-12 medium-6 column end">
|
|
<p>
|
|
<%= t("admin.stats.direct_messages.users_who_have_sent_message") %><br>
|
|
<span id="users_who_have_sent_message_count" class="number"><%= @users_who_have_sent_message %></span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|