Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
update from to
Browse files Browse the repository at this point in the history
  • Loading branch information
wuminzhe committed Mar 7, 2024
1 parent db0e52b commit 6bbb7fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def from_link(message)
contract = Contract.find_by_address(network.chain_id, message.from)
name = contract ? "(#{contract.name})" : ''
%(
<a href="#{ea_url}" class="underline" target="_blank">#{source_ea}</a></br>
╰╴<a href="#{ua_url}" class="underline" target="_blank">#{"#{source_ua}#{name}"}</a>
<a href="#{ea_url}" class="underline" target="_blank">#{network.name}:#{source_ea}</a></br>
<a href="#{ua_url}" class="underline" target="_blank">#{network.name}:#{target_ua}#{name}</a>
).html_safe
else
display = message.from
Expand All @@ -75,8 +75,8 @@ def to_link(message)
contract = Contract.find_by_address(network.chain_id, message.from)
name = contract ? "(#{contract.name})" : ''
%(
<a href="#{ua_url}" class="underline" target="_blank">#{target_ua}#{name}</a></br>
╰╴<a href="#{ea_url}" class="underline" target="_blank">#{target_ea}</a>
<a href="#{ua_url}" class="underline" target="_blank">#{network.name}:#{target_ua}#{name}</a></br>
<a href="#{ea_url}" class="underline" target="_blank">#{network.name}:#{target_ea}</a>
).html_safe
else
display = message.to
Expand Down

0 comments on commit 6bbb7fd

Please sign in to comment.