diff --git a/app/views/customers/index.html.erb b/app/views/customers/index.html.erb index 1597c02..9461c61 100644 --- a/app/views/customers/index.html.erb +++ b/app/views/customers/index.html.erb @@ -20,5 +20,5 @@ <% end %>
- <%= Customer.count %> Customers - Last Sync: <%= Qbo.last_sync if Qbo.exists? %> + <%= render :partial => 'qbo/stats' %>
diff --git a/app/views/qbo/_last_sync.html.erb b/app/views/qbo/_last_sync.html.erb new file mode 100644 index 0000000..f040537 --- /dev/null +++ b/app/views/qbo/_last_sync.html.erb @@ -0,0 +1 @@ +Last Sync: <%= Qbo.last_sync if Qbo.exists? %> diff --git a/app/views/qbo/_stats.html.erb b/app/views/qbo/_stats.html.erb new file mode 100644 index 0000000..0fb334f --- /dev/null +++ b/app/views/qbo/_stats.html.erb @@ -0,0 +1 @@ +<%= Customer.count %> Customers - <%= render :partial => 'qbo/last_sync' %>