From e24b7045719948f7bc9e77470bc5da5955861f09 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 19 Sep 2018 22:57:45 -0400 Subject: [PATCH] Added qbo partial views --- app/views/customers/index.html.erb | 2 +- app/views/qbo/_last_sync.html.erb | 1 + app/views/qbo/_stats.html.erb | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 app/views/qbo/_last_sync.html.erb create mode 100644 app/views/qbo/_stats.html.erb 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' %>