Login registration
This commit is contained in:
parent
716bfb2e05
commit
277dff7d61
22 changed files with 171 additions and 176 deletions
|
|
@ -34,7 +34,7 @@
|
|||
<td>
|
||||
<asciidoc summary="256">@item.Content</asciidoc>
|
||||
@if (trunked) { <a asp-action="Details" asp-route-id="@item.Id" class="bloglink">...</a> }
|
||||
<span style="font-size:x-small;">(@item.Author.UserName </span>,
|
||||
<span style="font-size:x-small;">(@Html.DisplayFor(m => item.Author)</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){
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
@model ApplicationUser
|
||||
@{
|
||||
var avuri = "/Avatars/"+Model.UserName+".s.png";
|
||||
var userPosted = Model.Posts!=null && Model.Posts.Count()>1;
|
||||
}
|
||||
<div class="userinfo">
|
||||
<h3>
|
||||
<img src="@avuri" asp-append-version="true" class="smalltofhol" />
|
||||
</h3>
|
||||
@if (Model.Posts!=null && Model.Posts.Count()>1) { <a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName" class="btn btn-primary">index de ses articles</a>
|
||||
@if (userPosted) { <a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName" class="btn btn-primary">
|
||||
<img src="@avuri" asp-append-version="true" class="smalltofhol" alt="" title="@Model.UserName"/>
|
||||
</a>
|
||||
}else {
|
||||
Html.LabelFor(m=>m.UserName);
|
||||
}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue