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 06:06:33 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-10-27 06:06:33 +0300
commite93ad43ae403058496d2fbaaffa6134e03df3bbb (patch)
tree73dcc6c4cbfbdca8fbcd36c566f8422c7c442115 /layouts
parent6dcc7bb41db57d49f632f7d03b123eb44c314619 (diff)
Make a dumb, poorly-written helper.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/default.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/default.html b/layouts/default.html
index 9fabec72..329a1eb5 100644
--- a/layouts/default.html
+++ b/layouts/default.html
@@ -25,6 +25,12 @@
</ul>
</div>
<div class="main class">
+ <div>
+ <% parent_path_item = parent_path(@item) unless parent_path(@item).nil? %>
+ <% unless parent_path_item.nil? %>
+ <%= link_to "Go up", parent_path_item %>
+ <% end %>
+ </div>
<%= yield %>
<hr>
<footer>