From f33cf24a6713fed5a6a5c76c9be1fe601fbbbfe4 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 8 Jul 2019 17:42:58 -0500 Subject: [PATCH] show disabled option for non-premium users --- app/views/documents/components/_smart_sidebar.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/documents/components/_smart_sidebar.html.erb b/app/views/documents/components/_smart_sidebar.html.erb index 143c811a..4e5b5782 100644 --- a/app/views/documents/components/_smart_sidebar.html.erb +++ b/app/views/documents/components/_smart_sidebar.html.erb @@ -56,6 +56,15 @@ <% end %> + <% else %> + <%= link_to subscription_path, class: "halfway-fab waves-effect waves-light", style: 'width: 100%' do %> +
+
+ bar_chart + Analyze document +
+
+ <% end %> <% end %> <% end %>