Sha256: 66a259f14a5958a9f6dd3ad0472b465f13edab776d73c2054273e2d71e7875fb
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
<% unless defined?(array) array=[{"category" => category, "items" => items}] else xarray=[] array.each do |c| if c["category"] category=c["category"] end if c["items"] if c["items"][0] if c["items"][0]["class"] c["items"].each do |y| v={} if category v["category"]=category category=nil end v["name"]=y["class"] v["items"]=y["items"] xarray << v end else v={} if category v["category"]=category category=nil end v["name"]=nil v["items"]=c["items"] xarray << v end end end end array=xarray end %> <% array.each do |c| if c["category"] %> <%= %Q!* #{c["category"]}! %> <% end %> <% if c["name"] %> <%= %Q!◆ #{c["name"]}! %> <% end if c["items"] c["items"].each do |x| %> <table align="center" width="500" border=1> :class="bh2" colspan="2"><%= x["prize"] %> <table align="center" border="0"> :align="center"><%= x["work"] %> :align="center"><%= x["applicant"] %> </table> <% if x["files"] %> <table align="center" border="0"> <% x["files"].each do |y| %> :<%= getFileTypeImage(y["file_type"]) %> ::[<%= y["file_title"] %>](<%= y["url"] %>) <% end %> </table> <% end %> </table> <% end end end %>
Version data entries
4 entries across 4 versions & 1 rubygems