Merge branch 'feat/ui-0.5.0' of git.backyard.segmentfault.com:opensource/answer into feat/ui-0.5.0

This commit is contained in:
haitao(lj) 2022-12-01 15:06:02 +08:00
commit 44bc738787
2 changed files with 6 additions and 3 deletions

View File

@ -1215,11 +1215,12 @@ ui:
reopened: reopened
created: created
title: "History for"
tag_title: "Timeline for"
show_votes: "Show votes"
n_or_a: N/A
title_for_question: "Timeline for"
title_for_answer: "Timeline for answers to {{ title }} by {{ author }}"
title_for_tag: "Title for tag"
title_for_answer: "Timeline for answer to {{ title }} by {{ author }}"
title_for_tag: "Timeline for tag"
datetime: Datetime
type: Type
by: By

View File

@ -73,7 +73,9 @@ const Index: FC = () => {
<Row className="py-3 justify-content-center">
<Col xxl={10}>
<h5 className="mb-4">
{t('title')}{' '}
{timelineData?.object_info.object_type === 'tag'
? t('tag_title')
: t('title')}{' '}
<Link to={linkUrl}>{timelineData?.object_info?.title}</Link>
</h5>
{timelineData?.object_info.object_type !== 'tag' && (