Instantly share code, notes, and snippets.
Created
January 10, 2019 13:35
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save villander/778176d7d85694f40cf0f4f6b581e029 to your computer and use it in GitHub Desktop.
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
{{head-layout}} | |
{{#if currentUser.isImpersonating}} | |
<div class="flash-message success"> | |
You are currently impersonating {{currentUser.user.nameWithEmail}}. | |
<a href class="dismiss-link" {{action "stopImpersonation"}}>Click here</a> to stop impersonation. | |
</div> | |
{{/if}} | |
{{#if currentUser.user}} | |
<header class="header"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="logo"> | |
{{#link-to "merchant.dashboard"}}{{reseller-logo}}{{/link-to}} | |
</div> | |
<ul> | |
{{#if (can "route:merchant.dashboard") }} | |
<li>{{#link-to "merchant.dashboard"}}DASHBOARD{{/link-to}}</li> | |
{{/if}} | |
{{#if (can "route:merchant.transactions" "product:gateway") }} | |
<li class="dropdown transactions-menu-dropdown"> | |
{{#link-to | |
"merchant.transactions" | |
(query-params transactionType="card") | |
data-test="transactions-menu-item" | |
class="transactions-menu-item" | |
}} | |
GATEWAY | |
{{/link-to}} | |
<ul> | |
<li> | |
{{#link-to | |
"merchant.transactions" | |
(query-params transactionType="card") | |
data-test-menu-item="card-transactions" | |
class="transactions-submenu-item" | |
}} | |
CARD TRANSACTIONS | |
{{/link-to}} | |
</li> | |
<li> | |
{{#link-to | |
"merchant.check-transactions" | |
(query-params transactionType="check") | |
data-test-menu-item="check-transactions" | |
}} | |
CHECK TRANSACTIONS | |
{{/link-to}} | |
</li> | |
<li> | |
{{#link-to | |
"merchant.wallet-transactions" | |
(query-params transactionType="wallet") | |
data-test-menu-item="wallet-transactions" | |
}} | |
WALLET TRANSACTIONS | |
{{/link-to}} | |
</li> | |
<li> | |
{{#link-to | |
"merchant.subscriptions" | |
data-test-menu-item="subscription" | |
}} | |
SUBSCRIPTIONS | |
{{/link-to}} | |
</li> | |
{{#if (can "route:merchant.batches") }} | |
<li> | |
{{#link-to "merchant.batches"}}BATCHES{{/link-to}} | |
</li> | |
{{/if}} | |
<li> | |
{{#link-to "merchant.virtual-terminal" class="virtualterm-submenu-item"}}VIRTUAL TERMINAL{{/link-to}} | |
</li> | |
</ul> | |
</li> | |
{{/if}} | |
{{#if (can "route:merchant.vcards") }} | |
<li class="dropdown"> | |
{{#link-to "merchant.vcards"}}VCARDS{{/link-to}} | |
<ul> | |
<li>{{#link-to "merchant.vcards.index" data-test-menu-item="new-card"}}VCARDS LIST{{/link-to}}</li> | |
<li>{{#link-to "merchant.vcards.new" data-test-menu-item="new-card"}}NEW CARD{{/link-to}}</li> | |
</ul> | |
</li> | |
{{/if}} | |
{{#if (can "route:merchant.insurances.policies" "product:insurance") }} | |
<li class="dropdown insurances-menu-dropdown"> | |
{{#link-to "merchant.insurances.policies" }}INSURANCE{{/link-to}} | |
<ul> | |
<li>{{#link-to "merchant.insurances.policies" data-test-menu-item="policies"}}POLICIES {{/link-to}}</li> | |
<li>{{#link-to "merchant.insurances.quotes" data-test-admin="quotes"}}QUOTES{{/link-to}}</li> | |
<li>{{#link-to "merchant.insurances.new-policy" }}NEW POLICY{{/link-to}}</li> | |
</ul> | |
</li> | |
{{/if}} | |
{{#if (can "route:merchant.chargebacks" "products:chargebacks,alerts") }} | |
<li class="dropdown"> | |
{{#link-to "merchant.chargebacks"}}CHARGEBACKS{{/link-to}} | |
<ul> | |
{{#if (can "product:chargebacks")}} | |
<li> | |
{{#link-to "merchant.chargebacks" data-test-menu-item="chargeback"}}CHARGEBACK LIST{{/link-to}} | |
</li> | |
{{/if}} | |
{{#if (can "product:alerts")}} | |
<li> | |
{{#link-to "merchant.chargebacks.alerts" data-test-menu-item="alerts"}}ALERTS{{/link-to}} | |
</li> | |
{{/if}} | |
</ul> | |
</li> | |
{{/if}} | |
{{#if (can "route:merchant.3d-secure" "product:threeds") }} | |
<li>{{#link-to "merchant.3d-secure" data-test-menu-item="3d-secure"}}3D SECURE{{/link-to}}</li> | |
{{/if}} | |
{{#if (can "route:merchant.kount" "product:kount") }} | |
<li>{{#link-to "merchant.kount" data-test-menu-item="kount"}}KOUNT{{/link-to}}</li> | |
{{/if}} | |
{{#if (can "route:merchant.confirmation" "product:confirmations") }} | |
<li>{{#link-to "merchant.confirmation" data-test-menu-item="confirmation"}}CONFIRMATION{{/link-to}}</li> | |
{{/if}} | |
{{#if (can "route:merchant.users") }} | |
<li>{{#link-to "merchant.users" data-test-menu-item="users"}}USERS{{/link-to}}</li> | |
{{/if}} | |
{{#if (can "route:merchant.settings") }} | |
<li>{{#link-to "merchant.settings" data-test-menu-item="settings"}}SETTINGS{{/link-to}}</li> | |
{{/if}} | |
<li> | |
<a | |
data-test-logout-btn | |
class="logout-btn" | |
href="javascript:void(0);" | |
{{action "invalidateSession"}} | |
> | |
LOGOUT | |
</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</header> | |
{{/if}} | |
<div id="main"> | |
{{outlet}} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment