|
|
|
@ -56,7 +56,7 @@
|
|
|
|
<% if @templates.present? %>
|
|
|
|
<% if @templates.present? %>
|
|
|
|
<div class="grid gap-4 md:grid-cols-3">
|
|
|
|
<div class="grid gap-4 md:grid-cols-3">
|
|
|
|
<%= render partial: 'templates/template', collection: @templates %>
|
|
|
|
<%= 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) %>
|
|
|
|
<% 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' %>
|
|
|
|
<% if user_config.new_record? || user_config.value || params[:tour] == 'true' %>
|
|
|
|
<div class="hidden md:block">
|
|
|
|
<div class="hidden md:block">
|
|
|
|
|