From 74caf2c7ec8b90b17c482e3f832d43cf11065bad Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Thu, 5 Sep 2013 20:50:47 +0200 Subject: [PATCH] Implement Ajax-loading of message protocol --- acptemplate/__messageLogTable.tpl | 26 +++++ acptemplate/messageLog.tpl | 80 +++++--------- .../js/be.bastelstu.Chat.ACP.Log.litcoffee | 102 ++++++++++++++++++ file/lib/acp/page/MessageLogPage.class.php | 2 +- file/lib/data/message/MessageAction.class.php | 33 ++++++ 5 files changed, 190 insertions(+), 53 deletions(-) create mode 100644 acptemplate/__messageLogTable.tpl create mode 100644 file/acp/js/be.bastelstu.Chat.ACP.Log.litcoffee diff --git a/acptemplate/__messageLogTable.tpl b/acptemplate/__messageLogTable.tpl new file mode 100644 index 0000000..f12c738 --- /dev/null +++ b/acptemplate/__messageLogTable.tpl @@ -0,0 +1,26 @@ +{if $messages|count > 0} + + + + + + + + + + + + {foreach from=$messages item="message"} + + + + + + + + {/foreach} + +
{lang}wcf.global.objectID{/lang}{lang}chat.general.time{/lang}{lang}wcf.user.username{/lang}{lang}chat.acp.log.message{/lang}
{$message->messageID}{$message->time|date:"H:i:s"}

{@$message->getUserProfile()->getAvatar()->getImageTag(24)}

{$message->username}{@$message->getFormattedMessage("text/simplified-html")}
+{else} +

{lang}wcf.global.noItems{/lang}

+{/if} diff --git a/acptemplate/messageLog.tpl b/acptemplate/messageLog.tpl index 0c893b2..abeb96b 100644 --- a/acptemplate/messageLog.tpl +++ b/acptemplate/messageLog.tpl @@ -1,8 +1,11 @@ {include file='header' pageTitle='chat.acp.log.title'} - + +