Misc tidying and clean ups (#3445)

* Remove trailing whitespace in i18n mailers

* Use query methods instead of #present? on AR attributes

* Delegate Status#account_domain method

* Delegate Mention #account_username and #account_acct methods
This commit is contained in:
Matt Jankowski
2017-05-31 14:38:17 -04:00
committed by Eugen Rochko
parent 5236a62861
commit b25e42a77f
8 changed files with 18 additions and 9 deletions

View File

@ -1,4 +1,4 @@
node(:url) { |mention| TagManager.instance.url_for(mention.account) }
node(:acct) { |mention| mention.account.acct }
node(:acct) { |mention| mention.account_acct }
node(:id) { |mention| mention.account_id }
node(:username) { |mention| mention.account.username }
node(:username) { |mention| mention.account_username }

View File

@ -9,4 +9,4 @@
مع أجمل التحيات،
فريق <%= @instance %>
فريق <%= @instance %>

View File

@ -2,11 +2,11 @@
شما الان در <%= @instance %> حساب باز کردید.
برای تأیید عضویت، لطفاً روی پیوند زیر کلیک کنید:
برای تأیید عضویت، لطفاً روی پیوند زیر کلیک کنید:
<%= confirmation_url(@resource, confirmation_token: @token) %>
لطفاً همچنین شرایط و مقررات استفادهٔ ما را هم بخوانید <%= terms_url %>
با احترام،
گردانندگان سرور <%= @instance %>
گردانندگان سرور <%= @instance %>