about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/hashtag.js
AgeCommit message (Collapse)Author
2020-07-06Replace shortNumberFormat with <ShortNumber> (#14061)Sasha Sorokin
This commit introduces new utility component - ShortNumber. It should work almost the same way as original shortNumberFormat function, though it also localizes units and accepts one more prop - renderer. Renderer is a function that takes rendered short formatted number and also ready-to-pluralize number to format display result accordingly. Ready-to-pluralize number allows to correctly select plural for compactly notated numbers, respecting thousands and other units. Issue #12451 accurately describes the issue with using raw numbers when replacing counter with short version. In short, it doesn't work with languages such as Russian, that require different plurals, according to the unit number was compacted to. All previous usages of shortNumberFormat were replaced with new function, and as it became unused, it was removed to avoid misleading.
2019-09-04Fix wrong sum of usage in hashtag component in web UI (#11755)Eugen Rochko
1 + 1 = 11
2019-09-04Fix wrong pluralization in hashtag component in web UI (#11754)Eugen Rochko
2019-09-03Change hashtag component in web UI to show numbers for 2 last days (#11742)Eugen Rochko
To deal with the midnight problem
2019-01-14Make hashtag search results link to the hashtag URL (#9810)ThibG
Currently, middle-clicking on a hashtag search result will open a new instance of the WebUI, which is inconsistent with middle-clicking on an account result, or a hashtag in a toot.
2018-06-04Display numbers in account header using shortNumberFormat for consistency ↵Eugen Rochko
(#7723)
2018-05-30Improve getting started column (#7676)Eugen Rochko
* Adjust footer of getting started column - Improved style - Moved hotkeys, about this instance and logout to footer - Removed FAQ, User Guide, Apps links - Use hamburger icon for the column * Add edit profile action button to profile and more to dropdown * Add "Trending now" to getting started column * Add preferences/security links on mobile layout