Commit 813006731cc3504b5560d3ffd412dbc39d1ad3ff
1 parent
15b65346
KTS-2780
"search results with long filenames span multiple rows." Updated. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7820 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
templates/ktcore/search2/search_results.smarty
| ... | ... | @@ -134,10 +134,10 @@ function onShowAll(showall) |
| 134 | 134 | |
| 135 | 135 | {foreach item=document from=$results} |
| 136 | 136 | <tr><td> |
| 137 | - <input type="checkbox" name="selection_d[]" id="cb{$cbid}" value="{$document->DocumentID}"><nobr><a href="view.php?fDocumentId={$document->DocumentID}"><B>{$document->Title}</b></a> | |
| 137 | + <input type="checkbox" name="selection_d[]" id="cb{$cbid}" value="{$document->DocumentID}"><nobr><a href="view.php?fDocumentId={$document->DocumentID}"><B>{$document->Title|truncate:80}</b></a> | |
| 138 | 138 | {if $document->Title != $document->Filename} |
| 139 | 139 | |
| 140 | - <font style=" color: green "> - Filename: {$document->Filename}</font> | |
| 140 | + <font style=" color: green "> - Filename: {$document->Filename|truncate:40}</font> | |
| 141 | 141 | {/if} |
| 142 | 142 | {if !$document->IsAvailable} |
| 143 | 143 | |
| ... | ... | @@ -149,7 +149,7 @@ function onShowAll(showall) |
| 149 | 149 | <font style=" color: orange ">{i18n}Version:{/i18n} {$document->Version}</font></td> |
| 150 | 150 | </tr> |
| 151 | 151 | <tr><td colspan=2>{$document->Text}</td></tr> |
| 152 | - <tr><td><font style=" color: green "><a href="{$rootUrl}/browse.php?fFolderId={$document->FolderId}">{$document->FullPath}</a>/{$document->Title} - {$document->Filesize}</font></td> | |
| 152 | + <tr><td><font style=" color: green "><a href="{$rootUrl}/browse.php?fFolderId={$document->FolderId}" tag="{$document->FullPath}">{$document->FullPath|truncate:40}</a>/{$document->Title|truncate:40} - {$document->Filesize}</font></td> | |
| 153 | 153 | <td align=right><nobr> |
| 154 | 154 | <font style="color: orange "> |
| 155 | 155 | {i18n}Created By:{/i18n} {$document->CreatedBy} | ... | ... |