Skip to content

Commit

Permalink
Fix HTML style for ThemeEntry (OrchardCMS#15609)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Mar 28, 2024
1 parent 303daba commit 8fba42a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public override IDisplayResult Display(ThemeEntry model)
View("ThemeEntry_SummaryAdmin__Title", model).Location("SummaryAdmin", "Header:5"),
View("ThemeEntry_SummaryAdmin__Descriptions", model).Location("SummaryAdmin", "Content:5"),
View("ThemeEntry_SummaryAdmin__Attributes", model).Location("SummaryAdmin", "Tags:5"),
};
};

if (model.IsCurrent)
{
results.Add(View("ThemeEntry_SummaryAdmin__Current", model).Location("SummaryAdmin", "FooterBelow:5"));
results.Add(View("ThemeEntry_SummaryAdmin__Current", model).Location("SummaryAdmin", "FooterStart:5"));
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

@model ShapeViewModel<ThemeEntry>

<span class="theme-entry-description">
@if (string.IsNullOrEmpty(Model.Value.Extension.Manifest.Description))
{
return;
}

<p class="text-muted mb-2">
@Model.Value.Extension.Manifest.Description
</span>
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@

@if (Model.Content != null || Model.Attributes != null)
{
<p class="card-text">
@if (Model.Content != null)
{
@await DisplayAsync(Model.Content)
}
@if (Model.Content != null)
{
@await DisplayAsync(Model.Content)
}

@if (Model.Tags != null)
{
<ul class="list-group list-group-flush">
@await DisplayAsync(Model.Tags)
</ul>
}
</p>
@if (Model.Tags != null)
{
<ul class="list-group list-group-flush">
@await DisplayAsync(Model.Tags)
</ul>
}
}

</div>
Expand All @@ -39,13 +37,13 @@
{
<div class="d-flex justify-content-between">

<div>
<div class="d-inline-flex">
@if (Model.FooterStart != null)
{
@await DisplayAsync(Model.FooterStart)
}
</div>
<div>
<div class="d-inline-flex">
@if (Model.FooterEnd != null)
{
@await DisplayAsync(Model.FooterEnd)
Expand Down

0 comments on commit 8fba42a

Please sign in to comment.