- @page_title = t('workarea.admin.dashboards.search.search_dashboard') .view .view__header .view__heading = link_to "↑ #{t('workarea.admin.dashboards.main_dashboard')}", root_path %h1= t('workarea.admin.dashboards.search.search') .view__container %ul.secondary-nav %li= link_to t('workarea.admin.dashboards.search.view_all_customizations'), search_customizations_path .view__container .browsing-controls.browsing-controls--center.browsing-controls--filters-displayed = form_tag request.path, method: 'get', class: 'browsing-controls__form' do = render 'workarea/admin/shared/date_selector', starts_at: @dashboard.starts_at, ends_at: @dashboard.ends_at .grid.grid--huge .grid__cell.grid__cell--50 .insight .insight__body %h6.heading.heading--no-margin= t('workarea.admin.dashboards.search.searches') = link_to searches_report_path(starts_at: @dashboard.starts_at.to_s(:date_only), ends_at: @dashboard.ends_at.to_s(:date_only)), class: 'heading heading--1 heading--no-margin' do = number_with_delimiter @dashboard.searches - if @dashboard.searches_percent_change.present? %p = insights_trend_icon(@dashboard.searches_percent_change) = t('workarea.admin.dashboards.search.from_previous', percentage: insights_number_to_percentage(@dashboard.searches_percent_change)) = area_chart @dashboard.searches_graph_data, Workarea.config.default_chartkick_options .grid__cell.grid__cell--50 .insight .insight__body %h6.heading.heading--no-margin= t('workarea.admin.dashboards.search.searches_without_results') = link_to searches_report_path(starts_at: @dashboard.starts_at.to_s(:date_only), ends_at: @dashboard.ends_at.to_s(:date_only), results_filter: 'without_results'), class: 'heading heading--1 heading--no-margin' do = number_with_delimiter @dashboard.searches_without_results - if @dashboard.searches_without_results_percent_change.present? %p = insights_trend_icon(@dashboard.searches_without_results_percent_change) = t('workarea.admin.dashboards.search.from_previous', percentage: insights_number_to_percentage(@dashboard.searches_without_results_percent_change)) = area_chart @dashboard.searches_without_results_graph_data, Workarea.config.default_chartkick_options .view__container.view__container--narrow .section - @dashboard.insights.each do |insight| = render "workarea/admin/insights/#{insight.slug}", insight: insight