Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
Format and translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkachowski committed Oct 29, 2024
1 parent aa559a3 commit ed8180e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ defmodule BlockScoutWeb.Tokens.Instance.OverviewView do

def external_url("http" <> _rest = external_url) do
sanitised = external_url |> html_escape() |> safe_to_string()

if sanitised != external_url do
nil
else
Expand Down
4 changes: 2 additions & 2 deletions apps/block_scout_web/priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ msgstr ""

#: lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex:18
#: lib/block_scout_web/templates/tokens/instance/overview/_tabs.html.eex:10
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:202
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:210
#, elixir-autogen, elixir-format
msgid "Metadata"
msgstr ""
Expand Down Expand Up @@ -2659,7 +2659,7 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:4
#: lib/block_scout_web/templates/transaction_token_transfer/index.html.eex:7
#: lib/block_scout_web/views/address_view.ex:434
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:201
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:209
#: lib/block_scout_web/views/tokens/overview_view.ex:39
#: lib/block_scout_web/views/transaction_view.ex:535
#, elixir-autogen, elixir-format
Expand Down
4 changes: 2 additions & 2 deletions apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ msgstr ""

#: lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex:18
#: lib/block_scout_web/templates/tokens/instance/overview/_tabs.html.eex:10
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:202
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:210
#, elixir-autogen, elixir-format
msgid "Metadata"
msgstr ""
Expand Down Expand Up @@ -2659,7 +2659,7 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:4
#: lib/block_scout_web/templates/transaction_token_transfer/index.html.eex:7
#: lib/block_scout_web/views/address_view.ex:434
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:201
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:209
#: lib/block_scout_web/views/tokens/overview_view.ex:39
#: lib/block_scout_web/views/transaction_view.ex:535
#, elixir-autogen, elixir-format
Expand Down

0 comments on commit ed8180e

Please sign in to comment.