diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-10-27 06:06:33 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-10-27 06:06:33 +0300 |
commit | e93ad43ae403058496d2fbaaffa6134e03df3bbb (patch) | |
tree | 73dcc6c4cbfbdca8fbcd36c566f8422c7c442115 /layouts | |
parent | 6dcc7bb41db57d49f632f7d03b123eb44c314619 (diff) |
Make a dumb, poorly-written helper.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/default.html | 6 |
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> |