@let currentValue = tmpValue() ?? ''; @let trimmedValue = currentValue.trim(); @let hasContent = trimmedValue.length > 0; @let displayText = hasContent ? currentValue : (T.F.TASK.ADDITIONAL_INFO.TITLE_PLACEHOLDER | translate); @let placeholder = T.F.TASK.ADDITIONAL_INFO.TITLE_PLACEHOLDER | translate;
@if (!isEditing()) { @if (hasContent && hasUrlsOrMarkdown()) { } @else { {{ displayText }} } } @if (isEditing() && !readonly()) { }