[backend/razor] Add placeholder hashtag public preview
This commit is contained in:
parent
f3488fdca3
commit
ac4add63bb
2 changed files with 17 additions and 0 deletions
5
Iceshrimp.Backend/Pages/Tag.cshtml
Normal file
5
Iceshrimp.Backend/Pages/Tag.cshtml
Normal file
|
@ -0,0 +1,5 @@
|
|||
@page "/tags/{tag}"
|
||||
@model TagModel
|
||||
|
||||
<h3>Notes with #@Model.Tag</h3>
|
||||
<i>You've arrived on a placeholder page - this instance doesn't support public preview of hashtags just yet.</i>
|
12
Iceshrimp.Backend/Pages/Tag.cshtml.cs
Normal file
12
Iceshrimp.Backend/Pages/Tag.cshtml.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace Iceshrimp.Backend.Pages;
|
||||
|
||||
public class TagModel : PageModel
|
||||
{
|
||||
public string Tag = null!;
|
||||
public void OnGet(string tag)
|
||||
{
|
||||
Tag = tag;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue