<%@ Page Title="Blogs - Indexe" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" EnableTheming="True" StylesheetTheme="dark" %> <%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>
<% foreach (var g in Model.GroupByUser()) { %> <% foreach (var p in g) { %> <% if (Membership.GetUser()!=null) if ((Membership.GetUser().UserName==g.Key) || (Roles.IsUserInRole ("Admin"))) { %><% } %> <% } %> <% } %>
<%= Html.ActionLink(g.Key, "Index", new { user = g.Key }, new { @class = "userref" } ) %>
<%= Html.ActionLink(p.Title, "UserPost", new { user = g.Key, title = p.Title }, new { @class = "usertitleref" } ) %> le <%=p.Posted.ToString("D") %> <%= Html.ActionLink("Editer","Edit", new { id = p.Id }, new { @class="actionlink" }) %> <%= Html.ActionLink("Supprimer","RemovePost", new { id = p.Id }, new { @class="actionlink" } ) %>
<% rp1.ResultCount = Model.Count; rp1.ResultsPerPage = 50; %> <% rp1.CurrentPage = (int) ViewData["PageIndex"]; %>