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(question): add a [closed] tip in closed question title
haitao(lj)fb176e9a99cb
diff --git a/ui/src/components/Questions/index.tsx b/ui/src/components/Questions/index.tsxindex f9d75217..58258cb5 100644--- a/ui/src/components/Questions/index.tsx+++ b/ui/src/components/Questions/index.tsx@@ -144,6 +144,7 @@ const QuestionList: FC<Props> = ({ source }) => {<h5 className="text-wrap text-break"><NavLink to={`/questions/${li.id}`} className="text-body">{li.title}+ {li.status === 2 ? ` [${t('closed')}]` : ''}</NavLink></h5><div className="d-flex align-items-center fs-14 text-secondary">diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.jsonindex f5c5136f..a72ee167 100644--- a/ui/src/i18n/locales/en.json+++ b/ui/src/i18n/locales/en.json@@ -685,6 +685,7 @@"modified": "modified","answered": "answered","asked": "asked",+ "closed": "closed","follow_a_tag": "Follow a tag"},"personal": {diff --git a/ui/src/pages/Questions/Detail/components/Question/index.tsx b/ui/src/pages/Questions/Detail/components/Question/index.tsxindex 0111274d..c8fb742a 100644--- a/ui/src/pages/Questions/Detail/components/Question/index.tsx+++ b/ui/src/pages/Questions/Detail/components/Question/index.tsx@@ -50,6 +50,9 @@ const Index: FC<Props> = ({ data, initPage, hasAnswer }) => {<h1 className="fs-3 mb-3 text-wrap text-break"><Link className="text-body" reloadDocument to={`/questions/${data.id}`}>{data.title}+ {data.status === 2+ ? ` [${t('closed', { keyPrefix: 'question' })}]`+ : ''}</Link></h1><div className="d-flex align-items-center fs-14 mb-3 text-secondary">