mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
Adding translations for /account tabs
This commit is contained in:
@@ -20,13 +20,13 @@
|
||||
|
||||
.row.tabset-ctrl#account-tabs{ style: 'margin-bottom: 100px', navigate: 'true', selected: 'orders', prefix: 'account' }
|
||||
.small.12.medium-3.columns.tab{ name: "orders" }
|
||||
%a{ href: 'javascript:void(0)' } My Orders
|
||||
%a{ href: 'javascript:void(0)' }=t('.tabs.orders')
|
||||
.small.12.medium-3.columns.tab{ name: "cards" }
|
||||
%a{ href: 'javascript:void(0)' } My Credit Cards
|
||||
%a{ href: 'javascript:void(0)' }=t('.tabs.cards')
|
||||
.small.12.medium-3.columns.tab{ name: "history" }
|
||||
%a{ href: 'javascript:void(0)' } Transactions
|
||||
%a{ href: 'javascript:void(0)' }=t('.tabs.transactions')
|
||||
.small.12.medium-3.columns.tab{ name: "details" }
|
||||
%a{ href: 'javascript:void(0)' }My Details
|
||||
%a{ href: 'javascript:void(0)' }=t('.tabs.details')
|
||||
.small-12.columns.tab-view
|
||||
|
||||
= render partial: "shared/footer"
|
||||
|
||||
@@ -2190,6 +2190,11 @@ Please follow the instructions there to make your enterprise visible on the Open
|
||||
show:
|
||||
open_orders: Open Orders
|
||||
transaction_history: Transaction History
|
||||
tabs:
|
||||
orders: Orders
|
||||
cards: Credit Cards
|
||||
transactions: Transactions
|
||||
details: Details
|
||||
open_orders:
|
||||
order: Order
|
||||
shop: Shop
|
||||
|
||||
@@ -13,7 +13,7 @@ feature "Credit Cards", js: true do
|
||||
it "lists saved cards, shows interface for adding new cards" do
|
||||
visit "/account"
|
||||
|
||||
click_link 'My Credit Cards'
|
||||
click_link I18n.t('spree.users.show.tabs.cards')
|
||||
|
||||
expect(page).to have_content I18n.t(:saved_cards)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user