From 8a24dd0e0fbc6ccb0ea23c48b946a2c806eda6bb Mon Sep 17 00:00:00 2001 From: syeopite Date: Thu, 27 Jul 2023 10:05:48 -0700 Subject: [PATCH] Remove residual logic in captcha.ecr --- src/invidious/views/user/captcha.ecr | 82 +++++++++++++--------------- 1 file changed, 37 insertions(+), 45 deletions(-) diff --git a/src/invidious/views/user/captcha.ecr b/src/invidious/views/user/captcha.ecr index 1e290d59..e09f71da 100644 --- a/src/invidious/views/user/captcha.ecr +++ b/src/invidious/views/user/captcha.ecr @@ -9,56 +9,48 @@
- + - <% if captcha %> - <% case captcha_type when %> - <% when "image" %> - <% captcha = captcha.not_nil! %> - - <% captcha[:tokens].each_with_index do |token, i| %> - - <% end %> - - - - <% else # "text" %> - <% captcha = captcha.not_nil! %> - <% captcha[:tokens].each_with_index do |token, i| %> - - <% end %> - - - "> - <% end %> + <% case captcha_type when %> + <% when "image" %> + <% captcha = captcha.not_nil! %> + + <% captcha[:tokens].each_with_index do |token, i| %> + + <% end %> + + + + <% else # "text" %> + <% captcha = captcha.not_nil! %> + <% captcha[:tokens].each_with_index do |token, i| %> + + <% end %> + + + "> + <% end %> - + - <% case captcha_type when %> - <% when "image" %> - - <% else # "text" %> - - <% end %> - <% else %> - - <% end %> + <% case captcha_type when %> + <% when "image" %> + + <% else # "text" %> + + <% end %>