<commit_before><?php use_helper('Javascript') ?>

<?php slot('chatroom_body'); ?>

<div style="float: right">
<?php if ($room->isEditable($sf_user->getMemberId())): ?>
<?php echo link_to('[編集]', '@chatroom_edit?id='.$room->id) ?>&nbsp;
<?php endif; ?>
<?php echo link_to('[ログアウト]', '@chatroom_logout?id='.$room->id) ?>
</div>
<div>作成者: <?php echo link_to($room->getMember()->name, '@obj_member_profile?id='.$room->member_id); ?></div>

<table id="chat"><tr>
<td>
<dl id="chatview">
<?php include_partial('chatview', array('chatlist' => $chatlist)) ?>

<dd id="restart" style="display: none">
<a href="javascript:void(0)" id="restartLink">再接続する</a>
</dd>

</dl>
</td>
<td style="width: 150px">
<dl id="memberlist">
<?php include_partial('memberlist', array('memberlist' => $memberlist)) ?>
</dl>
</td>
</tr></table>

<?php if (isset($form)): ?>

<form id="chat_content" method="post" action="<?php echo url_for('@chatroom_post?id='.$room->id) ?>">
<?php echo $form->renderHiddenFields() ?>
<div>
<?php echo $form['command']->renderLabel().': '.$form['command'] ?><br />
<?php echo $form['body']->render(array('autocomplete' => 'off')) ?>
<input type="submit" id="submit" value="送信" /><commit_msg>チャットルーム作成者のページを別窓で開く<commit_after><?php use_helper('Javascript') ?>

<?php slot('chatroom_body'); ?>

<div style="float: right">
<?php if ($room->isEditable($sf_user->getMemberId())): ?>
<?php echo link_to('[編集]', '@chatroom_edit?id='.$room->id) ?>&nbsp;
<?php endif; ?>
<?php echo link_to('[ログアウト]', '@chatroom_logout?id='.$room->id) ?>
</div>
<div>作成者: <?php echo link_to($room->getMember()->name, '@obj_member_profile?id='.$room->member_id, array('popup' => true)) ?></div>

<table id="chat"><tr>
<td>
<dl id="chatview">
<?php include_partial('chatview', array('chatlist' => $chatlist)) ?>

<dd id="restart" style="display: none">
<a href="javascript:void(0)" id="restartLink">再接続する</a>
</dd>

</dl>
</td>
<td style="width: 150px">
<dl id="memberlist">
<?php include_partial('memberlist', array('memberlist' => $memberlist)) ?>
</dl>
</td>
</tr></table>

<?php if (isset($form)): ?>

<form id="chat_content" method="post" action="<?php echo url_for('@chatroom_post?id='.$room->id) ?>">
<?php echo $form->renderHiddenFields() ?>
<div>
<?php echo $form['command']->renderLabel().': '.$form['command'] ?><br />
<?php echo $form['body']->render(array('autocomplete' => 'off')) ?>
<input type="submit" id="submit" value="送信" />
{'fraction_non_alphanumeric': 0.27520661157024795, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 7.771739130434782, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6739712', 'n_tokens_mistral': 937, 'n_tokens_neox': 933, 'n_words': 172}