mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
32 lines
807 B
Plaintext
32 lines
807 B
Plaintext
- content_for :page_title do
|
|
= t(:cache_settings)
|
|
|
|
= form_tag main_app.admin_cache_settings_path, :method => :put do
|
|
.field
|
|
= hidden_field_tag 'preferences[enable_products_cache?]', '0'
|
|
= check_box_tag 'preferences[enable_products_cache?]', '1', Spree::Config[:enable_products_cache?]
|
|
= label_tag nil, t('.enable_products_cache')
|
|
.form-buttons
|
|
= button t(:update), 'icon-refresh'
|
|
|
|
%br
|
|
%br
|
|
|
|
%h4= t(:cache_state)
|
|
%br
|
|
%table.index
|
|
%thead
|
|
%tr
|
|
%th= t('.distributor')
|
|
%th= t('.order_cycle')
|
|
%th= t('.status')
|
|
%th= t('.diff')
|
|
%tbody
|
|
- @results.each do |result|
|
|
%tr
|
|
%td= result[:distributor].name
|
|
%td= result[:order_cycle].name
|
|
%td= result[:status] ? t(:ok) : t('.error')
|
|
%td
|
|
%pre= result[:diff].to_s(:text)
|