aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gentoo_ads/ads/templates/ads.html')
-rw-r--r--gentoo_ads/ads/templates/ads.html21
1 files changed, 20 insertions, 1 deletions
diff --git a/gentoo_ads/ads/templates/ads.html b/gentoo_ads/ads/templates/ads.html
index 67f5860..0af4e69 100644
--- a/gentoo_ads/ads/templates/ads.html
+++ b/gentoo_ads/ads/templates/ads.html
@@ -27,13 +27,32 @@
text-align: center;
clear: both;
}
+ div.ads a h2 {
+ font-size: 100%;
+ text-align: center;
+ text-decoration: none;
+ }
+ div.ads a p {
+ font-size: 80%;
+ text-align: justify;
+ text-decoration: none;
+ }
</style>
</head>
<body>
<div class="ads">
{% for ad in ads %}
<hr />
- <a href="{{ad.url}}" target="_parent"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a>
+ {% ifequal ad.type 'txt' %}
+ <a href="{{ad.url}}" target="_parent">
+ <h2>{{ ad.title }}</h2>
+ <p>
+ {{ ad.text }}
+ </p>
+ </a>
+ {% else %}
+ <a href="{{ad.url}}" target="_parent"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a>
+ {% endifequal %}
{% endfor %}
<hr />
</div>