commit b46c9bff88dece9135b4bfcad70e75b05cda737d
parent e95e277d857a75f388758b7248d27189729d19cc
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Sat, 25 Apr 2015 21:14:15 -0600
tt: tighten up spacing
Diffstat:
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/tt/coarse_list.tt b/tt/coarse_list.tt
@@ -11,7 +11,6 @@
my ($logo) = glob("logo/$link.*");
$stash->set("logo", $logo);
[% END %]
-
[% i = i + 1 %]
[% IF (i % (list.keys.size / 3)) == 0 %]
</ul>
@@ -20,7 +19,6 @@
<div class="thirds_column">
<ul>
[% END %]
-
<li><div class="list_item">
[% name_link = name.lower.replace('[ #\/]', '_') %]
<a href="/[% name_link %]/[% item_link %].html">
@@ -30,10 +28,9 @@
<div class="breakdown">
[% FOREACH type IN list.$item.keys %]
- [% list.$item.$type.count %]
-
+ [% n = list.$item.$type.count %]
[% type_link = type.lower.replace('[ #\/]', '_') %]
- <a href="/[% name_link %]/[% item_link %]/[% type_link %].html">
+ [% n %] <a href="/[% name_link %]/[% item_link %]/[% type_link %].html">
[% type %]</a>,
[% END %]
</div></div>
diff --git a/tt/fine_list.tt b/tt/fine_list.tt
@@ -12,13 +12,11 @@
<div class="product">
[% manuf_html = product.0.lower.replace('[ #\/]', '_') %]
[% part_link = product.1.lower.replace('[ #\/]', '_') %]
-
[% PERL %]
my $manuf_html = $stash->get("manuf_html");
my ($logo) = glob("logo/$manuf_html*");
$stash->set("logo", $logo);
[% END %]
-
[%# make the manufacturer logo into a link %]
<a href="/manufacturers/[% manuf_html %].html">
<img alt="[% product.0 %]" class="logo_small"