Permalink
Browse files

* Fixed the parent information.

  • Loading branch information...
1 parent 9eb7036 commit 258c1f97f975b8cb898fdab836c1d987bdc01d93 Erik Hollensbe committed Jul 8, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 lib/hanna/hanna.rb
  2. +2 −1 lib/hanna/template_files/page.haml
View
@@ -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
}
@@ -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

0 comments on commit 258c1f9

Please sign in to comment.