diff options
Diffstat (limited to 'gentoo_ads/ads/templates/ads.html')
-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> |