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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<table>
<tr>
<td nowrap="nowrap" class="date" colspan="3">
Year: {foreach from=$yearlist item=year}{if $year != $thisyear}<a href="{$mwpath}/uri/{$year}-01-01">{$year}</a> {else}{$year}{/if}{/foreach}
</td>
</tr>
<tr>
<td nowrap="nowrap" class="date" colspan="3">
Month: {foreach from=$monthlist item=month}{if $month != $thismonth}<a href="{$mwpath}/uri/{$thisyear}-{$month}-01">{$month}</a> {else}{$month} {/if}{/foreach}
</td>
</tr>
<tr>
<td nowrap="nowrap" class="date" colspan="3">
Day: {foreach from=$daylist item=day}{if $day != $thisday}<a href="{$mwpath}/uri/{$thisyear}-{$thismonth}-{$day}">{$day}</a> {else}{$day}{/if}{/foreach}
</td>
</tr>
{assign var=lastday value=''}
{foreach from=$urilist item=row name=list}
{if $row.day != $lastday}
{assign var=lastday value=$row.day}
<tr>
<td nowrap="nowrap" class="date" colspan="3">{$row.added|date_format:'%d %b %Y'}</td>
</tr>
{/if}
{assign var=rows value=1}
{if $row.title}{assign var=rows value=$rows+1}{/if}
{if count($row.taglist)}{assign var=rows value=$rows+1}{/if}
<tr>
<td nowrap="nowrap" class="time" rowspan="{$rows}">{$row.hour}</td>
<td nowrap="nowrap" class="user" rowspan="{$rows}">{$row.user}</td>
<td ><a href="{$row.url|escape:"hexentity"}">{$row.url|truncate:80:" ... ":true:true|escape:"html"}</a></td>
</tr>
{if $row.title}
<tr><td>{$row.title|escape:"html"}</td></tr>
{/if}
{if count($row.taglist)}
<tr>
<td class="taglist">
Tags:
{foreach from=$row.taglist item=tcount key=tname name=tags}{$tname}{if !$smarty.foreach.tags.last}, {/if}{/foreach}
</td>
</tr>
{/if}
{/foreach}
</table>