Skip to content

Commit

Permalink
fix: Added PageTitle to all admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Dec 5, 2024
1 parent 3ec0ca9 commit 3a973aa
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
@inject IInstantJobRegistry InstantJobRegistry
@inject IRepository<ShortCode> ShortCodeRepository

<PageTitle>Creating new Blog Post</PageTitle>

<div class="container">
<h3 class="fw-bold">@Title</h3>
<EditForm Model="@model" OnValidSubmit="OnValidBlogPostCreatedAsync">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
@inject IRepository<BlogPost> BlogPostRepository
@inject IToastService ToastService

<PageTitle>Updating: @blogPostFromDb?.Title</PageTitle>

@if (blogPostFromDb is not null)
{
<CreateNewBlogPost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@using LinkDotNet.Blog.Web.Features.Admin.Dashboard.Components
@attribute [Authorize]

<PageTitle>Dashboard</PageTitle>

<div class="container">
<h3 class="fw-bold">Dashboard</h3>
<div class="container-fluid">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@attribute [Authorize]
@inject IRepository<BlogPost> BlogPostRepository

<PageTitle>Drafts</PageTitle>

<div class="container">
<h3 class="fw-bold">Draft Blog Posts</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
@inject IInstantJobRegistry InstantJobRegistry
@attribute [Authorize]

<PageTitle>Settings</PageTitle>

<div class="container">
<h3 class="fw-bold">Settings</h3>
<table class="table table-responsive table-hover">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
@inject IRepository<ShortCode> ShortCodeRepository
@inject IToastService ToastService

<PageTitle>Shortcodes</PageTitle>

<div class="container">
<h3 class="fw-bold">Shortcodes</h3>
<div class="alert alert-info" role="alert">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
@using LinkDotNet.Blog.Web.Features.Admin.Sitemap.Services
@inject ISitemapService SitemapService
@attribute [Authorize]

<PageTitle>Sitemap</PageTitle>

<div class="container">
<h3>Sitemap</h3>
<div class="row px-2">
Expand Down

0 comments on commit 3a973aa

Please sign in to comment.