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

adding link to product in backend order summary #2609

Merged
merged 2 commits into from
Mar 6, 2018

Conversation

loicginoux
Copy link
Contributor

That won't be the PR of the month.... I am just adding an handy link back to the product when you are in the backend order summary.

screenshot 2018-03-01 17 07 09

@@ -4,7 +4,7 @@
<%= render 'spree/admin/shared/image', image: item.variant.display_image, size: :mini %>
</td>
<td class="item-name">
<%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
<%= link_to item.variant.product.name, edit_admin_product_path(item.variant.product), target: "_blank" %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks great, but I'd rather not use target: "_blank" here. Links should open in the same tab.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I think when someone works on an order he will want to keep it open while looking at a product details quickly but doesn't matter. I changed it.

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.

We could need more of this. Very nice. Thanks

@jhawthorn jhawthorn merged commit f90fe91 into solidusio:master Mar 6, 2018
@loicginoux loicginoux deleted the add_product_link_to_bo_order branch March 6, 2018 18: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.

3 participants