UX: Indicate capped history revisions only when they're actually capped (PR #14000)

We’ve recently added a limit to the posts history modal so it displays the last 100 revisions only for performance reasons. However, the title of the modal now always says History, last 100 revisions even when the post has fewer than 100 revisions which can be a bit noisy.

This PR amends the history modal so the title of the modal says History when the post’s revisions count is ≤100, and History, last 100 revisions when it has more >100 revisions.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there: