<% f["variants"] = f["familyinfo"] if dir == "fontsquirrel" enabled = Cytoplasm::FontsController.is_enabled?(dir,fam) %>
  • <% unless f["variants"].nil? or f["variants"].empty? %><% f["variants"].each do |v| %> <% if dir=="fontsquirrel" %> <% elsif dir=="googlewebfonts" %> <% end %> <% end end %>
    <%=link_to(fam,cytoplasm_show_font_url(dir,fam))%>
    <%=v["style_name"]%>: <%=image_tag(v["listing_image"])%><%=v%>: AaBbCcDdEeFfGgHhIiJjKk<%=image_tag("cytoplasm/actions-circle-"+((!enabled)?"add":"remove")+"-1.png")%> <%=image_tag("cytoplasm/artwork-paintroll.png")%> <%=image_tag("cytoplasm/edition-delete-1.png")%>
    <%=link_to("Details",((dir=="fontsquirrel")?"http://www.fontsquirrel.com/fonts/":"http://www.google.com/webfonts/specimen/")+fam,:class => "font_details",:target => "_blank")%> | <% if enabled %> <%=link_to("Preview","#",:class => "font_preview")%> | <%=link_to("Set as...","#",:class => "font_set")%> | <% end %> <%=link_to((enabled)?"Disable":"Enable","#",:class => "font_enable_disable")%> | <%=link_to("Uninstall","#",:class => "font_uninstall")%>