<template name="chatRoomItem">
	<li class="link-room-{{rid}} background-transparent-darker-hover {{active}} {{#if unread}}has-unread{{/if}} {{#if alert}}has-alert{{/if}}">
		<a class="open-room" href="{{route}}" title="{{name}}">
			{{#if unread}}
				<span class="unread">{{unread}}</span>
			{{/if}}
			<i class="{{roomIcon}} {{userStatus}}" aria-label=""></i>
			<span class='name {{archived}}'>{{name}}</span>
			{{#if $not unread}}
				<span class='opt'>
					<i class="icon-eye-off hide-room" title="{{_ "Hide_room"}}" aria-label="{{_ "Hide_room"}}"></i>
					{{#if canLeave}}
						<i class="icon-logout leave-room" title="{{_ "Leave_room"}}" aria-label="{{_ "Leave_room"}}"></i>
					{{/if}}
				</span>
			{{/if}}
		</a>
	</li>
</template>
