Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

feat: timlin for tag title

shuai5b408b902cc8
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index b698e4c8..58905df7 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -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
diff --git a/ui/src/pages/Timeline/index.tsx b/ui/src/pages/Timeline/index.tsx
index 2ba12c42..d9f5fdda 100644
--- a/ui/src/pages/Timeline/index.tsx
+++ b/ui/src/pages/Timeline/index.tsx
@@ -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' && (