Compare commits

..

2 commits

Author SHA1 Message Date
cdb404c344
fix(web): /context is valid too 2024-11-10 21:47:24 +01:00
88d67091c2
fix(web): better tabs for context/replies 2024-11-10 21:47:11 +01:00
2 changed files with 2 additions and 1 deletions

View file

@ -180,6 +180,7 @@ pub fn App() -> impl IntoView {
<Route path="objects/:id" view=ObjectView > <Route path="objects/:id" view=ObjectView >
<Route path="" view=ObjectContext /> <Route path="" view=ObjectContext />
<Route path="replies" view=ObjectReplies /> <Route path="replies" view=ObjectReplies />
<Route path="context" view=ObjectContext />
// <Route path="liked" view=ObjectLiked /> // <Route path="liked" view=ObjectLiked />
// <Route path="announced" view=ObjectAnnounced /> // <Route path="announced" view=ObjectAnnounced />
</Route> </Route>

View file

@ -40,7 +40,7 @@ pub fn ObjectView() -> impl IntoView {
<Object object=object /> <Object object=object />
<hr class="color ma-2" /> <hr class="color ma-2" />
<code class="cw color center mt-1 mb-1 ml-3 mr-3"> <code class="cw color center mt-1 mb-1 ml-3 mr-3">
<a href=format!("{base}/context")><b>context</b></a> | <a href=format!("{base}/replies")><b>replies</b></a> <a href=format!("{base}/context")><span class="emoji">"🕸️"</span>" "<b>context</b></a>" | "<a href=format!("{base}/replies")><span class="emoji">"📫"</span>" "<b>replies</b></a>
</code> </code>
<Outlet /> <Outlet />
}.into_view() }.into_view()