Permalink
Browse files

* Doing parents and filenames right now.

  • Loading branch information...
Erik Hollensbe
Erik Hollensbe committed Jul 8, 2010
1 parent 1a7b5e8 commit f94497abc29db522b57b55d68b912ea7c04d4ad4
Showing with 4 additions and 7 deletions.
  1. +4 −7 lib/hanna/template_files/page.haml
@@ -15,7 +15,7 @@
- if file_page
.paths
- = values[:file].path
+ = values[:file].relative_name
-#- if values[:cvsurl]
-#== (#{link_to 'view online', values[:cvsurl]})
- else
@@ -29,22 +29,19 @@
%li
%a.show{ :href => '#', :onclick => 'this.parentNode.parentNode.className += " expanded"; this.parentNode.removeChild(this); return false' } show all
- - if values[:file].respond_to?(:parent) then
+ - if values[:file].parent
.parent
Parent:
- %strong= link_to values[:parent], values[:par_url]
+ %strong= link_to values[:file].parent, values[:file].parent.name
- if values[:dtm_modified]
.last-update
Last Update:
%span.datetime= values[:dtm_modified]
#content
- -#- if values[:diagram]
- -##diagram= values[:diagram]
-
#text
- if values[:description]
#description~ sanitize_code_blocks frame_link values[:description]
- = frame_link yield
+ = sanitize_code_blocks frame_link yield

0 comments on commit f94497a

Please sign in to comment.