Merge
This commit is contained in:
commit
c0f3edfdda
18 changed files with 142 additions and 28 deletions
42
Yavsc/Views/Shared/PerformerProfile.cshtml
Normal file
42
Yavsc/Views/Shared/PerformerProfile.cshtml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
@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>
|
||||
|
||||
}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue