Skip to content

Commit

Permalink
fix presentation of connected accounts information
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdembe committed Jan 17, 2025
1 parent 64245bc commit 8ed728f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions app/views/accounts/_connected_app.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,27 @@
</h2>

<% if IdentityConfig.store.feature_select_email_to_share_enabled %>
<%= t(
'account.connected_apps.associated_attributes_html',
timestamp_html: render(TimeComponent.new(time: identity.created_at)),
) %>
<br />
<% if @presenter.show_change_option %>
<%= t(
'account.connected_apps.associated_attributes_html',
timestamp_html: render(TimeComponent.new(time: identity.created_at)),
) %>
<strong>
<%= identity.email_address&.email || t('account.connected_apps.email_not_selected') %>
</strong>
<%= link_to(
t('help_text.requested_attributes.change_email_link'),
edit_connected_account_selected_email_path(identity_id: identity.id),
) %>
<% else %>
<%= t(
'account.connected_apps.associated_html',
timestamp_html: render(TimeComponent.new(time: identity.created_at)),
) %>
<% end %>
<% else %>
<%= t(
'account.connected_apps.associated_html',
'account.connected_apps.associated_attributes_html',
timestamp_html: render(TimeComponent.new(time: identity.created_at)),
) %>
<% end %>
Expand Down

0 comments on commit 8ed728f

Please sign in to comment.