Skip to content

Commit

Permalink
removed invoice payment link
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Sep 22, 2023
1 parent 3c6fa98 commit 4b38870
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions app/mailers/ban_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ def ban_mail(ban, ban_strikes, domain_name)
@ban = ban
@user = @ban.user
@domain_name = domain_name
invoice = @ban.invoice
@linkpay_url = invoice.payment_link

I18n.locale = @user.locale
@past_due_invoices = I18n.locale == :en ? ban_strikes.ordinalize : ban_strikes
Expand Down
1 change: 0 additions & 1 deletion app/views/ban_mailer/ban_mail.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<p><%= t('.introduction', domain_name: @domain_name) %></p>
<p id='number-of-strikes'><%= t('.number_of_strikes', number: @past_due_invoices) %></p>
<p><%= t('.linkpay_html', linkpay_url: @linkpay_url) if @linkpay_url %></p>
<%= t('.footer_html') %>
</body>
</html>
2 changes: 0 additions & 2 deletions config/locales/mailers/ban_mailer.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ en:
This is your %{number} invoice overdue. According to clause 7.3.3 of the .ee Auction Environment
User Agreement, a user can use the service of the environment if there are less than 3 unpaid
invoices under their user account.
linkpay_html: |
You can pay for this invoice using following <a href=%{linkpay_url}>link</a>.
footer_html: |
<p>If you have any further questions, please contact the Estonian Internet Foundation at
[email protected] or +372 727 1000.</p>
Expand Down
2 changes: 0 additions & 2 deletions config/locales/mailers/ban_mailer.et.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ et:
number_of_strikes: |
See on %{number}. tasumata arve. Tulenevalt Kasutajalepingu punktist 7.3.3. saab Teenuse
kasutaja oksjonikeskkonna teenuseid kasutada, kui maksmata arveid on vähem kui kolm.
linkpay_html: |
Saad arve koheselt tasuda selle <a href=%{linkpay_url}>lingi</a> abil.
footer_html: |
<p>Täiendavate küsimuste korral võtke palun ühendust Eesti Interneti Sihtasutusega aadressil
[email protected] või +372 727 1000.</p>
Expand Down

0 comments on commit 4b38870

Please sign in to comment.