diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-16 10:37:49 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-16 16:37:49 +0200 |
commit | 7efde22c3ab0464a0896abcaa8be277fd14bdee9 (patch) | |
tree | df9e7c44f606840338e9320337dba27e1cd6f0e6 /app/views/settings | |
parent | 90760eae4c044817728859e1adf6f57930d83b98 (diff) |
Use local vars in partials (#1935)
* Use local vars in accounts/header partial * Use local variable in 2fa recovery codes partial
Diffstat (limited to 'app/views/settings')
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/settings/two_factor_auths/_recovery_codes.html.haml b/app/views/settings/two_factor_auths/_recovery_codes.html.haml index 719a1e01b..054588b97 100644 --- a/app/views/settings/two_factor_auths/_recovery_codes.html.haml +++ b/app/views/settings/two_factor_auths/_recovery_codes.html.haml @@ -1,6 +1,6 @@ %p.hint= t('two_factor_auth.recovery_instructions') %ol.recovery-codes - - @codes.each do |code| + - recovery_codes.each do |code| %li %samp= code diff --git a/app/views/settings/two_factor_auths/create.html.haml b/app/views/settings/two_factor_auths/create.html.haml index 8710b6e02..138a930fd 100644 --- a/app/views/settings/two_factor_auths/create.html.haml +++ b/app/views/settings/two_factor_auths/create.html.haml @@ -1,4 +1,4 @@ - content_for :page_title do = t('settings.two_factor_auth') -= render 'recovery_codes' += render partial: 'recovery_codes', object: @codes diff --git a/app/views/settings/two_factor_auths/recovery_codes.html.haml b/app/views/settings/two_factor_auths/recovery_codes.html.haml index 8710b6e02..138a930fd 100644 --- a/app/views/settings/two_factor_auths/recovery_codes.html.haml +++ b/app/views/settings/two_factor_auths/recovery_codes.html.haml @@ -1,4 +1,4 @@ - content_for :page_title do = t('settings.two_factor_auth') -= render 'recovery_codes' += render partial: 'recovery_codes', object: @codes |