<script type="text/template" id="cc_t_comment_template">
	<div id="cc_t_comment_{{=id}}" class="media cc_t_comment" name="cc_wrap_div" c_id="{{=id}}">
		<a href="/intranet/people/viewprofile.php?id={{=user.id}}" class="cc_owner_link media-left mr-2" name="cc_owner_link">
			<img name="cc_owner_img" class="media-object cc_owner_img" width="50" height="50" alt="Photo" src="{{-user.photo_url}}" />
		</a>

		<div class="media-body cc_owner">
			<strong>
				<a href="/intranet/people/viewprofile.php?id={{=user.id}}" class="cc_owner_link" name="cc_owner_link"><span class="cc_owner_name" name="cc_owner_name">{{-user.name}}</span></a>
			</strong>
			${common:cla_comments:wrote.body}...

			<div class="cc_comment " name="cc_comment" data-plain="{{-body_plain}}">
				{{=body}}
			</div>
			{{ if (editable) { }}
				<div class="card js-cla-comments-edit d-none" name="cc_edit">
					<div class="card-body">
						<div class="form-group">
							<textarea name="comment_textedit" cols="50" rows="3" class="form-control"></textarea>
						</div>
						<input name="common:save" type="button" value="Save" class="cc_edit_save_button btn btn-primary btn-sm" c_id="{{=id}}" />
						<input name="common:cancel_button" type="button" value="Cancel" class="cc_edit_cancel_button btn btn-secondary btn-sm" />
					</div>
				</div>
			{{ } }}

			<small class="muted">
				{{ if(add_info) { }}
					<span class="cc_add_info text-warning" name="cc_add_info">{{=add_info}}</span> &bull;
				{{ } }}

				<span class="cc_edit" name="cc_edit">
					{{ if (editable) { }}
						<a href="#" name="common:cla_comments:img_edit" class="js-cla-comment-edit cc_edit" c_id="{{=id}}">
							<span c_id="{{=id}}">${common:edit.body}</span>
						</a>
						&bull;
						<a href="#" name="common:cla_comments:img_delete" class="cc_delete" c_id="{{=id}}">
							<span c_id="{{=id}}">${common:delete.body}</span>
						</a>
						&bull;
					{{ } }}
				</span>
				<span class="cc_comment_time" name="cc_comment_time" date="{{-date}}">{{-date_formatted}}</span>
			</small>

		</div>
	</div>
</script>
