refactoring

This commit is contained in:
Paul Schneider 2017-01-19 14:32:03 +01:00
commit add449c18a
7 changed files with 30 additions and 29 deletions

View file

@ -0,0 +1,21 @@
@model ApplicationUser
blah
<img src="~/Avatars/@(Model.UserName).xs.png" alt="avatar">
@Model.UserName
@if (Model.Posts!=null) {
<li> <a asp-controller="Blogspot" asp-action="UserPosts"
asp-route-id="@Model.UserName">@SR["His blog"]</a>
</li>
}
@if (!string.IsNullOrEmpty(
Model.DedicatedGoogleCalendar))
{
<li> @SR["Exposes his Google calendar!"]
</li>
}
@if (Model.Devices?.Count>0)
{
<li> @SR["Uses the mobile application, and receives push notifications"]
</li>
}
}