diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-07 10:26:57 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-07 10:26:57 +1000 |
| commit | 241c70671e64023a0d84907a765bf8f1e2927735 (patch) | |
| tree | ea1f370ceb7b92a79d3267b8f8092a8b7f558237 /Pages | |
| parent | a8903ce81b81e62e87b9841c09c4be251b3ba41e (diff) | |
Added warning message to ingest feed when NSFW is not enabled
Diffstat (limited to 'Pages')
| -rw-r--r-- | Pages/Gallery.razor | 7 | ||||
| -rw-r--r-- | Pages/Gallery.razor.css | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Pages/Gallery.razor b/Pages/Gallery.razor index 0cf34b5..7e183f2 100644 --- a/Pages/Gallery.razor +++ b/Pages/Gallery.razor @@ -9,6 +9,13 @@ <PageTitle>@Title</PageTitle> +@if(Ingest && !userService.ShowNsfw) { + <div id="ingest-warning"> + <p><center>Ingest feed is not available unless NSFW mode is enabled!</center></p> + <p><center><i>You must enable NSFW mode to continue...</i></center></p> + </div> +} + <div style="padding:var(--size-default-gap);"> @foreach(var media in displayMedia) { // Precalculate thumbnail size to help the browser diff --git a/Pages/Gallery.razor.css b/Pages/Gallery.razor.css index d1750b4..0e01e0e 100644 --- a/Pages/Gallery.razor.css +++ b/Pages/Gallery.razor.css @@ -3,6 +3,9 @@ max-height: 200px; } -form#upload { - padding-bottom: 30px; +div#ingest-warning { + position: relative; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); }
\ No newline at end of file |
