mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
native navbar
This commit is contained in:
1 parent
198a599a2b
commit
7a6b4acea6
5 files changed
+37
-7
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<% 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 %>
|
||||
Reference in new issue
Block a user