%
@sources.uniq!
s = nil
if @displayname.nil?
s = @sources[0]
else
@sources.each { |source| s = source if source['name'] == @displayname }
end
%>
<% if s.nil? or s['data'].length < 1 %>
No data for <%= s.nil? ? "" : s['name'] %>
<% else %>
<%end%>
<%
def fix_json(instring)
outstring = instring.gsub(/"/,"'")
outstring = outstring.gsub(/('.*?enderer'):'(.*?)'/,'\1:\2')
outstring
end
%>
<% if @displayname.nil? %>
<%end%>
<% if @sources.length > 1%>
<% end %>