From: <mo...@us...> - 2004-02-29 01:36:52
|
Update of /cvsroot/tikiwiki/tiki/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17664/templates Modified Files: tiki-view_tracker.tpl Log Message: added parsing of textarea field type in list mode and changed defaul truncation for other fields Index: tiki-view_tracker.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/tiki-view_tracker.tpl,v retrieving revision 1.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- tiki-view_tracker.tpl 25 Feb 2004 06:34:42 -0000 1.71 +++ tiki-view_tracker.tpl 29 Feb 2004 01:26:59 -0000 1.72 @@ -53,7 +53,7 @@ <select name="filterfield"> {section name=ix loop=$fields} {if $fields[ix].isTblVisible eq 'y' and $fields[ix].isSearchable eq 'y' and $fields[ix].type ne 'f' and $fields[ix].type ne 'j' and $fields[ix].type ne 'i'} -<option value="{$fields[ix].fieldId|escape}"{if $fields[ix].fieldId eq filterfield} selected="selected"{/if}>{$fields[ix].name|truncate:52:"..."}</option> +<option value="{$fields[ix].fieldId|escape}"{if $fields[ix].fieldId eq filterfield} selected="selected"{/if}>{$fields[ix].name|truncate:255:"..."}</option> {/if} {/section} </select> @@ -89,7 +89,7 @@ <td class="heading auto">{$fields[ix].name|default:" "}</td> {elseif $fields[ix].isTblVisible eq 'y' and $fields[ix].type ne 'x' and $fields[ix].type ne 'h'} <td class="heading auto"><a class="tableheading" href="tiki-view_tracker.php?{if $status}status={$status}&{/if}trackerId={$trackerId}&offset={$offset}&sort_mode=f_{if $sort_mode eq -'f_'|cat:$fields[ix].fieldId|cat:'_asc'}{$fields[ix].fieldId|escape:"url"}_desc{else}{$fields[ix].fieldId|escape:"url"}_asc{/if}">{$fields[ix].name|truncate:52:"..."|default:" "}</a></td> +'f_'|cat:$fields[ix].fieldId|cat:'_asc'}{$fields[ix].fieldId|escape:"url"}_desc{else}{$fields[ix].fieldId|escape:"url"}_asc{/if}">{$fields[ix].name|truncate:255:"..."|default:" "}</a></td> {/if} {/section} {if $tracker_info.showCreated eq 'y'} @@ -126,7 +126,7 @@ {if $items[user].field_values[ix].type eq 'l'} <td class="auto"> {foreach key=tid item=tlabel from=$items[user].field_values[ix].links} -<div><a href="tiki-view_tracker_item.php?trackerId={$items[user].field_values[ix].trackerId}&itemId={$tid}" class="link">{$tlabel|truncate:52:"..."}</a></div> +<div><a href="tiki-view_tracker_item.php?trackerId={$items[user].field_values[ix].trackerId}&itemId={$tid}" class="link">{$tlabel|truncate:255:"..."}</a></div> {/foreach} </td> {elseif $items[user].field_values[ix].isMain eq 'y' or ($items[user].field_values[ix].linkId and $items[user].field_values[ix].trackerId)} @@ -144,16 +144,19 @@ and $items[user].field_values[ix].options_array[2]}<span class="formunit"> {$items[user].field_values[ix].options_array[2]}</span>{/if} {if $items[user].field_values[ix].type eq 'f'} -{$items[user].field_values[ix].value|tiki_short_datetime|truncate:52:"..."|default:" "} +{$items[user].field_values[ix].value|tiki_short_datetime|truncate:255:"..."|default:" "} {elseif $items[user].field_values[ix].type eq 'c'} {$items[user].field_values[ix].value|replace:"y":"Yes"|replace:"n":"No"} +{elseif $items[user].field_values[ix].type eq 'a'} +{$items[user].field_values[ix].pvalue} + {elseif $items[user].field_values[ix].type eq 'i'} <img src="{$items[user].field_values[ix].value}" alt="" /> {else} -{$items[user].field_values[ix].value|truncate:52:"..."|default:" "} +{$items[user].field_values[ix].value|truncate:255:"..."|default:" "} {/if} @@ -167,9 +170,13 @@ <td class="auto"> {$items[user].field_values[ix].value|tiki_short_datetime|default:" "} </td> +{elseif $items[user].field_values[ix].type eq 'a'} +<td class="auto"> +{$items[user].field_values[ix].pvalue} +</td> {elseif $items[user].field_values[ix].type ne 'x' and $items[user].field_values[ix].type ne 'h'} <td class="auto"> -{$items[user].field_values[ix].value|truncate:52:"..."|default:" "} +{$items[user].field_values[ix].value|truncate:255:"..."|default:" "} </td> {/if} {/if} @@ -194,7 +201,6 @@ {if $tiki_p_admin_trackers eq 'y'} <td><a class="link" href="tiki-view_tracker.php?status={$status}&trackerId={$trackerId}&offset={$offset}&sort_mode={$sort_mode}{section name=mix loop=$fields}{if $fields[mix].value}&{$fields[mix].name}={$fields[mix].value}{/if}{/section}&remove={$items[user].itemId}" -onclick="return confirmTheLink(this,'{tr}Are you sure you want to delete this tracker item?{/tr}');" title="{tr}delete{/tr}"><img border="0" alt="{tr}delete{/tr}" src="img/icons2/delete.gif" /></a></td> {/if} </tr> |