1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-02 23:20:08 +00:00

Prepare messageLog.tpl for using tab menus

This is work in progress, currently not a single message is being
displayed
This commit is contained in:
Maximilian Mader 2013-07-30 00:23:14 +02:00
parent 75c09e2a5d
commit 3a44dbe850

View File

@ -1,5 +1,14 @@
{include file='header' pageTitle='chat.acp.log.title'} {include file='header' pageTitle='chat.acp.log.title'}
<script>
//<![CDATA[
$(function() {
WCF.TabMenu.init();
});
//]]>
</script>
<header class="boxHeadline"> <header class="boxHeadline">
<h1>{lang}{@$pageTitle}{/lang}</h1> <h1>{lang}{@$pageTitle}{/lang}</h1>
</header> </header>
@ -44,33 +53,38 @@
<p class="info">{lang}wcf.global.noItems{/lang}</p> <p class="info">{lang}wcf.global.noItems{/lang}</p>
{/if} {/if}
{else} {else}
<div class="tabularBox tabularBoxTitle marginTop"> <div class="tabMenuContainer marginTop" data-active="timeTab-0" data-store="activeTabMenuItem">
<header> <nav class="tabMenu">
<h2>{lang}chat.acp.log.title{/lang} <span class="badge badgeInverse">{#$messages|count}</span></h2> <ul>
</header> {section name=tabLoop loop=24 step=3}
<li>
{assign var=anchor value='timeTab-'|concat:$tabLoop}
<a href="{@$__wcf->getAnchor($anchor)}">{if $tabLoop < 10}0{/if}{$tabLoop}:00 - {if $tabLoop + 2 < 10}0{/if}{$tabLoop + 2}:59</a>
</li>
{/section}
</ul>
</nav>
<table class="table"> {section name=contentLoop loop=24 step=3}
<thead> <div id="timeTab-{$contentLoop}" class="container containerPadding tabMenuContainer tabMenuContent">
<tr> <nav class="menu">
<th>{lang}wcf.global.objectID{/lang}</th> <ul>
<th>{lang}chat.general.time{/lang}</th> {section name=subTabLoop loop=6}
<th colspan="2">{lang}wcf.user.username{/lang}</th> {assign var=subAnchor value='timeTab-'|concat:$contentLoop|concat:'-subTab-'|concat:$subTabLoop}
<th>{lang}chat.acp.log.message{/lang}</th> <li><a href="{@$__wcf->getAnchor($subAnchor)}">{if $contentLoop + $subTabLoop / 2 < 10}0{/if}{$contentLoop + $subTabLoop / 2|floor}:{if $subTabLoop % 2 == 0}0{/if}{($subTabLoop % 2) * 30} - {if $contentLoop + $subTabLoop / 2 < 10}0{/if}{$contentLoop + $subTabLoop / 2|floor}:{($subTabLoop % 2) * 30 + 29}</a>
</tr> </li>
</thead> {/section}
</ul>
<tbody> </nav>
{foreach from=$messages item='message'}
<tr> {section name=subTabLoop loop=6}
<td class="columnID">{$message->messageID}</td> {assign var=subAnchor value='timeTab-'|concat:$contentLoop|concat:'-subTab-'|concat:$subTabLoop}
<td style="width: 1px !important;">{$message->time|date:'H:i:s'}</td> <div id="{$subAnchor}" class="hidden">
<td class="columnIcon"><p class="framed">{@$message->getUserProfile()->getAvatar()->getImageTag(24)}</p></td> {#$contentLoop / 3} - {#$subTabLoop}
<td class="columnTitle columnUsername right" style="width: 1px !important;">{$message->username}</td> </div>
<td>{@$message->getFormattedMessage('text/simplified-html')}</td> {/section}
</tr> </div>
{/foreach} {/section}
</tbody>
</table>
</div> </div>
{/if} {/if}