app/views/workarea/admin/reports/reference.html.haml in workarea-admin-3.4.45 vs app/views/workarea/admin/reports/reference.html.haml in workarea-admin-3.5.0.beta.1
- old
+ new
@@ -7,82 +7,41 @@
%h1.heading.heading--no-margin= t('workarea.admin.reports.reference.title')
%p= t('workarea.admin.reports.reference.intro')
.view__container.view__container--narrow
.section
- %h2.align-center= t('workarea.admin.reports.reference.terms')
+ %h2.align-center= t('workarea.admin.reports.reference.terms_title')
%table
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.average_order_value')
- %td= t('workarea.admin.reports.reference.average_order_value_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.discounts')
- %td= t('workarea.admin.reports.reference.discounts_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.first_time_orders')
- %td= t('workarea.admin.reports.reference.first_time_orders_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.merchandise')
- %td= t('workarea.admin.reports.reference.merchandise_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.orders')
- %td= t('workarea.admin.reports.reference.orders_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.returning_orders')
- %td= t('workarea.admin.reports.reference.returning_orders_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.revenue')
- %td= t('workarea.admin.reports.reference.revenue_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.search_id')
- %td= t('workarea.admin.reports.reference.search_id_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.searches')
- %td= t('workarea.admin.reports.reference.searches_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.shipping')
- %td= t('workarea.admin.reports.reference.shipping_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.tax')
- %td= t('workarea.admin.reports.reference.tax_description')
- %tr
- %td
- %strong= t('workarea.admin.reports.reference.units_sold')
- %td= t('workarea.admin.reports.reference.units_sold_description')
+ - @terms.each do |term|
+ %tr
+ %td
+ %strong= term.name
+ %td= term.description.presence || term.description_html
.section
- %h2.align-center= t('workarea.admin.reports.reference.discrepancies')
+ %h2.align-center= t('workarea.admin.reports.reference.discrepancies_title')
%p.align-center= t('workarea.admin.reports.reference.discrepancies_description')
%table
%tr
%td
- %strong= t('workarea.admin.reports.reference.definitions')
- %td= t('workarea.admin.reports.reference.definitions_description')
+ %strong= t('workarea.admin.reports.reference.discrepancies.definitions.name')
+ %td= t('workarea.admin.reports.reference.discrepancies.definitions.description')
%tr
%td
- %strong= t('workarea.admin.reports.reference.browser_configuration')
- %td= t('workarea.admin.reports.reference.browser_configuration_description')
+ %strong= t('workarea.admin.reports.reference.discrepancies.browser_configuration.name')
+ %td= t('workarea.admin.reports.reference.discrepancies.browser_configuration.description')
%tr
%td
- %strong= t('workarea.admin.reports.reference.time_zones')
- %td= t('workarea.admin.reports.reference.time_zones_description_html', time_zone: Time.zone.name)
+ %strong= t('workarea.admin.reports.reference.discrepancies.time_zones.name')
+ %td= t('workarea.admin.reports.reference.discrepancies.time_zones.description_html', time_zone: Time.zone.name)
%tr
%td
- %strong= t('workarea.admin.reports.reference.time_delay')
- %td= t('workarea.admin.reports.reference.time_delay_description_html')
+ %strong= t('workarea.admin.reports.reference.discrepancies.time_delay.name')
+ %td= t('workarea.admin.reports.reference.discrepancies.time_delay.description_html')
+ = append_partials('admin.report_reference_discrepancies')
+
.section
- %h2.align-center= t('workarea.admin.reports.reference.insights')
- %p.align-center= t('workarea.admin.reports.reference.insights_description')
+ %h2.align-center= t('workarea.admin.reports.reference.discrepancies.insights.name')
+ %p.align-center= t('workarea.admin.reports.reference.discrepancies.insights.description')