<% anc = @ancestors anc.each_with_index do |dsc,idx| %>

<%= "#{idx+1}." %> <% case dsc[:type] when "directory" %> <%= image_tag('tree/folder.png', :size=>'17x19', :border => 0) %> <% when "variable" %> <%= image_tag('tree/binary.png', :size=>'17x19', :border => 0) %> <% when "image" %> <%= image_tag('tree/image2.png', :size=>'17x19', :border => 0) %> <% end %> <% if dsc[:path] if @site %> "html", :site=>"#{@site}") %>"><%= h(dsc[:name]) %> <% else %> "html") %>"><%= h(dsc[:name]) %> <% end %> <% else %> <%= h(dsc[:name]) %> <% end %> <% if dsc[:infomation_url] %>  info <% end %> <% if (dsc[:title] != dsc[:name]) %>    :    <%= h(dsc[:title]) %> <% end %>

<% end %> <% anc.length.times do %>
<% end %>
<% count=0 anc.each_with_index do |dsc,idx| count += 1 %>

<%= "#{idx+1}." %> <%= h(dsc[:title]) %>

Description: <%=h(dsc[:description]) %>

<% if dsc[:keyword_attributes].length > 0 alid = "att_label"+count.to_s acid = "att_contents"+count.to_s %>

other attributes
<% end %>

<% end %>