@inherits Umbraco.Web.Mvc.UmbracoViewPage<uForum.Models.Comment>
@using uForum;

    var answer = (int)ViewData["answer"];
    var mem = Members.GetCurrentMember();

    if (Members.IsLoggedIn())
    {

        <div class="actions">
			
			<a href="#" class="delete-reply">
                <i class="icon-Delete-key"></i><span>Delete post</span>
            </a>
			
			<a href="#" class="mark-as-spam">
                <i class="icon-Alert-alt"></i><span>Mark as spam</span>
            </a>
					
            @if (answer == 0 && (Members.IsAdmin() || mem.Id == Model.MemberId))
            {
                <a href="#" class="solved" data-id="@Model.Id">
                    <i class="icon-Check"></i><span>Mark as solution</span>
                </a>
            }

            <a href="#" id="copy-link" class="copy-link" data-id="@Model.Id">
                <i class="icon-Link"></i><span>Copy Link</span>
            </a>

            @if (Model.ParentCommentId <= 0)
            {
                <a href="#" data-topic="@Model.TopicId" data-parent="@Model.Id" data-controller="comment" class="forum-reply reply">
                    <i class="icon-Reply-arrow"></i><span>Reply</span>
                </a>
            }

            <a href="#" class="edit-post">
                <i class="icon-Edit"></i><span>Edit post</span>
            </a>

        </div>
    }