Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #712 from Martimiz/3.0-CMSBreadcrumbs

FIX: display correct icon in the GridFieldDetailForm's breadcrumbs
  • Loading branch information...
commit 61ea58d0306ffab00c8920dc5d4e650812e19e9d 2 parents ec17d36 + b1ee36e
@wilr wilr authored
Showing with 9 additions and 12 deletions.
  1. +9 −12 admin/templates/CMSBreadcrumbs.ss
View
21 admin/templates/CMSBreadcrumbs.ss
@@ -1,22 +1,19 @@
<div class="breadcrumbs-wrapper" data-pjax-fragment="Breadcrumbs">
- <% loop Breadcrumbs %>
-
- <% if First %>
- <% if ToplevelController %>
- <span class="section-icon icon icon-16 icon-{$ToplevelController.MenuCurrentItem.Code.LowerCase}"></span>
- <% else_if Controller %>
- <span class="section-icon icon icon-16 icon-{$Controller.MenuCurrentItem.Code.LowerCase}"></span>
- <% else %>
- <span class="section-icon icon icon-16 icon-{$MenuCurrentItem.Code.LowerCase}"></span>
- <% end_if %>
- <% end_if %>
+ <% if ToplevelController %>
+ <span class="section-icon icon icon-16 icon-{$ToplevelController.MenuCurrentItem.Code.LowerCase}"></span>
+ <% else_if Controller %>
+ <span class="section-icon icon icon-16 icon-{$Controller.MenuCurrentItem.Code.LowerCase}"></span>
+ <% else %>
+ <span class="section-icon icon icon-16 icon-{$MenuCurrentItem.Code.LowerCase}"></span>
+ <% end_if %>
+
+ <% loop Breadcrumbs %>
<% if Last %>
<span class="cms-panel-link crumb last">$Title.XML</span>
<% else %>
<a class="cms-panel-link crumb" href="$Link">$Title.XML</a>
<span class="sep">/</span>
<% end_if %>
-
<% end_loop %>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.