<?php
/**
 * Rooms index template
 *
 * @author Noriko Arai <arai@nii.ac.jp>
 * @author Shohei Nakajima <nakajimashouhei@gmail.com>
 * @link http://www.netcommons.org NetCommons Project
 * @license http://www.netcommons.org/license.txt NetCommons License
 * @copyright Copyright 2014, NetCommons Project
 */

if (!isset($rolesRoomsUsers)) {
	$rolesRoomsUsers = array();
}
?>

<tr class="<?php echo $this->Rooms->statusCss($room); ?>">
	<td>
		<?php echo $this->Rooms->roomName($room, $nest); ?>
	</td>

	<td>
		<?php echo $this->Rooms->roomRoleName(Hash::get($rolesRoomsUsers, $room['Room']['id'])); ?>
	</td>

	<td>
		<?php echo $this->Rooms->statusLabel($room, '%s', true); ?>
	</td>

	<td class="row-datetime">
		<?php echo $this->Rooms->roomAccessed(Hash::get($rolesRoomsUsers, $room['Room']['id'])); ?>
	</td>
</tr>
