-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#382: Optimize object participants functionality and UI
- Loading branch information
nikolagsiderov
committed
Jun 30, 2021
1 parent
87e7302
commit 2e3c31c
Showing
10 changed files
with
129 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
@model APPartment.Infrastructure.UI.Common.ViewModels.Base.PostViewModel | ||
|
||
@{ | ||
var consoleHeader = "Console [Create]"; | ||
|
||
if (Model.ID > 0) | ||
{ | ||
consoleHeader = $"Console [ID: {Model.ID}, Name: {Model.Name}]"; | ||
} | ||
} | ||
|
||
<div class="col-md-3"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
@consoleHeader | ||
</div> | ||
<div class="card-body"> | ||
@if (Model.ID > 0) | ||
{ | ||
<div id="object-additional-info-for-@Model.ID" style="font-family: monospace;"> | ||
Created by ID: @Model.CreatedByID | ||
<br /> | ||
Created date: @Model.CreatedDate.ToString("dd'/'MM'/'yyyy HH:mm:ss") | ||
<br /> | ||
Modified by ID: @Model.ModifiedByID | ||
<br /> | ||
Modified date: @Model.ModifiedDate.Value.ToString("dd'/'MM'/'yyyy HH:mm:ss") | ||
</div> | ||
<hr /> | ||
<div id="object-actions-for-@Model.ID"> | ||
@{ | ||
var actionsHtml = string.Join(" ", Model.ActionsHtml); | ||
} | ||
@Html.Raw(actionsHtml) | ||
</div> | ||
<hr /> | ||
<div id="object-participants-for-@Model.ID"> | ||
<strong><i class="fas fa-user-friends"></i> Participants:</strong> | ||
<div id="objectg-participants"> | ||
@if (Model.Participants.Any()) | ||
{ | ||
@foreach (var participant in Model.Participants) | ||
{ | ||
<div class="object-participant"> | ||
@participant.Username | ||
</div> | ||
} | ||
} | ||
else | ||
{ | ||
<div> | ||
None | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
} | ||
else | ||
{ | ||
<div style="font-family: monospace;"> | ||
Created by ID: Probably you | ||
<br /> | ||
Created date: Probably now | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.