- <%= render 'shared/logo', width: "100", height: "100" %>
+ <%= render 'shared/logo', width: '100', height: '100' %>
DocuSeal
diff --git a/app/views/shared/_button_title.html.erb b/app/views/shared/_button_title.html.erb
index d66746f9..05727d78 100644
--- a/app/views/shared/_button_title.html.erb
+++ b/app/views/shared/_button_title.html.erb
@@ -1,6 +1,6 @@
- <%= icon if icon %>
+ <%= icon %>
<%= title %>
diff --git a/app/views/shared/_pagination.html.erb b/app/views/shared/_pagination.html.erb
index 18588d09..3ff8358c 100644
--- a/app/views/shared/_pagination.html.erb
+++ b/app/views/shared/_pagination.html.erb
@@ -6,7 +6,7 @@
<% if @pagy.prev %>
- <%== link.call(@pagy.prev, "«", 'class="join-item btn min-h-full h-10"') %>
+ <%== link.call(@pagy.prev, '«', 'class="join-item btn min-h-full h-10"') %>
<% else %>
«
<% end %>
@@ -14,7 +14,7 @@
Page <%= @pagy.page %>
<% if @pagy.next %>
- <%== link.call(@pagy.next, "»", 'class="join-item btn min-h-full h-10"') %>
+ <%== link.call(@pagy.next, '»', 'class="join-item btn min-h-full h-10"') %>
<% else %>
»
<% end %>
diff --git a/app/views/shared/_settings_nav.html.erb b/app/views/shared/_settings_nav.html.erb
index 06c1c112..0385b6e9 100644
--- a/app/views/shared/_settings_nav.html.erb
+++ b/app/views/shared/_settings_nav.html.erb
@@ -4,19 +4,19 @@
- <%= link_to 'Profile', settings_profile_index_path, class: "text-base hover:bg-base-300" %>
+ <%= link_to 'Profile', settings_profile_index_path, class: 'text-base hover:bg-base-300' %>
- <%= link_to 'Email', settings_email_index_path, class: "text-base hover:bg-base-300" %>
+ <%= link_to 'Email', settings_email_index_path, class: 'text-base hover:bg-base-300' %>
- <%= link_to 'Storage', settings_storage_index_path, class: "text-base hover:bg-base-300" %>
+ <%= link_to 'Storage', settings_storage_index_path, class: 'text-base hover:bg-base-300' %>
- <%= link_to 'eSign', settings_esign_index_path, class: "text-base hover:bg-base-300" %>
+ <%= link_to 'eSign', settings_esign_index_path, class: 'text-base hover:bg-base-300' %>
- <%= link_to 'Team', settings_users_path, class: "text-base hover:bg-base-300" %>
+ <%= link_to 'Team', settings_users_path, class: 'text-base hover:bg-base-300' %>
diff --git a/app/views/start_form/show.html.erb b/app/views/start_form/show.html.erb
index 58dfd599..177e7a68 100644
--- a/app/views/start_form/show.html.erb
+++ b/app/views/start_form/show.html.erb
@@ -6,7 +6,7 @@
- <%= render 'shared/logo', width: "50px", height: "50px"%>
+ <%= render 'shared/logo', width: '50px', height: '50px' %>
DocuSeal
@@ -16,7 +16,7 @@
<%= fff.label :container, class: 'label' %>
- <%= fff.text_field :container, value: configs['container'], required: true , class: 'base-input' %>
+ <%= fff.text_field :container, value: configs['container'], required: true, class: 'base-input' %>
diff --git a/app/views/storage_settings/_google_cloud_form.html.erb b/app/views/storage_settings/_google_cloud_form.html.erb
index d031aa2d..c8bdc44f 100644
--- a/app/views/storage_settings/_google_cloud_form.html.erb
+++ b/app/views/storage_settings/_google_cloud_form.html.erb
@@ -8,7 +8,7 @@
<%= fff.label :bucket, class: 'label' %>
- <%= fff.text_field :bucket, value: value['service'] == 'google' ? configs['bucket'] : '', required: true , class: 'base-input' %>
+ <%= fff.text_field :bucket, value: value['service'] == 'google' ? configs['bucket'] : '', required: true, class: 'base-input' %>
- <% colors = ['bg-red-500', 'bg-sky-500', 'bg-emerald-500', 'bg-yellow-300', 'bg-purple-600'] %>
+ <% colors = %w[bg-red-500 bg-sky-500 bg-emerald-500 bg-yellow-300 bg-purple-600] %>
<% submitter_fields_index = @submission.template.fields.group_by { |f| f['submitter_uuid'] } %>
<% @submission.template.submitters.each_with_index do |item, index| %>
<% submitter = @submission.submitters.find { |e| e.uuid == item['uuid'] } %>
@@ -108,7 +108,7 @@
<% elsif field['type'] == 'checkbox' %>
- <%= svg_icon('check', class: "w-6 h-6") %>
+ <%= svg_icon('check', class: 'w-6 h-6') %>
<% elsif field['type'] == 'date' %>
<%= l(Date.parse(value)) %>
<% else %>
diff --git a/app/views/submit_form/completed.html.erb b/app/views/submit_form/completed.html.erb
index eaacef55..0d84d784 100644
--- a/app/views/submit_form/completed.html.erb
+++ b/app/views/submit_form/completed.html.erb
@@ -4,7 +4,7 @@
- <%= render 'shared/logo', width: "50px", height: "50px"%>
+ <%= render 'shared/logo', width: '50px', height: '50px' %>
DocuSeal
@@ -13,7 +13,7 @@
- <%- if @submissions.any? %>
+ <% if @submissions.any? %>
@@ -87,7 +87,7 @@
<% end %>
-
+ |
<%= link_to 'View', submission_path(submission), title: 'View', class: 'btn btn-outline btn-xs' %>
<%= button_to 'Remove', submission_path(submission), class: 'btn btn-outline btn-error btn-xs', title: 'Delete', method: :delete, data: { turbo_confirm: 'Are you sure?' } %>
|