Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Fixed the parent information.

  • Loading branch information...
commit 258c1f97f975b8cb898fdab836c1d987bdc01d93 1 parent 9eb7036
Erik Hollensbe authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  lib/hanna/hanna.rb
  2. +2 −1  lib/hanna/template_files/page.haml
View
2  lib/hanna/hanna.rb
@@ -120,7 +120,7 @@ def generate_file_files
:stylesheet => stylesheet,
:classmod => nil,
:title => file.base_name,
- :list_title => file.base_name,
+ :list_title => nil,
:description => file.description
}
View
3  lib/hanna/template_files/page.haml
@@ -28,7 +28,8 @@
- if values[:entry].parent
.parent
Parent:
- %strong= link_to values[:entry].parent, values[:entry].parent.name
+ -# FIXME helper method
+ %strong= link_to values[:entry].parent.name, Pathname.new(class_dir) + Pathname.new(values[:entry].parent.path).relative_path_from(Pathname.new values[:entry].path)
- if values[:entry].respond_to?(:last_modified) and values[:entry].last_modified
.last-update
Please sign in to comment.
Something went wrong with that request. Please try again.