commit b337d22179fbbe67d3fe369e1edbc87ecdbddf8c
parent cc73095412523023fa1bcf914440e5a31e0818a0
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Tue, 31 Mar 2015 20:41:58 -0600
tt: misc cleanups
Diffstat:
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/tt/chart_list.tt b/tt/chart_list.tt
@@ -3,7 +3,7 @@
my $name_lc = lc($stash->get("name"));
$stash->set("name_lc", $name_lc);
[% END %]
- <h1><img alt="[% name %]" class="logo_small" src="/logo/[% name_lc %].svg"></img>
+ <h1><img alt="[% name %]" class="logo_small" src="/logo/[% name_lc %].svg"/>
([% num %] total)</h1>
[% FOREACH product IN products %]
[% PERL %]
@@ -17,7 +17,7 @@
<!-- make the manufacturer logo into a link -->
<a href="/manufacturers/[% manufacturer_lc %].html">
<img alt="[% product.0 %]" class="logo_small"
- src="/logo/[% manufacturer_lc %].svg"></img></a>
+ src="/logo/[% manufacturer_lc %].svg"/></a>
<!-- display the description -->
[% product.2 %]
diff --git a/tt/link_list.tt b/tt/link_list.tt
@@ -5,7 +5,7 @@
$stash->set("dir_prefix", $dir_prefix);
[% END %]
<div class="column">
- <h1>[% name %] List ([% num %])</h1>
+ <h1>[% name %] ([% num %])</h1>
<ul>
[% FOREACH link IN links %]
[% PERL %]
diff --git a/tt/product.tt b/tt/product.tt
@@ -2,15 +2,18 @@
[% PERL %]
my $manuf = $stash->get("manufacturer");
$stash->set("manufacturer_lc", lc($manuf));
+ my $part_num = $stash->get("part_num");
+ $stash->set("part_num_lc", lc($part_num));
my $time_str = scalar localtime($stash->get('first_seen'));
$stash->set("first_seen_proc", $time_str);
+ # drop the exact time on this somehow
$time_str = scalar localtime($stash->get('last_seen'));
$stash->set("last_seen_proc", $time_str);
[% END %]
<h1><a href="/manufacturers/[% manufacturer_lc %].html">
<img class="logo_small" alt="[% manufacturer %]"
- src="/logo/[% manufacturer_lc %].svg"></img></a>
+ src="/logo/[% manufacturer_lc %].svg"/></a>
[% part_num %]</h1>
<div class="product">
<table>
@@ -20,7 +23,7 @@
<tr><td>First Seen:</td><td>[% first_seen_proc %]</td></tr>
<tr><td>Last Seen:</td><td>[% last_seen_proc %]</td></tr>
</table>
- <object data="/svg/[% part_num %].svg" type="image/svg+xml">
+ <object data="/svg/[% part_num_lc %].svg" type="image/svg+xml">
</object>
</div>
[% END %]