Skip to content

Commit

Permalink
Improved created/completed dates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-lord committed Dec 6, 2018
1 parent 8f9afbf commit 73e6c2d
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Do/Components/TaskComponent.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@
}

<div class="col">
<p style="margin-bottom: 0;">
<h5 style="margin-bottom: 0;">
@PriorityBadge
@Task.Body
</p>
<p class="task-meta">
<small>
@if (Task.Creation != null)
{
@Task.Creation.Humanize();
}
@if (Task.Completion != null)
{
@Task.Completion.Humanize();
}
@if (Task.Context != null && Task.Context.Count > 0)
</h5>
<div class="task-meta">
@if (Task.Creation != null)
{
<span>Created @Task.Creation.Humanize()</span>
}

@if (Task.Completion != null)
{
<span>Completed @Task.Completion.Humanize()</span>
}

@if (Task.Context != null && Task.Context.Count > 0)
{
foreach (var context in Task.Context.OrderBy(x => x))
{
foreach (var context in Task.Context.OrderBy(x => x))
{
<span class="badge badge-secondary">@context</span>
}
<span class="badge badge-secondary">@context</span>
}
</small>
</p>
}
</div>
</div>

<div class="col-md-auto my-auto col-trailing">
Expand Down

0 comments on commit 73e6c2d

Please sign in to comment.