<% current = @init_el_num linkIDs = Array.new html = String.new @descriptions.each do |description| img_base = @list.tmpImageURLBase(current) img_src = "../../images/rep_thumb/" + img_base + ".jpg" img = KRLogic::ImgFileManager.get(img_base) abbrev = @list.elAbbrev(current) local_uri_part = @list.elLocalURIPart(current) group = @list.elIsGroup(current) # here we only support one area in short descriptions area = description.areas[0] html << render( :partial => "desc_list_item", :locals => { :img_src => img_src, :img => img, :abbrev => abbrev, :local_uri_part => local_uri_part, :current => current, :area => area, :group => group, :linkIDs => linkIDs }) current += 1 end -%> <%= [ html, linkIDs.size, linkIDs ].flatten.join("::") -%>