Commit 3350c0ca authored by webchick's avatar webchick

Issue #2162073 by Sharique, kerby70, lokapujya, mgifford, BarisW, dawehner:...

Issue #2162073 by Sharique, kerby70, lokapujya, mgifford, BarisW, dawehner: Switch the recent content block to use a list instead of a table, matching the recent comments block
parent 8043f5cf
......@@ -60,15 +60,6 @@ display:
class: ''
row:
type: fields
options:
default_field_elements: true
inline:
title: title
name: name
edit_node: edit_node
delete_node: delete_node
separator: ' '
hide_empty: false
fields:
title:
id: title
......@@ -106,64 +97,10 @@ display:
settings:
link_to_entity: true
plugin_id: field
entity_type: node
entity_field: title
name:
id: name
table: users_field_data
field: name
relationship: uid
group_type: group
admin_label: ''
label: 'by '
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: byline
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: author
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
entity_type: user
entity_field: name
plugin_id: field
plugin_id: entity_link_edit
delete_node:
id: delete_node
table: node
field: delete_node
changed:
id: changed
table: node_field_data
field: changed
relationship: none
group_type: group
admin_label: ''
......@@ -208,9 +145,22 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: true
text: Delete
click_sort_column: value
type: timestamp_ago
settings: { }
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: node
plugin_id: entity_link_delete
entity_field: changed
plugin_id: field
filters:
status_extra:
id: status_extra
......@@ -334,11 +284,19 @@ display:
plugin_id: standard
arguments: { }
display_extenders: { }
use_more: true
use_more_always: true
use_more: false
use_more_always: false
use_more_text: More
link_url: admin/content
link_display: custom_url
link_url: ''
link_display: '0'
cache_metadata:
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- user
- 'user.node_grants:view'
- user.permissions
cacheable: false
block_1:
display_plugin: block
id: block_1
......@@ -346,3 +304,11 @@ display:
position: 1
display_options:
display_extenders: { }
cache_metadata:
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- user
- 'user.node_grants:view'
- user.permissions
cacheable: false
......@@ -100,17 +100,11 @@ public function testRecentNodeBlock() {
$this->assertText($node3->label(), 'Node found in block.');
// Check to make sure nodes are in the right order.
$this->assertTrue($this->xpath('//div[@id="block-test-block"]//div[@class="item-list"]/ul/li[1]/span[1]/span/a[text() = "' . $node3->label() . '"]'), 'Nodes were ordered correctly in block.');
$this->assertTrue($this->xpath('//div[@id="block-test-block"]//div[@class="item-list"]/ul/li[1]/div/span/a[text() = "' . $node3->label() . '"]'), 'Nodes were ordered correctly in block.');
$this->drupalLogout();
$this->drupalLogin($this->adminUser);
// Verify that the More link is shown and leads to the admin content page.
$this->drupalGet('');
$this->clickLink('More');
$this->assertResponse('200');
$this->assertUrl('admin/content');
// Set the number of recent nodes to show to 10.
$block->getPlugin()->setConfigurationValue('items_per_page', 10);
$block->save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment