Skip to content

Commit

Permalink
Move show sidebar link
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 31, 2023
1 parent 84b51c3 commit c2b5c96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions assets/sass/layouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@ $sidebar-width: 250px;
width: auto;
}
}

.layout-show-help {
display: none;
}
16 changes: 10 additions & 6 deletions templates/layout/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@
<?= $this->element('icons/trash16') ?>
Trash Bin
</a>

<a href="#"
class="layout-show-help"
hx-get="<?= $this->Url->build(['controller' => 'Pages', 'action' => 'display', 'help']) ?>"
hx-target="main.main"
hx-swap="beforeend"
data-hotkey="shift+?"
>
Show keyboard shortcuts
</a>
</div>
</div>
</div>
Expand All @@ -95,12 +105,6 @@
]
) ?>
<?php endif; ?>
<a href="#"
hx-get="<?= $this->Url->build(['controller' => 'Pages', 'action' => 'display', 'help']) ?>"
hx-target="main.main"
hx-swap="beforeend"
data-hotkey="shift+?"
>Show keyboard shortcuts</a>
</section>
</div>
<?= $this->Html->scriptStart() ?>
Expand Down

0 comments on commit c2b5c96

Please sign in to comment.