@model PrivateMessageListModel @using SmartStore.Web; @using SmartStore.Web.Models.PrivateMessages; @using SmartStore.Web.Framework.UI;
@if (Model.Messages.Count > 0) { using (Html.BeginForm("InboxUpdate", (string)null)) { @for (int i = 0; i < Model.Messages.Count; i++) { var item = Model.Messages[i]; @**@ }
@T("PrivateMessages.Inbox.FromColumn") @T("PrivateMessages.Inbox.SubjectColumn") @T("Common.Date")
@if (item.AllowViewingFromProfile) { @Html.RouteLink(item.CustomerFromName, "CustomerProfile", new { Id = item.FromCustomerId }) } else { @item.CustomerFromName } @Html.ActionLink(item.Subject, "View", new { id = item.Id }, new { @class = (item.IsRead) ? "pm-read" : "pm-unread" }) @item.CreatedOn
if (Model.TotalPages > 1) { @Html.SmartStore().Pager(Model).Name("paginator").Route("PrivateMessages", ViewData["PagerRouteValues"]) }
} }