Skip to content

Commit

Permalink
Updated contact verification status text
Browse files Browse the repository at this point in the history
  • Loading branch information
tsoganov committed Oct 11, 2024
1 parent 33ec3c6 commit f14919f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/controllers/contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def verify
result = conn.call_action(id: params[:contact_code])
handle_response(result); return if performed?

flash.notice = 'Successfully created identification request'
flash.notice = 'Successfully sent identification request'
redirect_to contact_path(contact_code: @response.contact[:code])
end

Expand Down
23 changes: 11 additions & 12 deletions app/views/contacts/partials/_general.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@
<th><%= t('contacts.show.phone') %></th>
<td><%= @contact[:phone] %></td>
</tr>
<% if @contact[:verified_at].present? %>
<tr>
<th><%= t('contacts.show.verification') %></th>
<td>
<tr>
<th><%= t('contacts.show.verification') %></th>
<td>
<% if @contact[:verified_at].present? %>
Verified on <%= l(@contact[:verified_at].to_datetime, format: :long) %>
</td>
</tr>
<% elsif @contact[:ident_request_sent_at].present? %>
<tr>
<th><%= t('contacts.show.verification') %></th>
<td>Identification requested on <%= l(@contact[:ident_request_sent_at].to_datetime, format: :long) %></td>
</tr>
<% end %>
<% elsif @contact[:ident_request_sent_at].present? %>
Identification requested on <%= l(@contact[:ident_request_sent_at].to_datetime, format: :long) %>
<% else %>
Unverified
<% end %>
</td>
</tr>
</tbody>
</table>

0 comments on commit f14919f

Please sign in to comment.