CRM-20781: Truncate long text in mail listing
authordeb.monish <monish.deb@jmaconsulting.biz>
Wed, 28 Jun 2017 18:46:35 +0000 (00:16 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Wed, 28 Jun 2017 19:47:02 +0000 (01:17 +0530)
templates/CRM/Mailing/Page/Browse.tpl

index 8b0f6db4388da74a1a000901d19e9b966bbbb9c8..d50af58bb5928fd8eca340512a3f1af35797f5f6 100644 (file)
           <td class="crm-mailing-language">{$row.language}</td>
         {/if}
         <td class="crm-mailing-status crm-mailing_status-{$row.status}">{$row.status}</td>
-        <td class="crm-mailing-created_by"><a href ={crmURL p='civicrm/contact/view' q="reset=1&cid="}{$row.created_id}>{$row.created_by}</a></td>
+        <td class="crm-mailing-created_by">
+          <a href ={crmURL p='civicrm/contact/view' q="reset=1&cid="}{$row.created_id} title="{$row.created_by|escape}">
+            {$row.created_by|mb_truncate:20:"..."}
+          </a>
+        </td>
         <td class="crm-mailing-created_date">{$row.created_date}</td>
-        <td class="crm-mailing-scheduled_by"><a href ={crmURL p='civicrm/contact/view' q="reset=1&cid="}{$row.scheduled_id}>{$row.scheduled_by}</a></td>
+        <td class="crm-mailing-scheduled_by">
+          <a href ={crmURL p='civicrm/contact/view' q="reset=1&cid="}{$row.scheduled_id} title="{$row.scheduled_by|escape}">
+            {$row.scheduled_by|mb_truncate:20:"..."}
+          </a>
+        </td>
         <td class="crm-mailing-scheduled">{$row.scheduled}</td>
         <td class="crm-mailing-start">{$row.start}</td>
         <td class="crm-mailing-end">{$row.end}</td>