Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Remove dead credit card overview partial and its locale keys (#3710)

Juan José Matae7f882c557a6
diff --git a/app/views/credit_cards/_overview.html.erb b/app/views/credit_cards/_overview.html.erb
deleted file mode 100644
index 317191a144..0000000000
--- a/app/views/credit_cards/_overview.html.erb
+++ /dev/null
@@ -1,36 +0,0 @@
-<%# locals: (account:) %>
-
-<div class="grid grid-cols-3 gap-2">
- <%= summary_card title: t(".amount_owed") do %>
- <%= format_money(account.balance_money) %>
- <% end %>
-
- <%= summary_card title: t(".available_credit") do %>
- <%= format_money(account.credit_card.available_credit_money) || t(".unknown") %>
- <% end %>
-
- <%= summary_card title: t(".minimum_payment") do %>
- <%= format_money(account.credit_card.minimum_payment_money || Money.new(0, account.currency)) %>
- <% end %>
-
- <%= summary_card title: t(".apr") do %>
- <%= account.credit_card.apr ? number_to_percentage(account.credit_card.apr, precision: 2) : t(".unknown") %>
- <% end %>
-
- <%= summary_card title: t(".expiration_date") do %>
- <%= account.credit_card.expiration_date ? l(account.credit_card.expiration_date, format: :long) : t(".unknown") %>
- <% end %>
-
- <%= summary_card title: t(".annual_fee") do %>
- <%= format_money(account.credit_card.annual_fee_money || Money.new(0, account.currency)) %>
- <% end %>
-</div>
-
-<div class="flex justify-center py-8">
- <%= render DS::Link.new(
- text: t(".edit_account_details"),
- variant: "ghost",
- href: edit_credit_card_path(account),
- frame: :modal
- ) %>
-</div>
diff --git a/config/locales/views/credit_cards/ca.yml b/config/locales/views/credit_cards/ca.yml
index 6ac6a75157..56173e89d3 100644
--- a/config/locales/views/credit_cards/ca.yml
+++ b/config/locales/views/credit_cards/ca.yml
@@ -15,12 +15,3 @@ ca:
minimum_payment_placeholder: '100'
new:
title: Introdueix les dades de la targeta de crèdit
- overview:
- amount_owed: Import degut
- annual_fee: Quota anual
- apr: TAE
- available_credit: Crèdit disponible
- edit_account_details: Edita els detalls del compte
- expiration_date: Data de caducitat
- minimum_payment: Pagament mínim
- unknown: Desconegut
diff --git a/config/locales/views/credit_cards/de.yml b/config/locales/views/credit_cards/de.yml
index c8a11c1b4d..e3ca26880e 100644
--- a/config/locales/views/credit_cards/de.yml
+++ b/config/locales/views/credit_cards/de.yml
@@ -17,12 +17,3 @@ de:
treat_balance_as_available_credit_label: Saldo ist verfügbarer Kreditrahmen
new:
title: Kreditkartendaten eingeben
- overview:
- amount_owed: Geschuldeter Betrag
- annual_fee: Jahresgebühr
- apr: Effektiver Jahreszins
- available_credit: Verfügbarer Kreditrahmen
- expiration_date: Ablaufdatum
- minimum_payment: Mindestzahlung
- unknown: Unbekannt
- edit_account_details: Kontodaten bearbeiten
diff --git a/config/locales/views/credit_cards/en.yml b/config/locales/views/credit_cards/en.yml
index 5d792f9b00..962ce3e28b 100644
--- a/config/locales/views/credit_cards/en.yml
+++ b/config/locales/views/credit_cards/en.yml
@@ -28,12 +28,3 @@ en:
treat_balance_as_available_credit_label: Balance is available credit
new:
title: Enter credit card details
- overview:
- amount_owed: Amount Owed
- annual_fee: Annual Fee
- apr: APR
- available_credit: Available Credit
- edit_account_details: Edit account details
- expiration_date: Expiration Date
- minimum_payment: Minimum Payment
- unknown: Unknown
diff --git a/config/locales/views/credit_cards/es.yml b/config/locales/views/credit_cards/es.yml
index 0ece0c5ea0..ba0ab8e3ae 100644
--- a/config/locales/views/credit_cards/es.yml
+++ b/config/locales/views/credit_cards/es.yml
@@ -15,12 +15,3 @@ es:
minimum_payment_placeholder: '100'
new:
title: Introducir detalles de la tarjeta de crédito
- overview:
- amount_owed: Cantidad adeudada
- annual_fee: Cuota anual
- apr: TAE
- available_credit: Crédito disponible
- edit_account_details: Editar detalles de la cuenta
- expiration_date: Fecha de vencimiento
- minimum_payment: Pago mínimo
- unknown: Desconocido
diff --git a/config/locales/views/credit_cards/fr.yml b/config/locales/views/credit_cards/fr.yml
index 4b99f8e323..0dfeb591d9 100644
--- a/config/locales/views/credit_cards/fr.yml
+++ b/config/locales/views/credit_cards/fr.yml
@@ -17,12 +17,3 @@ fr:
treat_balance_as_available_credit_label: Le solde correspond au crédit disponible
new:
title: Saisir les détails de la carte de crédit
- overview:
- amount_owed: Montant dû
- annual_fee: Frais annuels
- apr: TAEG
- available_credit: Crédit disponible
- edit_account_details: Modifier les détails du compte
- expiration_date: Date d'expiration
- minimum_payment: Paiement minimum
- unknown: Inconnu
diff --git a/config/locales/views/credit_cards/hu.yml b/config/locales/views/credit_cards/hu.yml
index be82b379de..f601f4349e 100644
--- a/config/locales/views/credit_cards/hu.yml
+++ b/config/locales/views/credit_cards/hu.yml
@@ -15,12 +15,3 @@ hu:
minimum_payment_placeholder: '100'
new:
title: Add meg a hitelkártya adatait
- overview:
- amount_owed: Tartozás összege
- annual_fee: Éves díj
- apr: THM
- available_credit: Rendelkezésre álló hitelkeret
- edit_account_details: Számlaadatok szerkesztése
- expiration_date: Lejárati dátum
- minimum_payment: Minimális törlesztőrészlet
- unknown: Ismeretlen
diff --git a/config/locales/views/credit_cards/it.yml b/config/locales/views/credit_cards/it.yml
index dcc0aa3232..0c0cdcda79 100644
--- a/config/locales/views/credit_cards/it.yml
+++ b/config/locales/views/credit_cards/it.yml
@@ -15,12 +15,3 @@ it:
minimum_payment_placeholder: '100'
new:
title: Inserisci i dettagli della carta di credito
- overview:
- amount_owed: Importo Dovuto
- annual_fee: Quota Annuale
- apr: TAEG
- available_credit: Credito Disponibile
- edit_account_details: Modifica dettagli conto
- expiration_date: Data di Scadenza
- minimum_payment: Pagamento Minimo
- unknown: Sconosciuto
diff --git a/config/locales/views/credit_cards/nb.yml b/config/locales/views/credit_cards/nb.yml
index 1d01a7f76a..2b48cde808 100644
--- a/config/locales/views/credit_cards/nb.yml
+++ b/config/locales/views/credit_cards/nb.yml
@@ -15,12 +15,3 @@ nb:
minimum_payment_placeholder: '100'
new:
title: Angi kredittkortdetaljer
- overview:
- amount_owed: Skyldig beløp
- annual_fee: Årsgebyr
- apr: Eff. rente
-
- available_credit: Tilgjengelig kreditt
- expiration_date: Utløpsdato
- minimum_payment: Minimumsbetaling
- unknown: Ukjent
\ No newline at end of file
diff --git a/config/locales/views/credit_cards/nl.yml b/config/locales/views/credit_cards/nl.yml
index 4a509d3869..955ec9d709 100644
--- a/config/locales/views/credit_cards/nl.yml
+++ b/config/locales/views/credit_cards/nl.yml
@@ -15,11 +15,3 @@ nl:
minimum_payment_placeholder: '100'
new:
title: Creditcardgegevens invoeren
- overview:
- amount_owed: Schuldig bedrag
- annual_fee: Jaarlijkse kosten
- apr: Rentepercentage
- available_credit: Beschikbaar krediet
- expiration_date: Vervaldatum
- minimum_payment: Minimumbetaling
- unknown: Onbekend
diff --git a/config/locales/views/credit_cards/pl.yml b/config/locales/views/credit_cards/pl.yml
index e822820939..6f02dc93e2 100644
--- a/config/locales/views/credit_cards/pl.yml
+++ b/config/locales/views/credit_cards/pl.yml
@@ -20,12 +20,3 @@ pl:
treat_balance_as_available_credit_label: Saldo to dostępny limit kredytowy
new:
title: Wprowadź dane karty kredytowej
- overview:
- amount_owed: Kwota zadłużenia
- annual_fee: Opłata roczna
- apr: RRSO
- available_credit: Dostępny limit kredytowy
- edit_account_details: Edytuj dane konta
- expiration_date: Data ważności
- minimum_payment: Minimalna spłata
- unknown: Nieznane
diff --git a/config/locales/views/credit_cards/pt-BR.yml b/config/locales/views/credit_cards/pt-BR.yml
index a7bc6c10ec..c5eedc622c 100644
--- a/config/locales/views/credit_cards/pt-BR.yml
+++ b/config/locales/views/credit_cards/pt-BR.yml
@@ -15,11 +15,3 @@ pt-BR:
minimum_payment_placeholder: '100'
new:
title: Inserir detalhes do cartão de crédito
- overview:
- amount_owed: Valor Devido
- annual_fee: Taxa Anual
- apr: TAE
- available_credit: Crédito Disponível
- expiration_date: Data de Expiração
- minimum_payment: Pagamento Mínimo
- unknown: Desconhecido
diff --git a/config/locales/views/credit_cards/pt-PT.yml b/config/locales/views/credit_cards/pt-PT.yml
index f298888120..5af9e3d3a0 100644
--- a/config/locales/views/credit_cards/pt-PT.yml
+++ b/config/locales/views/credit_cards/pt-PT.yml
@@ -21,12 +21,3 @@ pt-PT:
treat_balance_as_available_credit_label: O saldo é crédito disponível
new:
title: Introduza os detalhes do cartão de crédito
- overview:
- amount_owed: Montante em dívida
- annual_fee: Taxa Anual
- apr: TAE
- available_credit: Crédito Disponível
- edit_account_details: Editar os detalhes da conta
- expiration_date: Data de Validade
- minimum_payment: Pagamento Mínimo
- unknown: Desconhecido
diff --git a/config/locales/views/credit_cards/ro.yml b/config/locales/views/credit_cards/ro.yml
index dd545eb194..32d43d92bf 100644
--- a/config/locales/views/credit_cards/ro.yml
+++ b/config/locales/views/credit_cards/ro.yml
@@ -15,11 +15,3 @@ ro:
minimum_payment_placeholder: '100'
new:
title: Introdu detaliile cardului de credit
- overview:
- amount_owed: Suma datorată
- annual_fee: Taxă anuală
- apr: APR
- available_credit: Credit disponibil
- expiration_date: Data expirării
- minimum_payment: Plată minimă
- unknown: Necunoscut
diff --git a/config/locales/views/credit_cards/ru.yml b/config/locales/views/credit_cards/ru.yml
index bb8a8101cd..7f5151a941 100644
--- a/config/locales/views/credit_cards/ru.yml
+++ b/config/locales/views/credit_cards/ru.yml
@@ -15,12 +15,3 @@ ru:
minimum_payment_placeholder: '100'
new:
title: Введите данные кредитной карты
- overview:
- amount_owed: Задолженность
- annual_fee: Годовая плата
- apr: Годовая процентная ставка (APR)
- available_credit: Доступный кредит
- edit_account_details: Изменить данные счёта
- expiration_date: Дата окончания
- minimum_payment: Минимальный платёж
- unknown: Неизвестно
diff --git a/config/locales/views/credit_cards/tr.yml b/config/locales/views/credit_cards/tr.yml
index 38d0fd2b96..30bb276ffb 100644
--- a/config/locales/views/credit_cards/tr.yml
+++ b/config/locales/views/credit_cards/tr.yml
@@ -15,12 +15,3 @@ tr:
minimum_payment_placeholder: '100'
new:
title: Kredi kartı bilgilerini girin
- overview:
- amount_owed: Borç Tutarı
- annual_fee: Yıllık Ücret
- apr: Yıllık Faiz Oranı (APR)
- available_credit: Kullanılabilir Kredi
- edit_account_details: Hesap ayrıntılarını düzenle
- expiration_date: Son Kullanma Tarihi
- minimum_payment: Asgari Ödeme
- unknown: Bilinmiyor
diff --git a/config/locales/views/credit_cards/uk.yml b/config/locales/views/credit_cards/uk.yml
index b3c7eca690..6f67ffb5fc 100644
--- a/config/locales/views/credit_cards/uk.yml
+++ b/config/locales/views/credit_cards/uk.yml
@@ -17,12 +17,3 @@ uk:
treat_balance_as_available_credit_label: "Баланс — це доступний кредит"
new:
title: "Введіть дані кредитної картки"
- overview:
- amount_owed: "Сума боргу"
- annual_fee: "Річна плата"
- apr: "Річна процентна ставка"
- available_credit: "Доступний кредит"
- edit_account_details: "Редагувати дані рахунку"
- expiration_date: "Дата закінчення терміну дії"
- minimum_payment: "Мінімальний платіж"
- unknown: "Невідомо"
diff --git a/config/locales/views/credit_cards/vi.yml b/config/locales/views/credit_cards/vi.yml
index 96fd56c1e2..b23639869b 100644
--- a/config/locales/views/credit_cards/vi.yml
+++ b/config/locales/views/credit_cards/vi.yml
@@ -15,12 +15,3 @@ vi:
minimum_payment_placeholder: '100'
new:
title: Nhập thông tin thẻ tín dụng
- overview:
- amount_owed: Số tiền nợ
- annual_fee: Phí thường niên
- apr: Lãi suất APR
- available_credit: Hạn mức tín dụng còn lại
- edit_account_details: Chỉnh sửa thông tin tài khoản
- expiration_date: Ngày hết hạn
- minimum_payment: Thanh toán tối thiểu
- unknown: Không xác định
diff --git a/config/locales/views/credit_cards/zh-CN.yml b/config/locales/views/credit_cards/zh-CN.yml
index 4e785d97bd..bfa87ad48e 100644
--- a/config/locales/views/credit_cards/zh-CN.yml
+++ b/config/locales/views/credit_cards/zh-CN.yml
@@ -15,12 +15,3 @@ zh-CN:
minimum_payment_placeholder: '100'
new:
title: 请输入信用卡详细信息
- overview:
- amount_owed: 欠款总额
- annual_fee: 年费
- apr: 年利率
- available_credit: 可用额度
- expiration_date: 到期日期
- minimum_payment: 最低还款额
- unknown: 未知
- edit_account_details: 编辑账户详情
diff --git a/config/locales/views/credit_cards/zh-TW.yml b/config/locales/views/credit_cards/zh-TW.yml
index 946b7d5a66..6f2b3f271b 100644
--- a/config/locales/views/credit_cards/zh-TW.yml
+++ b/config/locales/views/credit_cards/zh-TW.yml
@@ -17,12 +17,3 @@ zh-TW:
treat_balance_as_available_credit_label: 餘額為可用額度
new:
title: 請輸入信用卡詳細資訊
- overview:
- amount_owed: 欠款總額
- annual_fee: 年費
- apr: 年利率
- available_credit: 可用額度
- edit_account_details: 編輯帳戶詳細資料
- expiration_date: 到期日期
- minimum_payment: 最低還款額
- unknown: 未知