forked from laysense/laysite
Check upstream versions and label article-driven components
This commit is contained in:
@@ -1430,9 +1430,11 @@ jQuery(function ($) {
|
||||
const {key, fixed, version} = entry;
|
||||
const index = eligible.indexOf(entry);
|
||||
const $row = $('<li>', {'data-layer-key': key}).appendTo($layers);
|
||||
const $label = $('<div>').append($('<strong>', {
|
||||
const $label = $('<div>').appendTo($row);
|
||||
const $title = $('<div>', {class: 'studio-component-label'}).append($('<strong>', {
|
||||
'data-layer-title': '', text: plainText(entry.fields.title.node) || '未命名区块'
|
||||
})).appendTo($row);
|
||||
})).appendTo($label);
|
||||
if (entry.feed) $('<span>', {class: 'studio-dynamic-badge', text: '动态'}).appendTo($title);
|
||||
if (fixed || version === null) $label.append($('<small>').text(fixed ? '首屏目录' : '待保存'));
|
||||
const $actions = $('<div>', {class: 'actions studio-block-actions'}).appendTo($row);
|
||||
$actions.append(button('定位', 'jump'), button('上移', 'up', fixed || index === 0),
|
||||
|
||||
Reference in New Issue
Block a user