MDL-30895 switch from dl tag to table in the accessible chat

This commit is contained in:
Jerome Mouneyrac 2013-08-08 17:15:03 +08:00
parent f05ea82cdc
commit 83f47164b1
2 changed files with 27 additions and 8 deletions

View file

@ -181,7 +181,12 @@ if ($messages) {
$allmessages[] = chat_format_message($message, $course->id, $USER);
}
}
echo '<table class="generaltable"><tbody>';
echo '<tr>
<th scope="col" class="cell">' . get_string('from') . '</th>
<th scope="col" class="cell">' . get_string('message', 'message') . '</th>
<th scope="col" class="cell">' . get_string('time') . '</th>
</tr>';
if (empty($allmessages)) {
echo get_string('nomessagesfound', 'message');
} else {
@ -189,7 +194,7 @@ if (empty($allmessages)) {
echo $message->basic;
}
}
echo '</tbody></table>';
echo '</div>';
echo $OUTPUT->container_end();
echo $OUTPUT->footer();