43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
@model PerformerProfile
|
|
|
|
<div class="performer @(Model.Active?"active":"inactive")">
|
|
@if (Model.Performer != null) {
|
|
@if (Model.Performer.Avatar != null) {
|
|
<img src="~/Avatars/@Model.Performer.Avatar" alt="avatar">
|
|
}
|
|
@Model.Performer.UserName
|
|
|
|
<ul>
|
|
|
|
<li> @SR["Rating"]: @Model.Rate % </li>
|
|
@if (Model.MinDailyCost != null) {
|
|
<li>@SR["MinDailyCost"]: @Model.MinDailyCost€</li>
|
|
}
|
|
@if (Model.MinDailyCost != null) {
|
|
<li>@SR["MaxDailyCost"]: @Model.MaxDailyCost€</li>
|
|
}
|
|
@if (Model.WebSite!=null) {
|
|
<li>@SR["WebSite"]: @Model.WebSite</li>
|
|
}
|
|
@if (Model.DoesBlog) {
|
|
<li> <a asp-controller="Blogspot" asp-action="UserPosts"
|
|
asp-route-id="@Model.Performer.UserName">@SR["His blog"]</a>
|
|
</li>
|
|
}
|
|
@if (!string.IsNullOrEmpty(
|
|
Model.Performer.DedicatedGoogleCalendar))
|
|
{
|
|
<li> @SR["Exposes his Google calendar!"]
|
|
</li>
|
|
}
|
|
@if (Model.Performer.Devices?.Count>0)
|
|
{
|
|
<li> @SR["Uses the mobile application, and receives push notifications"]
|
|
</li>
|
|
}
|
|
|
|
</ul>
|
|
<button id="btnAddUser">Ajouter aux contacts</button>
|
|
}
|
|
</div>
|