diff options
author | Matthew Summers <matthew.summers@liquidustech.com> | 2010-05-21 16:41:05 -0500 |
---|---|---|
committer | Matthew Summers <matthew.summers@liquidustech.com> | 2010-05-21 16:41:05 -0500 |
commit | 5e1e4a2e660f91f031275cfa7cde61e8daac1100 (patch) | |
tree | 049985761649f01180ebc120c67d61d0497255ff | |
parent | Removed image-type restriction, and superfluous imports in models & tests (diff) | |
download | gentoo-ads-5e1e4a2e660f91f031275cfa7cde61e8daac1100.tar.gz gentoo-ads-5e1e4a2e660f91f031275cfa7cde61e8daac1100.tar.bz2 gentoo-ads-5e1e4a2e660f91f031275cfa7cde61e8daac1100.zip |
styles to make it prettier (for www.g.o)
-rw-r--r-- | gentoo_ads/ads/templates/ads.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/gentoo_ads/ads/templates/ads.html b/gentoo_ads/ads/templates/ads.html index f4272f8..198a5f0 100644 --- a/gentoo_ads/ads/templates/ads.html +++ b/gentoo_ads/ads/templates/ads.html @@ -1,18 +1,30 @@ -<html> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> - <meta content=""> - <style> + <meta http-equiv="content-type" content="text/html; charset=utf-8" /> + <style type="text/css"> div.ads a img { max-width: 125px; max-height: 125px; + border: 0 none; + margin: 0.5em auto + } + div.ads hr { + width: 90%; + border: 0 none; + background-color: #000; + height: 1px; + text-align: center; + clear: both; } </style> </head> <body> <div class="ads"> {% for ad in ads %} - <a href="{{ad.url}}"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a><br /> + <a href="{{ad.url}}"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a> + <hr /> {% endfor %} </div> </body> |