fix folder nav

This commit is contained in:
Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
1 parent 5de334522c
commit 1232dfb248
3 files changed
+12 -6

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<% is_long = folder.name.size > 32 %>
<% icon = folder.default? ? 'folder_star' : 'folder' %>
<a href="<%= folder_path(folder) %>" class="flex h-full flex-col justify-between rounded-2xl py-5 px-6 w-full bg-base-200 before:border-2 before:border-base-300 before:border-dashed before:absolute before:left-0 before:right-0 before:top-0 before:bottom-0 before:hidden before:rounded-2xl relative" data-targets="dashboard-dropzone.folderCards" data-full-name="<%= folder.full_name %>">
<a href="<%= folder_path(folder) %>" class="flex h-full flex-col justify-between rounded-2xl py-5 px-6 w-full bg-base-200 before:border-2 before:border-base-300 before:border-dashed before:absolute before:left-0 before:right-0 before:top-0 before:bottom-0 before:hidden before:rounded-2xl relative" data-targets="dashboard-dropzone.folderCards" data-full-name="<%= folder.full_name %>" data-native-title="<%= folder.name %>" data-native-menu="true">
<% if !is_long %>
<%= svg_icon(icon, class: 'w-6 h-6') %>
<% end %>
+5
View File
@@ -1,4 +1,9 @@
<% content_for(:native_title, @template_folder.name) if turbo_native_app? %>
<% if turbo_native_app? && (can?(:manage, :countless) || current_account.templates.where.not(archived_at: nil).exists?) %>
<native-action data-placement="menu" data-icon="archive">
<a href="<%= templates_archived_index_path %>"><%= t('view_archived') %></a>
</native-action>
<% end %>
<% unless turbo_native_app? %>
<div>
<%= link_to @template_folder.parent_folder ? folder_path(@template_folder.parent_folder) : root_path, class: 'flex items-center' do %>