summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-21 17:46:35 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-21 17:46:35 +0100
commit4382a204c4a1119e8183129826f21c55cf890c00 (patch)
tree121305f21f38d2b9eeb199aa968f7f18fb7ae960 /templates
parent0ce4de7b6d05f675c8945ebb3af846f38272ef8b (diff)
downloadfisheye-4382a204c4a1119e8183129826f21c55cf890c00.tar.gz
fisheye-4382a204c4a1119e8183129826f21c55cf890c00.tar.bz2
fisheye-4382a204c4a1119e8183129826f21c55cf890c00.zip
Fix breadcrumb depth and dedup nav across gallery views
getBreadcrumbLinks now walks the full gallery hierarchy recursively instead of only one level up, so deep paths like Projects > Cadogan Gardens > Source Material appear in full. Inline nav blocks in galleriffic, simple_list and auto_flow replaced with gallery_nav.tpl include (matching fixed_grid). User/Galleries editor link in gallery_nav.tpl now guarded by hasUpdatePermission. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/gallery_nav.tpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/gallery_nav.tpl b/templates/gallery_nav.tpl
index e3fe66d..681e3e1 100755
--- a/templates/gallery_nav.tpl
+++ b/templates/gallery_nav.tpl
@@ -3,14 +3,14 @@
<nav>
{assign var=breadCrumbs value=$gContent->getBreadcrumbLinks(1)}
<ol class="breadcrumb">
- <li>
- {if !empty($gGallery->mInfo)}
- {displayname user=$gGallery->mInfo.creator_user user_id=$gGallery->mInfo.creator_user_id|default:0 real_name=$gGallery->mInfo.creator_real_name} :: <a href="{$smarty.const.FISHEYE_PKG_URL}?user_id={$gGallery->mInfo.user_id}">Galleries</a>
- {else}
- {displayname user=$gContent->mInfo.creator_user user_id=$gContent->mInfo.creator_user_id|default:0 real_name=$gContent->mInfo.creator_real_name} :: <a href="{$smarty.const.FISHEYE_PKG_URL}?user_id={$gContent->mInfo.user_id}">Galleries</a>
- {/if}
- </li>
-
+ {if $gContent->hasUpdatePermission()}
+ {if !empty($gGallery->mInfo)}
+ {assign var=creatorInfo value=$gGallery->mInfo}
+ {else}
+ {assign var=creatorInfo value=$gContent->mInfo}
+ {/if}
+ <li>{displayname user=$creatorInfo.creator_user user_id=$creatorInfo.creator_user_id|default:0 real_name=$creatorInfo.creator_real_name} :: <a href="{$smarty.const.FISHEYE_PKG_URL}?user_id={$creatorInfo.user_id}">Galleries</a></li>
+ {/if}
{if $breadCrumbs}
{foreach from=$breadCrumbs item=breadTitle key=breadId}
{if $breadId==$gContent->mGalleryId}<li class="active">{$breadTitle}</li>