[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [pups/production] using django's slice instead of truncatechars
commit 26969dfcf0cf5570b17e4820ba3d470293d413fd
Author: Sherief Alaa <sheriefalaa.w@xxxxxxxxx>
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://{{url}}/chat/{{token.token}}</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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits