commit 26969dfcf0cf5570b17e4820ba3d470293d413fd Author: Sherief Alaa sheriefalaa.w@gmail.com Date: Tue Jun 17 14:45:08 2014 +0300
using django's slice instead of truncatechars --- webchat/templates/tokens.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webchat/templates/tokens.html b/webchat/templates/tokens.html index a6f297f..20c3de1 100644 --- a/webchat/templates/tokens.html +++ b/webchat/templates/tokens.html @@ -48,7 +48,7 @@ <td>https://%7B%7Burl%7D%7D/chat/%7B%7Btoken.token%7D%7D</td> <td>{{token.expires_at|date:"Y-m-d G:i"}}</td> <td class="comment" onclick="full_comment({{token.t_id}});"> - {{token.comment|truncatechars:35}} + {{token.comment|slice:":35"}}
{% if token.comment|length > 35 %} <span data-toggle="modal" data-target="#comment-modal" style="color:blue; font-size:80%;"> more</span>
tor-commits@lists.torproject.org