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

Using truncate-long-text directive to truncate with see all link for long service descriptions. #214

Conversation

sg00dwin
Copy link
Member

@sg00dwin sg00dwin commented Oct 4, 2017

Remove prettify-json from directive since it's no longer used.
Add linkify to description link, but only when in expanded state.

Fixes openshift/origin-web-console#2072

@@ -3,7 +3,11 @@
styled directly in origin-web-common. `truncated-content` is used by
origin-web-console in certain contexts.
-->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment explaining highlightKeywords and linkify are mutually exclusive options.

<span ng-if="!linkify || (highlightKeywords | size)" ng-bind-html="content | highlightKeywords : keywords" class="truncated-content"></span>
<span ng-if="linkify && !(highlightKeywords | size)" ng-bind-html="content | linkify : '_blank'" class="truncated-content"></span>
</span>
<!-- To avoid truncating in middle of a link, we only apply linkify to expanded content -->
Copy link
Member

@rhamilto rhamilto Oct 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<!-- To avoid truncating in middle of a link, we only apply linkify to expanded content -->

<!-- To avoid truncating in middle of a link, we only optionally apply linkify to expanded content -->

…long service descriptions.

Remove prettify-json from directive since it's no longer used.
Add linkify to description link, but only when in expanded state.
@sg00dwin sg00dwin force-pushed the truncate-long-service-description-issue2072 branch from 65da8e0 to 2d76f24 Compare October 5, 2017 19:17
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 5, 2017
@sg00dwin
Copy link
Member Author

sg00dwin commented Oct 5, 2017

@rhamilto pr updated and I'll open a WIP in orign-web-console for the related changes

@spadgett spadgett merged commit 8d28993 into openshift:master Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants