Commit eaacfe41 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Update str_shorten calls in filebrowser element

parent 06fab5a9
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
{/if} {/if}
</td> </td>
<td class="filename"> <td class="filename">
{assign var=displaytitle value=$file->title|escape|str_shorten:34} {assign var=displaytitle value=$file->title|escape|str_shorten_text:34}
{if $file->artefacttype == 'folder'} {if $file->artefacttype == 'folder'}
<a href="{$querybase}folder={$file->id}" class="changefolder" title="{str tag=gotofolder section=artefact.file arg1=$displaytitle}">{$displaytitle}</a> <a href="{$querybase}folder={$file->id}" class="changefolder" title="{str tag=gotofolder section=artefact.file arg1=$displaytitle}">{$displaytitle}</a>
{else} {else}
......
{foreach from=$path item=f name=path} {foreach from=$path item=f name=path}
{if !$smarty.foreach.path.first}/ {/if}<a href="{$querybase}folder={$f->id}" class="changefolder">{$f->title|escape|str_shorten:34}</a> {if !$smarty.foreach.path.first}/ {/if}<a href="{$querybase}folder={$f->id}" class="changefolder">{$f->title|escape|str_shorten_text:34}</a>
{/foreach} {/foreach}
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</thead> </thead>
<tbody> <tbody>
{foreach from=$selectedlist item=file} {foreach from=$selectedlist item=file}
{assign var=displaytitle value=$file->title|escape|str_shorten:34} {assign var=displaytitle value=$file->title|escape|str_shorten_text:34}
<tr class="r{cycle values=0,1}{if !empty($highlight) && $highlight == $file->id} highlight-file{/if}"> <tr class="r{cycle values=0,1}{if !empty($highlight) && $highlight == $file->id} highlight-file{/if}">
<td> <td>
<img src="{if $file->artefacttype == 'image'}{$WWWROOT}artefact/file/download.php?file={$file->id}&size=20x20{else}{$THEMEURL}images/{$file->artefacttype}.gif{/if}"> <img src="{if $file->artefacttype == 'image'}{$WWWROOT}artefact/file/download.php?file={$file->id}&size=20x20{else}{$THEMEURL}images/{$file->artefacttype}.gif{/if}">
......
Supports Markdown
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