feat: timlin for tag title

This commit is contained in:
shuai 2022-12-01 12:32:01 +08:00
parent a12a60b3b2
commit 5b408b902c
2 changed files with 5 additions and 2 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_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' && (