@model IEnumerable> @{ ViewData["Title"] = "Blogs, l'index"; } @section header { } @section scripts { }

@ViewData["Title"]

@ViewData["StatusMessage"]

@if (User.IsSignedIn()) {

@SR["Create a new article"]

}
@foreach (var group in Model) { var title = group.Key; string secondclass=""; var first = group.First(); string trclass = (first.Visible) ? "visiblepost" : "hiddenpost";

@if (first.Photo==null) { } else {@first.Title}
@first.Author.UserName , (posté le @first.DateCreated.ToString("dddd d MMM yyyy à H:mm") @if ((first.DateModified - first.DateCreated).Minutes > 0){  @:- Modifié le @first.DateModified.ToString("dddd d MMM yyyy à H:mm",System.Globalization.CultureInfo.CurrentUICulture) })
    @if (await AuthorizationService.AuthorizeAsync(User, first, new ViewRequirement())) {
  • Details
  • } @if (await AuthorizationService.AuthorizeAsync(User, first, new EditRequirement())) {
  • @SR["Edit"]
  • @SR["Delete"]
  • }
long gcount = group.Count(); @if (gcount>1) {
@(gcount-1) autre@(gcount>2?"s":"") au même titre:
@foreach (var item in group.Skip(1)) { trclass = ((item.Visible)?"visiblepost":"hiddenpost");
@((item.Content?.Length > 120) ? item.Content.Substring(0, 120) + "..." : item.Content)
}
} }