From 03032f39164a8c191602a419849dda541cef07de Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Sat, 14 Dec 2024 00:58:12 +0800 Subject: [PATCH] d --- .../auth/board/accounts/_base/_account.html.erb | 9 ++++++++- .../auth/board/accounts/token.turbo_stream.erb | 13 ++++++++++++- app/views/auth/sign/_join.html+phone.erb | 12 ++++++++++-- app/views/auth/sign/_join.html.erb | 9 ++++++++- app/views/auth/sign/_token.html.erb | 12 +++++++++++- app/views/auth/sign/code.turbo_stream+phone.erb | 4 ++-- app/views/auth/sign/code.turbo_stream.erb | 12 +++++++++++- 7 files changed, 62 insertions(+), 9 deletions(-) diff --git a/app/views/auth/board/accounts/_base/_account.html.erb b/app/views/auth/board/accounts/_base/_account.html.erb index d224cae1..aa8faf57 100644 --- a/app/views/auth/board/accounts/_base/_account.html.erb +++ b/app/views/auth/board/accounts/_base/_account.html.erb @@ -21,7 +21,14 @@ <% unless model.confirmed %> - + <% end %> <%= button_to({ action: 'destroy', id: model.id }, method: :delete, aria: { label: t('.destroy.title'), confirm: '删除后此账号无法用于登录' }, class: 'button') do %> diff --git a/app/views/auth/board/accounts/token.turbo_stream.erb b/app/views/auth/board/accounts/token.turbo_stream.erb index ebedaf86..ced62d49 100644 --- a/app/views/auth/board/accounts/token.turbo_stream.erb +++ b/app/views/auth/board/accounts/token.turbo_stream.erb @@ -1,5 +1,16 @@ <%= turbo_stream.replace "token_#{@account.id}" do %> - diff --git a/app/views/auth/sign/_join.html.erb b/app/views/auth/sign/_join.html.erb index e37abcf5..17de6f78 100644 --- a/app/views/auth/sign/_join.html.erb +++ b/app/views/auth/sign/_join.html.erb @@ -11,7 +11,14 @@ <%= f.text_field :token, placeholder: Auth::VerifyToken.human_attribute_name(:token), autocomplete: 'off', class: 'input' %>
-
diff --git a/app/views/auth/sign/_token.html.erb b/app/views/auth/sign/_token.html.erb index d0ffbae2..e0308be1 100644 --- a/app/views/auth/sign/_token.html.erb +++ b/app/views/auth/sign/_token.html.erb @@ -10,7 +10,17 @@ <%= f.text_field :token, placeholder: Auth::VerifyToken.human_attribute_name(:token), autocomplete: 'off', class: 'input' %>
- <% end %> diff --git a/app/views/auth/sign/code.turbo_stream.erb b/app/views/auth/sign/code.turbo_stream.erb index 53166430..c143aeca 100644 --- a/app/views/auth/sign/code.turbo_stream.erb +++ b/app/views/auth/sign/code.turbo_stream.erb @@ -1,5 +1,15 @@ <%= turbo_stream.update 'sign_token' do %> -