<div id="answer_{id}">
	<div class="center-area">
		<div class="left-side">
			<img src="../{avatar}" alt="{login}">
			<a href="../profile?id={author}" style="color: {gp_color}">
				{login}
			</a>
			<a href="../messages?create_id={author}">
				<i class="fas fa-envelope" tooltip="yes" title="Написать {login}"></i>
			</a>
			<p>{gp_name}</p>
			<p>Рейтинг: {reit}</p>
			<p>Сообщений: {answers}</p>
			<p>Спасибок: {thanks}</p>
		</div>
		<div class="right-side">
			<div class="top-area">
				<a href="#answer_{id}">
					<i class="far fa-clock"></i> {date}
				</a>
				{if(is_worthy("r"))}
				<a onclick="dell_answer('{id}');">
					<span class="m-icon icon-trash" tooltip="yes" title="Удалить"></span>
				</a>
				{/if}

				{if((is_worthy("r")) || (is_auth() && ('{author_id}' == '{my_id}') and ('1' == '{check}')))}
				<a href="../forum/edit_message?id={topic_id}&id2={id}">
					<span class="m-icon icon-pencil" tooltip="yes" title="Редактировать"></span>
				</a>
				{/if}
			</div>
			<div id="text_{id}" class="with_code">
				{text}
			</div>
			{if('{edited_by_id}' != '')}
				<div class="edited">Отредактировал: <a href="../profile?id={edited_by_id}" title="{edited_by_login}">{edited_by_login}</a>, {edited_time}</div>
			{/if}
			{if('{signature}' != '')}
				<div class="with_code signature">
					{signature}
				</div>
			{/if}
		</div>
		<div class="clearfix"></div>
	</div>

	<div class="bottom-area">
		{if(is_auth())}
		<div class="left-side">
			<div class="btn-group">
				{if('{author_id}' == '{my_id}')}
				<button class="btn btn-outline-primary btn-sm w-100" tooltip="yes" title="Ответить" onclick="answer({id}, '{login}', '{link}');">
					<i class="fas fa-comment"></i>
				</button>
				{else}
				<button class="btn btn-outline-primary btn-sm" tooltip="yes" title="Ответить" onclick="answer({id}, '{login}', '{link}');">
					<i class="fas fa-comment"></i>
				</button>
				<button class="btn btn-outline-primary btn-sm" tooltip="yes" title="Спасибо" onclick="thank({id}, 0);">
					<i class="fas fa-thumbs-up"></i>
				</button>
				{/if}
			</div>
		</div>
		{else}
		<div class="left-side">
			<div class="btn-group">
				<button class="btn btn-outline-primary btn-sm" tooltip="yes" title="Ответить" onclick="show_stub();">
					<i class="fas fa-comment"></i>
				</button>
				<button class="btn btn-outline-primary btn-sm" tooltip="yes" title="Спасибо" onclick="show_stub();">
					<i class="fas fa-thumbs-up"></i>
				</button>
			</div>
		</div>
		{/if}

		<div class="right-side">
			{mess_thanks}
		</div>
		<div class="clearfix"></div>
	</div>
</div>