Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-10-27 08:04:36 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-10-27 08:04:36 +0300
commit8945965d5c1428011c366d2db929e0b717def722 (patch)
treec12b0029cc6935b137bcbe1c71f23f8114e15481 /layouts
parent280cdc29c34beece0dadb41a462baf2b74c29789 (diff)
Simplify helper, style improvements.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/default.html6
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 %>