pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit a12403ee496538d4c44fc653d735749309c3bb84
parent 4b1583ce164ee77173f03f8f707e2e0d46d00223
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sat, 21 Mar 2015 16:23:33 -0600

tt: add alt attribute to img tags, add more links in index

Diffstat:
Mtt/chart_list.tt | 4++--
Mtt/index.tt | 7+++++--
Mtt/link_list.tt | 7++++---
3 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/tt/chart_list.tt b/tt/chart_list.tt @@ -1,9 +1,9 @@ [% WRAPPER wrapper.tt %] - <h1><img class="logo" src="/logo/[% name_lc %].svg"></img> + <h1><img alt="[% name_lc %]" class="logo" src="/logo/[% name_lc %].svg"></img> ([% num_products %] total)</h1> [% FOREACH part_num IN products %] <div class="product"> - <img class="logo_small" src="/logo/[% part_num.1 %].svg"></img> + <img alt="[% part_num.1 %]" class="logo_small" src="/logo/[% part_num.1 %].svg"></img> [% part_num.2 %]<br> [% part_num.0 %]<br> <object data="/svg/[% part_num.0 %].svg" type="image/svg+xml"> diff --git a/tt/index.tt b/tt/index.tt @@ -5,8 +5,11 @@ <p> Welcome to <em>Price</em>Chart, a price comparison service for consumer electronics. Currently <b>[% num_products %]</b> products from - <b>[% num_manufacturers %]</b> manufacturers are tracked across - <b>[% num_retailers %]</b> retailers.</p> + <b>[% num_manufacturers %]</b> + <a href="/manufacturers.html">manufacturers</a> + are tracked across <b>[% num_retailers %]</b> + <a href="/retailers.html"> retailers</a> + .</p> <p> To start, try searching for a product or manufacturer in the search box at the top right. </p> diff --git a/tt/link_list.tt b/tt/link_list.tt @@ -4,9 +4,10 @@ <ul> [% FOREACH manufacturer IN manufacturers %] <li><a href="/[% name_lc %]/[% manufacturer.1 %].html"> - <img class="logo" src="/logo/[% manufacturer.1 %].svg"> - [% manufacturer.0 %]</img> - </a> + <img alt="[% manufacturer.0 %]" class="logo" + src="/logo/[% manufacturer.1 %].svg"> + </img> + </a> [% END %] </ul> </div>