This commit is contained in:
Oleksandr Turchyn
2024-09-18 19:47:47 +03:00
committed by Oleksandr Turchyn
parent 3c60fb4ee6
commit e9d728fa4a
132 changed files with 1121 additions and 600 deletions
@@ -22,10 +22,10 @@
</div>
</div>
<div class="form-control">
<%= fff.label :endpoint, 'Endpoint (optional)', class: 'label' %>
<%= fff.label :endpoint, "Endpoint (#{t('optional')})", class: 'label' %>
<%= fff.text_field :endpoint, value: configs['endpoint'], type: :url, class: 'base-input' %>
<label class="label">
<span class="label-text-alt">For AWS S3 compatible APIs like Minio.</span>
<span class="label-text-alt"><%= t('for_aws_s3_compatible_apis_like_minio') %></span>
</label>
</div>
<% end %>
@@ -4,11 +4,13 @@
<div class="alert my-4">
<%= svg_icon('info_circle', class: 'stroke-current flex-shrink-0 w-6 h-6') %>
<div>
<p class="font-bold">Store all files on disk</p>
<p class="font-bold">
<%= t('store_all_files_on_disk') %>
</p>
<p class="text-gray-700">
No configs are needed but make sure your disk is persistent
<%= t('no_configs_are_needed_but_make_sure_your_disk_is_persistent') %>
<br>
<i>(not suitable for Heroku and other PaaS)</i>
<i>(<%= t('not_suitable_for_heroku_and_other_paas') %>)</i>
</p>
</div>
</div>
+4 -2
View File
@@ -1,7 +1,9 @@
<div class="flex flex-wrap space-y-4 md:flex-nowrap md:space-y-0">
<%= render 'shared/settings_nav' %>
<div class="flex-grow max-w-xl mx-auto">
<h1 class="text-4xl font-bold mb-4">Storage</h1>
<h1 class="text-4xl font-bold mb-4">
<%= t('storage') %>
</h1>
<% value = @encrypted_config.value || { 'service' => 'disk' } %>
<% configs = value['configs'] || {} %>
<%= form_for @encrypted_config, url: settings_storage_index_path, method: :post, html: { autocomplete: 'off', class: 'w-full' } do |f| %>
@@ -29,7 +31,7 @@
<%= render 'azure_form', f:, configs:, value: %>
</disable-hidden>
<div class="form-control">
<%= f.button button_title(title: 'Save', disabled_with: 'Saving'), class: 'base-button' %>
<%= f.button button_title(title: t('save'), disabled_with: t('saving')), class: 'base-button' %>
</div>
<% end %>
</div>