refx & wf actions config

This commit is contained in:
Paul Schneider 2017-02-12 23:53:53 +01:00
commit d8fa166115
11 changed files with 38 additions and 25 deletions

View file

@ -1,11 +1,24 @@
@model IEnumerable<Blog>
@{
ViewData["Title"] = "Index";
}
<h2>Index</h2>
<p class="text-success">@ViewData["StatusMessage"]</p>
@if (User.IsSignedIn()) {
<label>
<input type="checkbox" id="cbv" checked/>Invisibles, posts privés</label>
<script>
$("#cbv").change(function() {
if (this.checked) {
$("tr.ipost").removeClass("hidden");
} else {
$("tr.ipost").addClass("hidden");
}
});
</script>
}
<p>
<a asp-action="Create">@SR["Create a new article"]</a>
</p>
@ -26,12 +39,14 @@
<markdown>@item.Title</markdown></a>
</td>
<td>
<span style="font-size:x-small;"> @item.Author.UserName </span> <br>
<markdown>@item.Content.Substring(0,120)</markdown>
@((item.Content.Length>120)?"...":"")
<span style="font-size:x-small;">(@item.Author.UserName </span>,
<span style="font-size:xx-small;">
posté le @item.DateCreated.ToString("dddd d MMM yyyy à H:mm")
@if ((item.DateModified - item.DateCreated).Minutes > 0){ 
@:- Modifié le @item.DateModified.ToString("dddd d MMM yyyy à H:mm")
}
})
</span>
</td>
<td>