From 0e11d2a5814b1d6539037b6722c153737ed9de6a Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sat, 21 Jun 2025 17:11:26 +0300 Subject: [PATCH] fix tour link --- app/views/templates_dashboard/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/templates_dashboard/index.html.erb b/app/views/templates_dashboard/index.html.erb index d4bbd8b0..e2f5d061 100644 --- a/app/views/templates_dashboard/index.html.erb +++ b/app/views/templates_dashboard/index.html.erb @@ -56,7 +56,7 @@ <% if @templates.present? %>
<%= render partial: 'templates/template', collection: @templates %> - <% if show_dropzone && (current_user.created_at > 2.weeks.ago || params[:tour] == 'true') && current_user == true_user %> + <% if (show_dropzone && current_user.created_at > 2.weeks.ago && current_user == true_user) || params[:tour] == 'true' %> <% user_config = current_user.user_configs.find_or_initialize_by(key: UserConfig::SHOW_APP_TOUR) %> <% if user_config.new_record? || user_config.value || params[:tour] == 'true' %>