Merge branch 'feat/ui-0.5.0' into 'test'

Feat/ui 0.5.0

See merge request opensource/answer!302
This commit is contained in:
Li Shuailing 2022-12-01 04:40:46 +00:00
commit e39d18cf80
2 changed files with 6 additions and 3 deletions

View File

@ -1248,11 +1248,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' && (