From c2ce45668cf9d253af22bc339b3f3ca30fded102 Mon Sep 17 00:00:00 2001
From: Arpit Jalan <arpit@techapj.com>
Date: Thu, 19 Feb 2015 01:08:52 +0530
Subject: [PATCH] UX: change user visits stat position

---
 .../javascripts/admin/templates/dashboard.hbs   | 17 +----------------
 .../templates/reports/per_day_counts_report.hbs |  1 +
 config/locales/server.en.yml                    |  2 +-
 3 files changed, 3 insertions(+), 17 deletions(-)

diff --git a/app/assets/javascripts/admin/templates/dashboard.hbs b/app/assets/javascripts/admin/templates/dashboard.hbs
index 4fe9b1334..74a508fe6 100644
--- a/app/assets/javascripts/admin/templates/dashboard.hbs
+++ b/app/assets/javascripts/admin/templates/dashboard.hbs
@@ -51,6 +51,7 @@
         </tr>
       </thead>
       {{#unless loading}}
+        {{ render 'admin/templates/reports/per_day_counts_report' visits tagName="tbody"}}
         {{ render 'admin_report_counts' signups }}
         {{ render 'admin_report_counts' topics }}
         {{ render 'admin_report_counts' posts }}
@@ -106,22 +107,6 @@
     </table>
   </div>
 
-  <div class="dashboard-stats">
-    <table class="table table-condensed table-hover">
-      <thead>
-        <tr>
-          <th>&nbsp;</th>
-          <th>{{i18n 'admin.dashboard.reports.today'}}</th>
-          <th>{{i18n 'admin.dashboard.reports.yesterday'}}</th>
-          <th>{{i18n 'admin.dashboard.reports.7_days_ago'}}</th>
-          <th>{{i18n 'admin.dashboard.reports.30_days_ago'}}</th>
-        </tr>
-      </thead>
-      {{#unless loading}}
-        {{ render 'admin/templates/reports/per_day_counts_report' visits tagName="tbody"}}
-      {{/unless}}
-    </table>
-  </div>
   <div class="dashboard-stats">
     <table class="table table-condensed table-hover">
       <thead>
diff --git a/app/assets/javascripts/admin/templates/reports/per_day_counts_report.hbs b/app/assets/javascripts/admin/templates/reports/per_day_counts_report.hbs
index abd92d27f..bc025cdf8 100644
--- a/app/assets/javascripts/admin/templates/reports/per_day_counts_report.hbs
+++ b/app/assets/javascripts/admin/templates/reports/per_day_counts_report.hbs
@@ -4,4 +4,5 @@
   <td class="value">{{yesterdayCount}}</td>
   <td class="value">{{sevenDaysAgoCount}}</td>
   <td class="value">{{thirtyDaysAgoCount}}</td>
+  <td class="value"></td>
 </tr>
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 0569ea615..97a73223e 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -564,7 +564,7 @@ en:
       xaxis: "Day"
       yaxis: "Number of visits"
     signups:
-      title: "Users"
+      title: "New Users"
       xaxis: "Day"
       yaxis: "Number of new users"
     topics: