FIX Fix line length

This commit is contained in:
Raissa North 2018-01-29 16:10:45 +13:00
parent ba6328f558
commit f2ef7a945e
4 changed files with 15 additions and 4 deletions

View File

@ -101,7 +101,10 @@ class GridFieldMergeAction implements GridField_ColumnProvider, GridField_Action
'data-target' => $prefix . '-target-record-' . $record->ID
]);
return $dropdown->Field() . $action->Field() . '<a title="Move posts to" class="MergeActionReveal">move posts to</a>';
$action->addExtraClass('btn btn-primary btn-sm blog-merge-action');
return $dropdown->Field() . $action->Field() .
'<a title="Move posts to" class="MergeActionReveal">Move posts to</a>';
}
return null;

View File

@ -354,7 +354,10 @@ class Blog extends Page implements PermissionProvider
);
$members = $this->getCandidateUsers()->map()->toArray();
$toggleButton = LiteralField::create('ToggleButton', '<a class="toggle-description"></a>');
$toggleButton = LiteralField::create(
'ToggleButton',
'<a class="font-icon-info-circled toggle-description"></a>'
);
$editorField = ListboxField::create('Editors', 'Editors', $members)
->setRightTitle($toggleButton)

View File

@ -264,7 +264,8 @@ class BlogPost extends Page
)->setDescription(
_t(
__CLASS__ . '.AdditionalCredits_Description',
'If some authors of this post don\'t have CMS access, enter their name(s) here. You can separate multiple names with a comma.'
'If some authors of this post don\'t have CMS access, enter their name(s) here. '.
'You can separate multiple names with a comma.'
)
);

View File

@ -360,7 +360,11 @@ class BlogTest extends SapphireTest
$this->fail('The "profile" action should throw a HTTPResponse_Exception when disable_profiles is enabled');
} catch (HTTPResponse_Exception $e) {
$this->assertEquals(404, $e->getResponse()->getStatusCode(), 'The response status code should be 404 Not Found');
$this->assertEquals(
404,
$e->getResponse()->getStatusCode(),
'The response status code should be 404 Not Found'
);
}
}