newviews.tpl 1.03 KB
Newer Older
1
{if $views}
Evonne Cheung's avatar
Evonne Cheung committed
2
  <table class="viewlist">
3
  {foreach from=$views item=view}
Evonne Cheung's avatar
Evonne Cheung committed
4
5
6
7
8
    <tr class="{cycle values='r0,r1'}">
            <td><h4><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title}</a></h4>
              <div class="details">{$view.shortdescription|safe|clean_html}</div></td>
            {if $view.sharedby}
            <td>
Evonne Cheung's avatar
Evonne Cheung committed
9
                {if $view.group && $loggedin}
Evonne Cheung's avatar
Evonne Cheung committed
10
                  <a href="{$WWWROOT}group/view.php?id={$view.group}" class="s">{$view.sharedby}</a>
Evonne Cheung's avatar
Evonne Cheung committed
11
                {elseif $view.owner && $loggedin}
Evonne Cheung's avatar
Evonne Cheung committed
12
                  <a href="{$WWWROOT}user/view.php?id={$view.owner}" class="s">{$view.sharedby}</a>
Evonne Cheung's avatar
Evonne Cheung committed
13
14
15
                {else}
                  {$view.sharedby}
                {/if}
Evonne Cheung's avatar
Evonne Cheung committed
16
             	<div class="postedon nowrap">
Evonne Cheung's avatar
Evonne Cheung committed
17
                  {if $view.mtime == $view.ctime}{str tag=Created}{else}{str tag=Updated}{/if}
Evonne Cheung's avatar
Evonne Cheung committed
18
                  {$view.mtime|strtotime|format_date:'strftimedate'}</div>
Evonne Cheung's avatar
Evonne Cheung committed
19
            </td>
Evonne Cheung's avatar
Evonne Cheung committed
20
            {/if}
Evonne Cheung's avatar
Evonne Cheung committed
21
        </tr>
22
  {/foreach}
Evonne Cheung's avatar
Evonne Cheung committed
23
  </table>
24
25
{else}
  {str tag=noviews section=view}
26
{/if}