diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php index b8a6735..0c367d2 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php @@ -45,19 +45,6 @@ function testDefaultRowClasses() { $count++; $attributes = $row->attributes(); $class = (string) $attributes['class'][0]; - // Make sure that each row has a row css class. - $this->assertTrue(strpos($class, "views-row-$count") !== FALSE, 'Make sure that each row has a row css class.'); - // Make sure that the odd/even classes are set right. - $odd_even = $count % 2 == 0 ? 'even' : 'odd'; - $this->assertTrue(strpos($class, "views-row-$odd_even") !== FALSE, 'Make sure that the odd/even classes are set right.'); - - if ($count == 1) { - $this->assertTrue(strpos($class, "views-row-first") !== FALSE, 'Make sure that the first class is set right.'); - } - elseif ($count == $count_result) { - $this->assertTrue(strpos($class, "views-row-last") !== FALSE, 'Make sure that the last class is set right.'); - - } $this->assertTrue(strpos($class, 'views-row') !== FALSE, 'Make sure that the views row class is set right.'); } } diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index eaf3d86..4d2f079 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -889,16 +889,6 @@ function template_preprocess_views_view_unformatted(&$variables) { $count++; if ($default_row_class) { $variables['rows'][$id]['attributes']['class'][] = 'views-row'; - $variables['rows'][$id]['attributes']['class'][] = 'views-row-' . $count; - } - if ($row_class_special) { - $variables['rows'][$id]['attributes']['class'][] = 'views-row-' . ($count % 2 ? 'odd' : 'even'); - if ($count == 1) { - $variables['rows'][$id]['attributes']['class'][] = 'views-row-first'; - } - if ($count == $max) { - $variables['rows'][$id]['attributes']['class'][] = 'views-row-last'; - } } if ($row_class = $view->style_plugin->getRowClass($id)) { $variables['rows'][$id]['attributes']['class'][] = $row_class; diff --git a/core/modules/views/templates/views-more.html.twig b/core/modules/views/templates/views-more.html.twig index c92b849..2d25ad8 100644 --- a/core/modules/views/templates/views-more.html.twig +++ b/core/modules/views/templates/views-more.html.twig @@ -11,8 +11,6 @@ * @ingroup themeable */ #} -
+ + {{ link_text }} +