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

Use product image template in frontend #2300

Merged
merged 2 commits into from
Oct 20, 2017
Merged

Use product image template in frontend #2300

merged 2 commits into from
Oct 20, 2017

Conversation

swcraig
Copy link
Contributor

@swcraig swcraig commented Oct 17, 2017

This is how product images are rendered in the admin.

This way the frontend views are less tied to specifics of the
models that they are rendering images for. For example, frontend views
no longer need to know that a model will have an attribute attachment.

We can use this to render product images on the frontend. This is how
product images are rendered in the admin.
Switches all product images to render the template as opposed to an
image_tag. This way the frontend views are less tied to specifics of the
models that they are rendering images for. For example, frontend views
no longer need to know that a model will have an attribute `attachment`.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks

@jhawthorn jhawthorn merged commit 531445c into solidusio:master Oct 20, 2017
@swcraig swcraig deleted the use-image-template-in-frontend branch October 20, 2017 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants