Commit b6f6d03f authored by Mitsuhiro Yoshida's avatar Mitsuhiro Yoshida Committed by Robert Lyon

Bug 1846102: Replaced Smarty function 'truncate' with str_shorten_html().

For the places where we display message subject - as the multibyte
strings get truncated poorly

behatnotneeded

Change-Id: Ie97c943bdc2550807bb9a4987f51ed929349f9a9
parent ae03e44e
......@@ -22,7 +22,7 @@
<span class="icon icon-wrench text-default left" role="presentation" aria-hidden="true"></span>
{/if}
<span class="sr-only">{$i->strtype}</span>
{$i->subject|truncate:50}
{$i->subject|str_shorten_html:50:true|safe}
<span class="icon icon-chevron-down collapse-indicator float-right text-small" role="presentation" aria-hidden="true"></span>
</a>
{/if}
......
......@@ -41,7 +41,7 @@
</span>
{/if}
<span class="subject">
{$item->subject|truncate:80}
{$item->subject|str_shorten_html:50:true|safe}
</span>
<span class="metadata">
......
......@@ -31,7 +31,7 @@
</span>
{/if}
{$item->subject|truncate:40}
{$item->subject|str_shorten_html:50:true|safe}
<span class="metadata"> -
<span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment