Files

26 lines
932 B
PHP

<?php
declare(strict_types=1);
$text = is_array($_['text'] ?? null) ? $_['text'] : [];
$t = static function (string $key, string $fallback) use ($text): string {
return (string)($text[$key] ?? $fallback);
};
$settings = is_array($_['settings'] ?? null) ? $_['settings'] : [];
?>
<div id="nqs-user" class="section">
<h2><?php p((string)($_['title'] ?? $t('title', 'NuQloud Scrum'))); ?></h2>
<div class="nqs-grid">
<section class="nqs-card">
<h3><?php p($t('workspaceSync', 'Workspace Sync')); ?></h3>
<p class="nqs-note">
<?php p(!empty($settings['enabled']) ? $t('enabled', 'NuQloud Scrum automation is enabled.') : $t('notEnabled', 'NuQloud Scrum automation is not enabled yet.')); ?>
</p>
<p class="nqs-note">
<?php p($t('intro', 'Talk remains the primary workspace. Synced task folders and Deck cards will appear here after the sync services are connected.')); ?>
</p>
</section>
</div>
</div>