Created
August 24, 2017 05:32
-
-
Save svaustin66/b58c144e75e0d0558781d0964e866cbc to your computer and use it in GitHub Desktop.
Composite Edit Links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if customer and customer.tags contains 'admin' %} | |
<div class="admin-edit"> | |
{% if template contains 'collection' %} | |
<p><a href="/admin/collections/{{collection.id}}" target="_blank">Edit Collection</a></p> | |
{% endif %} | |
{% if template contains 'product' %} | |
<p><a href="/admin/products/{{product.id}}" target="_blank">Edit Product</a></p> | |
{% endif %} | |
{% if template contains 'page' %} | |
<p><a href="/admin/pages/{{page.id}}" target="_blank">Edit Page</a><p> | |
{% endif %} | |
</div> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment