forked from bigcommerce/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bigcommerce#435 from mcampa/helpers
Updated and replaced deprecated helpers
- Loading branch information
Showing
27 changed files
with
164 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
<nav class="navBar navBar--sub"> | ||
<ul class="navBar-section"> | ||
{{#compare account_page 'orders' operator='==='}} | ||
{{#if account_page '===' 'orders'}} | ||
<li class="navBar-item is-active">{{lang 'account.nav.orders'}}</li> | ||
{{else}} | ||
<li class="navBar-item"> | ||
<a class="navBar-action" href="{{urls.account.orders.all}}">{{lang 'account.nav.orders'}}</a> | ||
</li> | ||
{{/compare}} | ||
{{/if}} | ||
{{#if settings.returns_enabled}} | ||
{{#compare account_page 'returns' operator='==='}} | ||
{{#if account_page '===' 'returns'}} | ||
<li class="navBar-item is-active">{{lang 'account.nav.returns'}}</li> | ||
{{else}} | ||
<li class="navBar-item"> | ||
<a class="navBar-action" href="{{urls.account.returns}}">{{lang 'account.nav.returns'}}</a> | ||
</li> | ||
{{/compare}} | ||
{{/if}} | ||
{{/if}} | ||
{{#compare account_page 'messages' operator='==='}} | ||
{{#if account_page '===' 'messages'}} | ||
<li class="navBar-item is-active">{{lang 'account.nav.messages' num_new_messages=customer.num_new_messages}}</li> | ||
{{else}} | ||
<li class="navBar-item"> | ||
<a class="navBar-action" href="{{urls.account.inbox}}">{{lang 'account.nav.messages' num_new_messages=customer.num_new_messages}}</a> | ||
</li> | ||
{{/compare}} | ||
{{#compare account_page 'addresses' operator='==='}} | ||
{{/if}} | ||
{{#if account_page '===' 'addresses'}} | ||
<li class="navBar-item is-active">{{lang 'account.nav.addresses'}}</li> | ||
{{else}} | ||
<li class="navBar-item"> | ||
<a class="navBar-action" href="{{urls.account.addresses}}">{{lang 'account.nav.addresses'}}</a> | ||
</li> | ||
{{/compare}} | ||
{{#compare account_page 'wishlists' operator='==='}} | ||
{{/if}} | ||
{{#if account_page '===' 'wishlists'}} | ||
<li class="navBar-item is-active">{{lang 'account.nav.wishlists' num_wishlists=customer.num_wishlists}}</li> | ||
{{else}} | ||
<li class="navBar-item"> | ||
<a class="navBar-action" href="{{urls.account.wishlists.all}}">{{lang 'account.nav.wishlists' num_wishlists=customer.num_wishlists}}</a> | ||
</li> | ||
{{/compare}} | ||
{{#compare account_page 'recent_items' operator='==='}} | ||
{{/if}} | ||
{{#if account_page '===' 'recent_items'}} | ||
<li class="navBar-item is-active">{{lang 'account.nav.recently_viewed'}}</li> | ||
{{else}} | ||
<li class="navBar-item"> | ||
<a class="navBar-action" href="{{urls.account.recent_items}}">{{lang 'account.nav.recently_viewed'}}</a> | ||
</li> | ||
{{/compare}} | ||
{{#compare account_page 'settings' operator='==='}} | ||
{{/if}} | ||
{{#if account_page '===' 'settings'}} | ||
<li class="navBar-item is-active">{{lang 'account.nav.settings'}}</li> | ||
{{else}} | ||
<li class="navBar-item"> | ||
<a class="navBar-action" href="{{urls.account.details}}">{{lang 'account.nav.settings'}}</a> | ||
</li> | ||
{{/compare}} | ||
{{/if}} | ||
</ul> | ||
</nav> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
<div class="pagination"> | ||
<ul class="pagination-list"> | ||
{{#if previous}} | ||
<li class="pagination-item pagination-item--previous"> | ||
<a class="pagination-link" href="{{previous}}" data-faceted-search-facet> | ||
<i class="icon" aria-hidden="true"> | ||
<svg> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-left"></use> | ||
</svg> | ||
</i> | ||
{{lang 'common.previous'}} | ||
</a> | ||
</li> | ||
<li class="pagination-item pagination-item--previous"> | ||
<a class="pagination-link" href="{{previous}}" data-faceted-search-facet> | ||
<i class="icon" aria-hidden="true"> | ||
<svg> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-left"></use> | ||
</svg> | ||
</i> | ||
{{lang 'common.previous'}} | ||
</a> | ||
</li> | ||
{{/if}} | ||
{{#each links}} | ||
{{#compare this.number ../current}} | ||
<li class="pagination-item pagination-item--current"> | ||
<a class="pagination-link" href="{{this.url}}" data-faceted-search-facet>{{this.number}}</a> | ||
</li> | ||
{{else}} | ||
<li class="pagination-item"> | ||
<a class="pagination-link" href="{{this.url}}" data-faceted-search-facet>{{this.number}}</a> | ||
</li> | ||
{{/compare}} | ||
{{#if this.number '==' ../current}} | ||
<li class="pagination-item pagination-item--current"> | ||
<a class="pagination-link" href="{{this.url}}" data-faceted-search-facet>{{this.number}}</a> | ||
</li> | ||
{{else}} | ||
<li class="pagination-item"> | ||
<a class="pagination-link" href="{{this.url}}" data-faceted-search-facet>{{this.number}}</a> | ||
</li> | ||
{{/if}} | ||
{{/each}} | ||
|
||
{{#if next}} | ||
<li class="pagination-item pagination-item--next"> | ||
<a class="pagination-link" href="{{next}}" data-faceted-search-facet> | ||
{{lang 'common.next'}} | ||
<i class="icon" aria-hidden="true"> | ||
<svg> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-right"></use> | ||
</svg> | ||
</i> | ||
</a> | ||
</li> | ||
<li class="pagination-item pagination-item--next"> | ||
<a class="pagination-link" href="{{next}}" data-faceted-search-facet> | ||
{{lang 'common.next'}} | ||
<i class="icon" aria-hidden="true"> | ||
<svg> | ||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-right"></use> | ||
</svg> | ||
</i> | ||
</a> | ||
</li> | ||
{{/if}} | ||
</ul> | ||
</div> |
Oops, something went wrong.