diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-10-27 08:04:36 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-10-27 08:04:36 +0300 |
commit | 8945965d5c1428011c366d2db929e0b717def722 (patch) | |
tree | c12b0029cc6935b137bcbe1c71f23f8114e15481 /layouts | |
parent | 280cdc29c34beece0dadb41a462baf2b74c29789 (diff) |
Simplify helper, style improvements.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/default.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/default.html b/layouts/default.html index c0a0c5c6..ab96f202 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -26,9 +26,9 @@ </div> <div class="main class"> <ul class="breadcrumbs"> - <% parent_array = parent_path_array(@item) unless parent_path_array(@item).empty? %> - <% if parent_array %> - <% parent_array.reverse_each do |item| %> + <% ancestor_array = ancestor_path_array(@item) unless ancestor_path_array(@item).empty? %> + <% if ancestor_array %> + <% ancestor_array.reverse_each do |item| %> <li class="breadcrumb"><%= link_to "Breadcrumb", item %></li> <% end %> <% end %> |