From e5b943e4caced97fce77902eb309b5a5693f7fd5 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 17 Feb 2017 18:19:28 +0100 Subject: [PATCH] fixes a bug? --- Yavsc/Views/Blogspot/Index.cshtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Yavsc/Views/Blogspot/Index.cshtml b/Yavsc/Views/Blogspot/Index.cshtml index c20d6460..dfe7eeb0 100644 --- a/Yavsc/Views/Blogspot/Index.cshtml +++ b/Yavsc/Views/Blogspot/Index.cshtml @@ -39,8 +39,9 @@ @item.Title - @item.Content.Substring(0,120) - @((item.Content.Length>120)?"...":"") + + @((item.Content.Length > 120) ? item.Content.Substring(0, 120) + "..." : item.Content.Substring(0, 120)) + (@item.Author.UserName , posté le @item.DateCreated.ToString("dddd d MMM yyyy à H:mm")