Skip to content

Commit

Permalink
Feature page (#64)
Browse files Browse the repository at this point in the history
* Added database objects for the Page

* Adding UI and cleaning up multiple instances of EF context

* Added MemoryCache for Pages since they don't change frequently

* First version of EditPage

* Completed the custom page display
  • Loading branch information
csharpfritz authored Nov 7, 2024
1 parent 11166cc commit 80c001d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions SharpSite.Web/Components/PageNotFound.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>@Localizer["sharpsite_pagenotfound"]</p>

<p><a href="/">@Localizer["sharpsite_backtohome"]</a></p>
2 changes: 1 addition & 1 deletion SharpSite.Web/Components/Pages/DisplayPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
else
{
<p>Page not found</p>
<PageNotFound />
}

@code {
Expand Down
2 changes: 1 addition & 1 deletion SharpSite.Web/Locales/SharedResource.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<value>Packages Used</value>
<comment/>
</data>
<data name="sharpsite_backtohome" xml:space="preserve">
<data name="" xml:space="preserve">
<value>Back to home</value>
<comment/>
</data>
Expand Down

0 comments on commit 80c001d

Please sign in to comment.