From 6c05d0a9f31dc5650cd7edbceb4b116f7a8313c6 Mon Sep 17 00:00:00 2001 From: Sebastian Abondano Date: Tue, 28 Aug 2018 11:36:13 -0400 Subject: [PATCH] Adds links to token standards in API docs --- apps/block_scout_web/lib/block_scout_web/etherscan.ex | 9 +++++++-- .../templates/api_docs/_action_tile.html.eex | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/etherscan.ex b/apps/block_scout_web/lib/block_scout_web/etherscan.ex index 27421bb384..17f278d6d5 100644 --- a/apps/block_scout_web/lib/block_scout_web/etherscan.ex +++ b/apps/block_scout_web/lib/block_scout_web/etherscan.ex @@ -821,7 +821,9 @@ defmodule BlockScoutWeb.Etherscan do @token_gettoken_action %{ name: "getToken", - description: "Get ERC-20 or ERC-721 token by contract address.", + description: + "Get ERC-20" <> + "or ERC-721 token by contract address.", required_params: [ %{ key: "contractaddress", @@ -858,7 +860,10 @@ defmodule BlockScoutWeb.Etherscan do @stats_tokensupply_action %{ name: "tokensupply", - description: "Get an ERC-20 or ERC-721 token total supply by contract address.", + description: + "Get ERC-20 or " <> + "ERC-721 " <> + " token total supply by contract address.", required_params: [ %{ key: "contractaddress", diff --git a/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex index a37a5986a0..507d3eb073 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex @@ -7,7 +7,7 @@ <%= gettext "GET" %> <%= @action.name %> -

<%= @action.description %>

+

<%= raw @action.description %>

<%= raw query_params(@module_name, @action) %>