feedbacklist.tpl 1.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  {foreach from=$data item=item}
    <tr class="{cycle name=rows values='r0,r1'}">
      <td>
        {$item->message}
        {if $item->attachmessage}<div>{$item->attachmessage}</div>{/if}
        <div class="details">
        {if $item->author}
          <div class="icon"><a href="{$WWWROOT}user/view.php?id={$item->author|escape}">
            <img src="{$WWWROOT}thumb.php?type=profileicon&id={$item->author|escape}&maxsize=20" valign="middle" alt="{$item->author|display_name}">
          </a></div>
          <a href="{$WWWROOT}user/view.php?id={$item->author|escape}">{$item->author|display_name}</a>
        {else}
          {$item->authorname|escape}
        {/if}
        | {$item->date|escape}
        {if $item->pubmessage}
           | {$item->pubmessage|escape}{if $item->makeprivateform}{$item->makeprivateform}{/if}
        {/if}
        {if $item->attachid}
           | {str tag=attachment section=view}: <a href="{$WWWROOT}artefact/file/download.php?file={$item->attachid}">{$item->attachtitle|escape}</a> ({$item->attachsize|escape})
        {/if}
        </div>
      </td>
    </tr>
  {/foreach}