From d465d6441ffa252fbc3671455c0ccb204b9d5b02 Mon Sep 17 00:00:00 2001 From: Zak Nesler Date: Thu, 23 May 2024 14:07:35 -0400 Subject: [PATCH] render html and display title --- ui/src/components/entry/entry-item.tsx | 6 ++++-- ui/src/components/entry/entry-view.tsx | 5 ++++- ui/src/components/feed/feed-info.tsx | 2 +- ui/src/components/feed/feed-item.tsx | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ui/src/components/entry/entry-item.tsx b/ui/src/components/entry/entry-item.tsx index 9f55b59e..64b91db3 100644 --- a/ui/src/components/entry/entry-item.tsx +++ b/ui/src/components/entry/entry-item.tsx @@ -1,3 +1,5 @@ +/* eslint-disable solid/no-innerhtml */ + import { A, AnchorProps, useMatch } from '@solidjs/router'; import { createQuery } from '@tanstack/solid-query'; import { cx } from 'class-variance-authority'; @@ -54,7 +56,7 @@ export const EntryItem: Component = props => { )} {...rest} > -

{local.entry.title}

+

= props => { {!filter.params.feed_uuid && ( <> - {feed()?.title} + {feed()?.title_display || feed()?.title} {!!getDate() && } )} diff --git a/ui/src/components/entry/entry-view.tsx b/ui/src/components/entry/entry-view.tsx index ad654a18..73e726cd 100644 --- a/ui/src/components/entry/entry-view.tsx +++ b/ui/src/components/entry/entry-view.tsx @@ -33,7 +33,10 @@ export const EntryView: ParentComponent = props => { )}
-

{local.entry.title}

+

{!!getDate() &&
{formatDateTime(getDate()!)}
} diff --git a/ui/src/components/feed/feed-info.tsx b/ui/src/components/feed/feed-info.tsx index fd66f4fb..3d727057 100644 --- a/ui/src/components/feed/feed-info.tsx +++ b/ui/src/components/feed/feed-info.tsx @@ -31,7 +31,7 @@ export const FeedInfo: Component = props => {
- + = props => { return (