Files
Testing/leptesting/imobile_user_messages_view.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

44 lines
2.2 KiB
Smarty

{include file='imobile_header.tpl'}
<div id="contentlist">
<div class="title">{$pmconvo_info.pmconvo_subject|truncate:40:"...":true}</div>
{capture assign='collaborators'}{section name=coll_loop loop=$collaborators}<a href='{$url->url_create("profile", $collaborators[coll_loop]->user_info.user_username)}'>{$collaborators[coll_loop]->user_displayname}</a>{if $smarty.section.coll_loop.last != TRUE}, {/if}{/section}{/capture}
<div class="descbox">{lang_sprintf id=801 1=$collaborators}</div>
<ul class="messages message_view">
{section name=pm_loop loop=$pms}
<li class="message">
<img class='icon' src='{$pms[pm_loop].author->user_photo("./images/nophoto.gif", TRUE)}' class='icon' border='0'>
<span class="name"><a href='{$url->url_create("profile",$pms[pm_loop].author->user_info.user_username)}'>{$pms[pm_loop].author->user_displayname}</a></span>
<span class="comment">{$pms[pm_loop].pm_body|choptext:45:"<br>"}</span>
<span class="date">{$datetime->cdate("`$setting.setting_timeformat` `$setting.setting_dateformat`", $datetime->timezone($pms[pm_loop].pm_date, $global_timezone))}</span>
</li>
{/section}
</ul>
<ul class="pageitem">
<li class="feed">
<img src='./images/icons/action_postcomment.gif' border='0' class='icon'/ >
<div class="action">{if $collaborators|@count == 1}{lang_print id=802}{else}{lang_print id=803}{/if}</div>
</li>
<li class="textbox" id="post_comment_form" style="display: nonex;">
<div id='reply_error' style='display: none;'>{lang_print id=796}</div>
{if $blockerror}<div id='reply_error2' style='display: {$blockerror};'>{lang_print id=1321}</div>{/if}
<form action='user_messages_view.php#bottom' method='POST' onSubmit="{literal}if(this.reply.value.replace(/ /g, '') == '') { $('reply_error').style.display='block'; return false; } else { return true; }{/literal}">
<textarea name='reply' id='reply_body' rows="4" placeholder="Write something .."></textarea>
<input type='submit' class='iPush' name="submit" value='{lang_print id=791}'>
<input type='hidden' name='task' value='reply'>
<input type='hidden' name='pmconvo_id' value='{$pmconvo_info.pmconvo_id}'>
</form>
</li>
</ul>
</div>
{include file='imobile_footer.tpl'}