yavsc/Yavsc/Views/Shared/_PerformerPartial.cshtml

37 lines
1.2 KiB
Text
Raw Normal View History

2016-06-14 03:37:57 +02:00
@model PerformerProfile
2016-05-17 18:22:18 +02:00
<div class="performer @(Model.Active?"active":"inactive")">
2016-07-27 11:09:49 +02:00
@if (Model.Performer != null) {
2016-05-17 18:22:18 +02:00
<ul>
2016-07-27 11:09:49 +02:00
<li>@Model.Performer.UserName (rating: @Model.Rate%)</li>
2016-05-17 18:22:18 +02:00
@if (Model.MinDailyCost != null) {
<li>@SR["MinDailyCost"]: @Model.MinDailyCost&euro;</li>
}
@if (Model.MinDailyCost != null) {
<li>@SR["MaxDailyCost"]: @Model.MaxDailyCost&euro;</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(
2016-06-13 14:30:49 +02:00
Model.Performer.DedicatedGoogleCalendar))
2016-05-17 18:22:18 +02:00
{
<li> @SR["Exposes his Google calendar!"]
</li>
}
2016-06-13 14:30:49 +02:00
@if (Model.Performer.Devices?.Count>0)
2016-05-17 18:22:18 +02:00
{
<li> @SR["Uses the mobile application, and receives push notifications"]
</li>
}
2016-11-01 23:22:46 +01:00
2016-05-17 18:22:18 +02:00
</ul>
2016-11-01 23:22:46 +01:00
<button id="btnAddUser">Ajouter aux contacts</button>
2016-07-27 11:09:49 +02:00
}
2016-05-17 18:22:18 +02:00
</div>