Skip to content

Commit

Permalink
feat: show template in topbar
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Apr 12, 2023
1 parent 24e3962 commit 239d64b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bar/topbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@
</svg>
</a>

<?php if ($user->isSuperuser()) : ?>
<span style="margin-left: 10px;">[
<a href="<?= $pages->get(2)->url ?>setup/template/edit?id=<?= $page->template->id ?>">
<?= $page->template->name ?>
</a>
]</span>
<?php endif; ?>
</div>
<div id="rf-device-preview">
<div class="iframe-wrapper">
Expand Down

0 comments on commit 239d64b

Please sign in to comment.