2 def link_to_page(page, page_param)
3 return link_to(page, page_param => page)
6 def printable_name(object, version=false)
7 name = t 'printable_name.with_id', :id => object.id.to_s
9 name = t 'printable_name.with_version', :id => name, :version => object.version.to_s
11 if object.tags.include? 'name'
12 name = t 'printable_name.with_name', :name => object.tags['name'].to_s, :id => name