@model PrivateMessageModel
@{
    Layout = "_ColumnsOne";

    //title
    NopHtml.AddTitleParts(T("PageTitle.ViewPM").Text);
    //page class
    NopHtml.AppendPageCssClassParts("html-private-messages");
    NopHtml.AppendPageCssClassParts("html-private-message-view-page");
}
<div class="page private-messages private-message-view-page">
    <div class="page-title panel-heading">
        <h1>@T("PrivateMessages.View.ViewMessage")</h1>
    </div>
    <div class="page-body">
        <div class="view-message">
            <ul class="message-head">
                <li class="sender">
                    <label>@T("PrivateMessages.View.From")</label>
                    <span>@Model.CustomerFromName</span>
                </li>
                <li class="recipient">
                    <label>@T("PrivateMessages.View.To")</label>
                    <span>@Model.CustomerToName</span>
                </li>
                <li class="subject">
                    <label>@T("PrivateMessages.View.Subject")</label>
                    <span>@Model.Subject</span>
                </li>
            </ul>
            <div class="message">
                <span>@Html.Raw(Model.Message)</span>
            </div>
            <div class="options">
                <button type="button" class="btn btn-default reply-pm-button" onclick="setLocation('@Url.RouteUrl("SendPMReply", new { toCustomerId = Model.FromCustomerId, replyToMessageId = Model.Id })')">
                    @T("PrivateMessages.View.ReplyButton")
                </button>
                <button type="button" class="btn btn-default delete-pm-button" onclick="setLocation('@Url.RouteUrl("DeletePM", new { privateMessageId = Model.Id })')">
                    @T("PrivateMessages.View.DeleteButton")
                </button>
                <button type="button" class="btn btn-default back-pm-button" onclick="setLocation('@Url.RouteUrl("PrivateMessages")')">
                    @T("PrivateMessages.View.BackButton")
                </button>
            </div>
        </div>
    </div>
</div>
