truncate words

This commit is contained in:
Sanj 2011-12-06 04:24:02 +05:30
parent 047ab717d3
commit a4ecdf885f

View File

@ -34,7 +34,7 @@
{% for b in bbitems %}
<td style="width:170px; height:130px; background-color:#f7bd00; color:#fff; padding:8px;">
<p style="font-size:16px; text-align:center; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif;">{{ b.title }}</p>
<p style="font-size:14px;">{{ b.text|truncate:80 }}</p>
<p style="font-size:14px;">{{ b.text|truncatewords:25 }}</p>
<p><a href="" style="text-align:right; color:#fff; text-decoration:none; font-size:12px;">More &#187;</a></p>
</td>
{% endfor %}