backports murph-skeleton

This commit is contained in:
Simon Vieille 2021-05-19 16:39:59 +02:00
parent d743764f27
commit 6c205e7d67
3 changed files with 6 additions and 2 deletions

View file

@ -242,6 +242,10 @@ class Page implements EntityInterface
public function setOgImage($ogImage): self
{
if ($this->ogImage !== null && $ogImage === null) {
return $this;
}
$this->ogImage = $ogImage;
return $this;

View file

@ -130,7 +130,7 @@
{% endif %}
{% endset -%}
<tr data-dblclick="{{ dbClick }}">
<tr data-dblclick="{{ dbClick }}" class="{{ loop.index is odd ? 'is-odd' : 'is-even' }}">
{% for config in configuration.fields('index') %}
{% set attr = config.options.attr is defined ? config.options.attr : [] %}
{% set action = config.options.action is defined ? config.options.action : null %}

View file

@ -73,7 +73,7 @@
{% set edit = path('admin_site_node_edit', {entity: node.id}) %}
{% set new = path('admin_site_node_new', {node: node.id}) %}
<div class="list-group-item">
<div class="list-group-item" id="node-{{ node.id }}">
<div class="row">
<div class="col-6" style="padding-left: {{ (node.treeLevel - 1) * 30 }}px">
{{ node.label }}