-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDefault.cshtml
More file actions
62 lines (58 loc) · 2.62 KB
/
Default.cshtml
File metadata and controls
62 lines (58 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@using Unity.GrantManager.History
@using Unity.GrantManager.Web.Views.Shared.Components.HistoryWidget
@using Microsoft.AspNetCore.Mvc.Localization
@using Unity.GrantManager.Localization
@using Microsoft.Extensions.Localization
@using Unity.Modules.Shared.Utils
@model HistoryWidgetViewModel
@inject IHtmlLocalizer<GrantManagerResource> L
@inject IStringLocalizerFactory StringLocalizerFactory
@{
Layout = null;
}
<br/>
<div id="application-history-div" class="mb-2 card border">
<div id="card-header-div" class="card-header bg-default">
<h4 class="mb-0 card-title">Application Status History</h4>
</div>
<div id="expanded-div" ref="tab-tabs" class="card-body" style="display: block;">
<div id="history-div" class="mt-2 history-container">
<input id="historyLength" type="hidden" value="@Model.ApplicationStatusHistoryList?.Count"/>
@if(@Model.ApplicationStatusHistoryList == null || @Model.ApplicationStatusHistoryList?.Count == 0)
{
<div class="mb-2 history-read-mode">
<div class="unity-history-block read-mode">
No History Found
</div>
</div>
}
@foreach (HistoryDto historyDto in Model.ApplicationStatusHistoryList ?? Enumerable.Empty<HistoryDto>())
{
string fromString = string.Empty;
if (!string.IsNullOrEmpty(historyDto?.OriginalValue))
{
fromString = "from";
}
<div class="mb-2 history-read-mode">
<div class="unity-history-block read-mode">
<div class="d-flex justify-content-between">
<div class="fw-bold history-name">
@historyDto?.UserName
</div>
</div>
<div class="history-lbl">
<div>
Status changed @fromString <span class="status-change">@historyDto?.OriginalValue</span>
to
<span class="status-change">@historyDto?.NewValue</span>
</div>
</div>
<time datetime="@DateTimeExtensions.FormatTimestamp(historyDto?.ChangeTime)" class="history-time mt-3 fw-bold">
@DateTimeExtensions.FormatPacificTime(historyDto?.ChangeTime)
</time>
</div>
</div>
}
</div>
</div>
</div>