From ba1c8bdc00aab0e48cd51eaff223e78df06b7c1b Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 23 Jul 2019 20:33:45 -0500 Subject: [PATCH] status updates --- app/views/documents/analysis/_processing.html.erb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/views/documents/analysis/_processing.html.erb b/app/views/documents/analysis/_processing.html.erb index d47982c5..04bcb12f 100644 --- a/app/views/documents/analysis/_processing.html.erb +++ b/app/views/documents/analysis/_processing.html.erb @@ -94,4 +94,15 @@ - \ No newline at end of file + + +
+ <%= link_to 'Refresh page', analysis_document_path(analysis.document), class: "btn #{Document.color} white-text" %> +
+

+ <% if analysis.progress > 0 %> + Your analysis is currently processing. + <% else %> + Your analysis was queued <%= time_ago_in_words analysis.created_at %> ago. + <% end %> +