diff --git a/web/themes/asc_bootstrap/asc_bootstrap.theme b/web/themes/asc_bootstrap/asc_bootstrap.theme index 222637ccc787bf3c3d50c2bb87db1653b35fb149..d0e0507491b501196d55f84d5e9418d7775190d4 100755 --- a/web/themes/asc_bootstrap/asc_bootstrap.theme +++ b/web/themes/asc_bootstrap/asc_bootstrap.theme @@ -756,6 +756,7 @@ function asc_bootstrap_views_pre_render(\Drupal\views\ViewExecutable $view) { // print " - view_current_display: " . $view->current_display; if($view->id() == 'research_project_directory' || $view->id() == 'research_project_directory_mobile') { + $view->element['#cache']['max-age'] = 0; // get vocabulary name and set label to it $vocab_dep = Vocabulary::load('departments'); $vocab_dep_label = $vocab_dep->get('name'); diff --git a/web/themes/asc_bootstrap/templates/system/page--research-landing-page.html.twig b/web/themes/asc_bootstrap/templates/system/page--research-landing-page.html.twig index d4dd5bf2e1b0b75a38c06b0eb0032cccd8a28f76..244d2da15ac01bda90072b15d7e86a49172f9e51 100644 --- a/web/themes/asc_bootstrap/templates/system/page--research-landing-page.html.twig +++ b/web/themes/asc_bootstrap/templates/system/page--research-landing-page.html.twig @@ -97,11 +97,10 @@ {% endblock %} {% if displayview == 'table-view' %} - {% if is_mobile() %} - <dd>{{ drupal_view('research_project_directory_mobile', 'block_1') }}</dd> - mobile! + {% if isMobile() %} + {{ drupal_view('research_project_directory_mobile', 'block_1') }} {% else %} - <dd>{{ drupal_view('research_project_directory', 'block_1') }}</dd> + {{ drupal_view('research_project_directory', 'block_1') }} {% endif %} {% endif %}