diff --git a/app/views/pages/changelog.html.erb b/app/views/pages/changelog.html.erb index 5a5345f2..9dae2f5b 100644 --- a/app/views/pages/changelog.html.erb +++ b/app/views/pages/changelog.html.erb @@ -4,18 +4,24 @@
-
- <%= image_tag @release_notes[:avatar], class: "rounded-full w-full h-full object-cover" if @release_notes[:avatar].present? %> -
+ <% if @release_notes[:avatar].present? %> +
+ <%= image_tag @release_notes[:avatar], class: "rounded-full w-full h-full object-cover" %> +
+ <% else %> +
+ <%= @release_notes[:username]&.first&.upcase || "?" %> +
+ <% end %>
<%= "@#{@release_notes[:username]}" %> -
<%= @release_notes[:published_at]&.strftime("%B %d, %Y") %>
+
<%= @release_notes[:published_at].strftime("%B %d, %Y") %>

<%= @release_notes[:name] %>

- <%= @release_notes[:body]&.html_safe %> + <%= @release_notes[:body].html_safe %>
diff --git a/test/controllers/mfa_controller_test.rb b/test/controllers/mfa_controller_test.rb index e2e24417..49e4b622 100644 --- a/test/controllers/mfa_controller_test.rb +++ b/test/controllers/mfa_controller_test.rb @@ -7,7 +7,9 @@ class MfaControllerTest < ActionDispatch::IntegrationTest end def sign_out - delete session_path(@user.sessions.last) if @user.sessions.any? + @user.sessions.each do |session| + delete session_path(session) + end end test "redirects to root if MFA already enabled" do diff --git a/test/controllers/onboardings_controller_test.rb b/test/controllers/onboardings_controller_test.rb index 129aaecf..c35c1409 100644 --- a/test/controllers/onboardings_controller_test.rb +++ b/test/controllers/onboardings_controller_test.rb @@ -162,6 +162,8 @@ end private def sign_out - delete session_path(@user.sessions.last) if @user.sessions.any? -end + @user.sessions.each do |session| + delete session_path(session) + end + end end