Open the speaker view from a menu next to the present button
Replace the separate button by a split button: "Präsentieren" with a dropdown that holds the speaker view entry. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
66ed198f87
commit
b61bf34a1b
4 files changed
+62
-5
No files matched your search
@@ -35,10 +35,20 @@ $hasInternal = array_filter($slides, fn($slide) => !$slide->is_hidden && $slide-
|
||||
</p>
|
||||
</div>
|
||||
<div class="admin-head__actions">
|
||||
<a class="button button--primary" target="_blank" rel="noopener"
|
||||
href="<?= $this->Url->build($url('admin:present')) ?>">▶ <?= __('Präsentieren') ?></a>
|
||||
<a class="button" target="_blank" rel="noopener" href="<?= $this->Url->build($url('admin:speaker')) ?>"
|
||||
title="<?= h(__('Eigenes Fenster für den Präsentierenden: aktuelle und nächste Folie, ohne die Präsentation zu starten')) ?>">⧉ <?= __('Referentenansicht') ?></a>
|
||||
<div class="split">
|
||||
<a class="button button--primary split__main" target="_blank" rel="noopener"
|
||||
href="<?= $this->Url->build($url('admin:present')) ?>">▶ <?= __('Präsentieren') ?></a>
|
||||
<button type="button" class="button button--primary split__toggle" data-menu-toggle aria-haspopup="true" aria-expanded="false"
|
||||
aria-controls="present-menu" title="<?= h(__('Weitere Ansichten')) ?>">
|
||||
<span aria-hidden="true">▾</span><span class="sr-only"><?= __('Weitere Ansichten') ?></span>
|
||||
</button>
|
||||
<div class="split__menu" id="present-menu" data-menu hidden>
|
||||
<a class="split__item" target="_blank" rel="noopener" href="<?= $this->Url->build($url('admin:speaker')) ?>">
|
||||
⧉ <?= __('Referentenansicht') ?>
|
||||
<small><?= __('Aktuelle und nächste Folie im eigenen Fenster, startet die Präsentation nicht') ?></small>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($poll->current_slide_id !== null) : ?>
|
||||
<?= $this->Form->postButton('⏸ ' . __('Pause'), $url('admin:control'), [
|
||||
'data' => ['action' => 'stop'],
|
||||
|
||||
Reference in new issue
Block a user