Skip to content

Commit

Permalink
Unify style of breadcrumb in Image picker dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Jan 2, 2025
1 parent 5f23824 commit 8aa178a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/admin/partials/images_dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,11 @@ <h2><?= $this->t('image_picker') ?></h2>
</div>
<div class="media-paths-container">
<div class="media-paths">
<?= $this->include('icons/folder.svg') ?>
<?php $folders = explode('/', trim($path, '/')) ?>
<?php foreach ($folders as $i => $folder): ?>
<?php $folder_path = implode('/', array_slice($folders, 0, $i + 1)) ?>
<?php if (\Aurora\App\Media::isValidPath(\Aurora\Core\Helper::getPath($folder_path))): ?>
<a href="#" class="pointer" onclick="ImageDialog.setImagePage(<?= e(js($folder_path)) ?>)"><?= e($folder) ?></a>
<a href="#" class="pointer" onclick="ImageDialog.setImagePage(<?= e(js($folder_path)) ?>)"><?= $i == 1 ? $this->include('icons/home.svg') : e($folder) ?></a>
<span>/</span>
<?php endif ?>
<?php endforeach ?>
Expand Down

0 comments on commit 8aa178a

Please sign in to comment.