Files
docuseal/app/views/shared/_native_navbar.html.erb
T
2026-09-23 10:59:54 +03:00

22 lines
1.4 KiB
ERB

<% if signed_in? %>
<native-action data-placement="profile" data-icon="user">
<%= link_to t('profile'), settings_profile_index_path %>
</native-action>
<native-action data-placement="profile" data-icon="settings">
<%= link_to t('settings'), settings_path %>
</native-action>
<native-action data-placement="profile" data-icon="logout" data-native="sign_out" data-label="<%= t('sign_out') %>" data-destructive="true"></native-action>
<% if can?(:create, ::Template) %>
<native-action data-placement="create" data-icon="upload" data-native="upload" data-label="<%= t('upload') %>" data-url="<%= templates_upload_path %>" data-accept="image/*, application/pdf, application/zip, application/json<%= ", #{Templates::CreateAttachments::DOCUMENT_EXTENSIONS.join(', ')}" if Docuseal.advanced_formats? %>"></native-action>
<native-action data-placement="create" data-icon="scan" data-native="scan" data-label="Scan" data-url="<%= templates_upload_path %>"></native-action>
<% if Docuseal.multitenant? %>
<native-action data-placement="create" data-icon="brand_gdrive">
<%= link_to 'Google Drive', new_template_path(modal_tab: 'google_drive'), data: { turbo_frame: :modal } %>
</native-action>
<% end %>
<native-action data-placement="create" data-icon="pencil_plus">
<%= link_to t('create'), new_template_path, data: { turbo_frame: :modal } %>
</native-action>
<% end %>
<% end %>