diff --git a/app/assets/javascripts/discourse/app/controllers/history.js b/app/assets/javascripts/discourse/app/controllers/history.js index 0a57bdfd89a..18e36c478d2 100644 --- a/app/assets/javascripts/discourse/app/controllers/history.js +++ b/app/assets/javascripts/discourse/app/controllers/history.js @@ -46,6 +46,15 @@ export default Controller.extend(ModalFunctionality, { previousTagChanges: customTagArray("model.tags_changes.previous"), currentTagChanges: customTagArray("model.tags_changes.current"), + @discourseComputed("post.version") + modalTitleKey(version) { + if (version > 100) { + return "history_capped_revisions"; + } else { + return "history"; + } + }, + @discourseComputed( "previousVersion", "model.current_version", diff --git a/app/assets/javascripts/discourse/app/templates/modal/history.hbs b/app/assets/javascripts/discourse/app/templates/modal/history.hbs index 3d910823d2c..38d5bed5c21 100644 --- a/app/assets/javascripts/discourse/app/templates/modal/history.hbs +++ b/app/assets/javascripts/discourse/app/templates/modal/history.hbs @@ -1,4 +1,4 @@ -{{#d-modal-body title="history" maxHeight="70%"}} +{{#d-modal-body title=modalTitleKey maxHeight="70%"}}
{{d-icon "pencil-alt"}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 84863d018a2..76155064ad5 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -3402,7 +3402,8 @@ en: one: "user" other: "users" category_title: "Category" - history: "History, last 100 revisions" + history_capped_revisions: "History, last 100 revisions" + history: "History" changed_by: "by %{author}" raw_email: