Skip to content

Commit 4c2368c

Browse files
feat: Display creator and last modifier information for map rotations
1 parent a86a19f commit 4c2368c

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

src/XtremeIdiots.Portal.Web/Views/MapRotations/Details.cshtml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,23 @@
9292

9393
<div class="detail-field col-sm-4">
9494
<dt class="detail-label">Created</dt>
95-
<dd class="detail-value"><time user-time utc="@Model.Rotation.CreatedAt"></time></dd>
95+
<dd class="detail-value">
96+
<time user-time utc="@Model.Rotation.CreatedAt"></time>
97+
@if (!string.IsNullOrEmpty(Model.Rotation.CreatedByDisplayName))
98+
{
99+
<small class="text-muted d-block">by @Model.Rotation.CreatedByDisplayName</small>
100+
}
101+
</dd>
96102
</div>
97103
<div class="detail-field col-sm-4">
98104
<dt class="detail-label">Updated</dt>
99-
<dd class="detail-value"><time user-time utc="@Model.Rotation.UpdatedAt"></time></dd>
105+
<dd class="detail-value">
106+
<time user-time utc="@Model.Rotation.UpdatedAt"></time>
107+
@if (!string.IsNullOrEmpty(Model.Rotation.LastModifiedByDisplayName))
108+
{
109+
<small class="text-muted d-block">by @Model.Rotation.LastModifiedByDisplayName</small>
110+
}
111+
</dd>
100112
</div>
101113
</dl>
102114
</div>
@@ -164,12 +176,12 @@
164176
<table class="table table-striped table-hover">
165177
<thead>
166178
<tr>
167-
<th>Server</th>
168-
<th>Config Target</th>
169-
<th>Deployment</th>
170-
<th>Activation</th>
171-
<th class="table-date-col">Deployed Ver.</th>
172-
<th class="table-action-col">Actions</th>
179+
<th style="width: 20%;">Server</th>
180+
<th style="width: 25%;">Config Target</th>
181+
<th style="width: 10%;">Deployment</th>
182+
<th style="width: 10%;">Activation</th>
183+
<th style="width: 10%;">Deployed Ver.</th>
184+
<th style="width: 25%;">Actions</th>
173185
</tr>
174186
</thead>
175187
<tbody>

0 commit comments

Comments
 (0)