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

Added resource.preview_url and display it (fix #1564) #1581

Merged
merged 1 commit into from
Apr 12, 2018
Merged

Added resource.preview_url and display it (fix #1564) #1581

merged 1 commit into from
Apr 12, 2018

Conversation

noirbizarre
Copy link
Contributor

This PR adds initial data preview support through the resource.preview_url.

The behavior is configurable with the PREVIEW_MODE parameter:

  • 'iframe' (default): displays the preview into a modal iframe
  • 'page': displays the preview into a blank new page
  • None: previewing is disabled

Resource card with preview button

screenshot-data xps-2018 04 12-12-36-59

iframe mode

screenshot-data xps-2018 04 12-12-34-56

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

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

@noirbizarre noirbizarre merged commit a0c0f53 into opendatateam:master Apr 12, 2018
@noirbizarre noirbizarre deleted the gh#1564-preview-url branch April 12, 2018 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants