Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor Page Title #19279

Merged
merged 6 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
@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">

@if (PageLayout.Title.IsNullOrEmpty())
{
<PageTitle>@BrandingProvider.AppName</PageTitle>
}
else
{
<PageTitle>@PageLayout.Title | @BrandingProvider.AppName</PageTitle>
}

@if(Options.Value.RenderPageTitle)
{
{
<Column ColumnSize="ColumnSize.IsAuto">
<h1 class="content-header-title">@PageLayout.Title</h1>
</Column>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<base href="~/" />

<abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global"/>
<HeadOutlet />
</head>
<body class="abp-application-layout bg-light @rtl">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<base href="~/" />

<abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global"/>
<HeadOutlet />
</head>
<body class="abp-application-layout bg-light @rtl">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Blazorise.Bootstrap5;
using Blazorise.Icons.FontAwesome;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MyCompanyName.MyProjectName.Menus;
using MyCompanyName.MyProjectName;
Expand Down Expand Up @@ -121,7 +122,7 @@ private static void ConfigureAuthentication(WebAssemblyHostBuilder builder)
private static void ConfigureUI(WebAssemblyHostBuilder builder)
{
builder.RootComponents.Add<App>("#ApplicationContainer");

builder.RootComponents.Add<HeadOutlet>("head::after");
}

private static void ConfigureHttpClient(ServiceConfigurationContext context, IWebAssemblyHostEnvironment environment)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@using Volo.Abp.MultiTenancy
@inherits MyProjectNameComponentBase
@inject AuthenticationStateProvider AuthenticationStateProvider

<div class="container">
<div class="p-5 text-center">
<Badge Color="Color.Success" class="mb-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<base href="~/" />

<abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global"/>
<HeadOutlet />
</head>
<body class="abp-application-layout bg-light @rtl">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
@using Volo.Abp.MultiTenancy
@inherits MyProjectNameComponentBase
@inject AuthenticationStateProvider AuthenticationStateProvider

<PageTitle>Index</PageTitle>

<div class="container">
<div class="p-5 text-center">
<Badge Color="Color.Success" class="mb-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<base href="~/" />

<abp-style-bundle name="@BlazorLeptonXLiteThemeBundles.Styles.Global" />
<HeadOutlet />
</head>
<body class="abp-application-layout bg-light @rtl">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Net.Http;
using Blazorise.Bootstrap5;
using Blazorise.Icons.FontAwesome;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down Expand Up @@ -86,7 +87,7 @@ private static void ConfigureAuthentication(WebAssemblyHostBuilder builder)
private static void ConfigureUI(WebAssemblyHostBuilder builder)
{
builder.RootComponents.Add<App>("#ApplicationContainer");

builder.RootComponents.Add<HeadOutlet>("head::after");
}

private static void ConfigureHttpClient(ServiceConfigurationContext context, IWebAssemblyHostEnvironment environment)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@using Volo.Abp.MultiTenancy
@inherits MyProjectNameComponentBase
@inject AuthenticationStateProvider AuthenticationStateProvider

<div class="container">
<div class="p-5 text-center">
<Badge Color="Color.Success" class="mb-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Net.Http;
using Blazorise.Bootstrap5;
using Blazorise.Icons.FontAwesome;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down Expand Up @@ -80,6 +81,7 @@ private static void ConfigureAuthentication(WebAssemblyHostBuilder builder)
private static void ConfigureUI(WebAssemblyHostBuilder builder)
{
builder.RootComponents.Add<App>("#ApplicationContainer");
builder.RootComponents.Add<HeadOutlet>("head::after");
}

private static void ConfigureHttpClient(ServiceConfigurationContext context, IWebAssemblyHostEnvironment environment)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<base href="~/" />

<abp-style-bundle name="@BlazorBasicThemeBundles.Styles.Global" />
<HeadOutlet />
</head>
<body class="abp-application-layout bg-light @rtl">
<component type="typeof(App)" render-mode="Server" />
Expand Down