fine_list.tt (1242B)
1 [% WRAPPER wrapper.tt %] 2 [% name_link = name.lower.replace('[ #\/]', '_') %] 3 <h1><img alt="[% name %]" class="logo_small" 4 src="[% logo_hash.item(name_link) %]"/> 5 [% name %] [% type %] ([% products.size %] total)</h1> 6 7 <div class="product_column"> 8 9 [% column_size = products.size / 2.0 %] 10 [% i = 0 %] 11 [% FOREACH product IN products %] 12 [% i = i + 1 %] 13 [% IF (i % 20) == 0 %] 14 </div> 15 <div class="product_column"> 16 [% END %] 17 18 <div class="product"> 19 <div class="product_title"> 20 [% manuf_html = product.0.lower.replace('[ #\/]', '_') %] 21 [% part_link = product.1.lower.replace('[ #\/]', '_') %] 22 <a name="[% part_link %]"></a> 23 [%# make the manufacturer logo into a link %] 24 <a href="/manufacturers/[% manuf_html %].html"> 25 <img alt="[% product.0 %]" class="logo_small" 26 src="[% logo_hash.item(manuf_html) %]"/></a> 27 28 [%# inline link to the products page %] 29 <a href="/products/[% manuf_html %]/[% part_link %].html">[% product.1 %]</a> 30 31 [%# display the description %] 32 [% product.2 %] 33 </div> 34 35 [%# show the chart %] 36 <object data="/svg/[% manuf_html %]/[% part_link %].svg" type="image/svg+xml"> 37 </object> 38 <!--img src="/svg/[% manuf_html %]/[% part_link %].svg" /--> 39 </div> 40 41 [% END %] 42 43 </div> 44 [% END %]