Browse Source

Render AppName in page title

pull/19279/head
Enis Necipoglu 3 years ago
parent
commit
5478f6d9de
No known key found for this signature in database GPG Key ID: 1EC55E13241E1680
  1. 13
      framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageHeader.razor

13
framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageHeader.razor

@ -1,11 +1,22 @@
@using Blazorise
@using Microsoft.Extensions.Options
@using Microsoft.AspNetCore.Components.Web
@using Volo.Abp.Ui.Branding
@inject IOptions<PageHeaderOptions> Options
@inject IBrandingProvider BrandingProvider
<Row Class="entry-row">
<PageTitle>@PageLayout.Title</PageTitle>
@if (PageLayout.Title.IsNullOrEmpty())
{
<PageTitle>@BrandingProvider.AppName</PageTitle>
}
else
{
<PageTitle>@PageLayout.Title | @BrandingProvider.AppName</PageTitle>
}
@if(Options.Value.RenderPageTitle)
{
<Column ColumnSize="ColumnSize.IsAuto">

Loading…
Cancel
Save