[Oi-commits] r1498 - trunk/forum
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Thu Jun 19 15:21:56 EEST 2008
Author: jnmbk
Date: Thu Jun 19 15:21:55 2008
New Revision: 1498
Modified:
trunk/forum/views.py
Log:
trunctate from 16th letter
Modified: trunk/forum/views.py
=================================================================
--- trunk/forum/views.py (original)
+++ trunk/forum/views.py Thu Jun 19 15:21:55 2008
@@ -179,6 +179,8 @@
poll_options = poll.polloption_set.all()
total_vote_count = poll.pollvote_set.count() * 1.0
for option in poll_options:
+ if len(option.text) > 16:
+ option.text = option.text[:16] + "..."
if total_vote_count < 1:
option.percent = 0
else:
More information about the Oi-commits
mailing list