Skip to content

Commit

Permalink
Admin UI Semantics fixes (OrchardCMS#8104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrypt authored Dec 21, 2020
1 parent 8bae4aa commit 8c510bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
@using OrchardCore.ContentManagement

@using System.Globalization
@{
ContentItem contentItem = Model.ContentItem;
var modifiedUtc = contentItem.ModifiedUtc?.ToString("yyyy-MM-ddTHH:mm:sszzz", CultureInfo.InvariantCulture);
}

@if (contentItem.ModifiedUtc.HasValue)
{
<small class="badge ta-badge font-weight-normal" data-toggle="tooltip" title="@await DisplayAsync(await New.DateTime(Utc: contentItem.ModifiedUtc, Format: "g"))">
<i class="fa fa-calendar text-secondary"></i> <time>@await DisplayAsync(await New.Timespan(Utc: contentItem.ModifiedUtc))</time>
<i class="fa fa-calendar text-secondary"></i> <time datetime="@modifiedUtc">@await DisplayAsync(await New.Timespan(Utc: contentItem.ModifiedUtc))</time>
</small>
<small class="badge ta-badge font-weight-normal" data-toggle="tooltip" title="@contentItem.Owner">
<i class="fa fa-user text-secondary"></i> @contentItem.Author
Expand Down
2 changes: 1 addition & 1 deletion src/OrchardCore.Themes/TheAdmin/Views/Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<body class="preload">
<div class="ta-wrapper">
<div class="ta-navbar-top navbar-expand-lg bg-primary">
<a class="ta-navbar-brand" href="@Url.Content("~/" + AdminOptions.Value.AdminUrlPrefix)"><img src="/TheAdmin/logo.png" /><span>@Site.SiteName</span></a>
<a class="ta-navbar-brand" href="@Url.Content("~/" + AdminOptions.Value.AdminUrlPrefix)"><img src="/TheAdmin/logo.png" alt="@Site.SiteName" /><span>@Site.SiteName</span></a>
<div class="mr-auto">
@if (adminSettings.DisplayTitlesInTopbar)
{
Expand Down

0 comments on commit 8c510bb

Please sign in to comment.