Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reader: use tag.display_name to display tag names #2775

Merged
merged 1 commit into from
Jan 26, 2016

Conversation

bluefuton
Copy link
Contributor

In #2551 (comment) we decided to lowercase all tag names in the Reader.

This PR makes use of the newly-added tag display_name property (wpcom-130241) to do just that.

If a tag slug is alphanumeric (dashes are also permitted), it will be used as the display name. Otherwise, the title is used. For example, the tag 未分類 uses the title rather than the slug.

Before:
screen shot 2016-01-26 at 17 48 19

After:
screen shot 2016-01-26 at 17 48 39

@bluefuton bluefuton added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature] Reader The reader site on Calypso. labels Jan 26, 2016
@bluefuton bluefuton self-assigned this Jan 26, 2016
@bluefuton bluefuton added this to the Reader: UI Nits milestone Jan 26, 2016
@bluefuton
Copy link
Contributor Author

Fixes #2551.

@blowery
Copy link
Contributor

blowery commented Jan 26, 2016

:shipit:

blowery added a commit that referenced this pull request Jan 26, 2016
…ency

Reader: use tag.display_name to display tag names
@blowery blowery merged commit 40ea0bb into master Jan 26, 2016
@blowery blowery deleted the fix/tag-display-name-consistency branch January 26, 2016 18:00
@scruffian scruffian removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Reader The reader site on Calypso.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants