summaryrefslogtreecommitdiff
path: root/modules/mod_wiki_last_comments.tpl
blob: 1a548230d98b748a75c9ad008ded49768c60d7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_wiki_last_comments.tpl,v 1.2 2005/08/07 17:46:50 squareing Exp $ *}
{if $lastComments}
	{if $nonums eq 'y'}
		{eval var="{tr}Last `$module_rows` wiki comments{/tr}" assign="tpl_module_title"}
	{else}
		{eval var="{tr}Last wiki comments{/tr}" assign="tpl_module_title"}
	{/if}
	{bitmodule title="$moduleTitle" name="wiki_last_comments"}
		<ul class="wiki">
			{section name=ix loop=$lastComments}
				<li class="{cycle values="odd,even"}">
					<a href="{$smarty.const.WIKI_PKG_URL}index.php?content_id={$lastComments[ix].content_id}" title="{$lastComments[ix].comment_date|bit_short_datetime}, by {displayname hash=$lastComments[ix] nolink=1}{if $moretooltips eq 'y'} on page {$lastComments[ix].page}{/if}">
						{if $moretooltips ne 'y'}
						<b>{$lastComments[ix].content_title}</b>:
						{/if} {$lastComments[ix].title}
					</a>
				</li>
			{sectionelse}
				<li></li>
			{/section}
		</ul>
	{/bitmodule}
{/if}