From 7d0232f019453582df621a33216b56efe402ec1a Mon Sep 17 00:00:00 2001 From: katibest Date: Tue, 21 Aug 2018 14:14:55 -0400 Subject: [PATCH 1/2] Turned links into buttons and styled --- .../assets/css/components/_tile.scss | 4 ++++ .../templates/api_docs/_action_tile.html.eex | 23 +++++++++++-------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/apps/block_scout_web/assets/css/components/_tile.scss b/apps/block_scout_web/assets/css/components/_tile.scss index ac23600b1e..bc1237f863 100644 --- a/apps/block_scout_web/assets/css/components/_tile.scss +++ b/apps/block_scout_web/assets/css/components/_tile.scss @@ -66,6 +66,10 @@ &-api-documentation { border-left: 4px solid $primary; + background-color: transparent; + width: 100%; + text-align: left; + padding: 15px; .tile-label { color: $primary; 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 c4d5f2d99f..68ce571e7f 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 @@ -1,14 +1,17 @@ -
+
From 2025becabfbe44665bc0ff4f334daf2ffd651d9b Mon Sep 17 00:00:00 2001 From: katibest Date: Tue, 21 Aug 2018 14:47:05 -0400 Subject: [PATCH 2/2] Always forgetting gettext internationalization --- apps/block_scout_web/priv/gettext/default.pot | 72 +++++++++---------- .../priv/gettext/en/LC_MESSAGES/default.po | 72 +++++++++---------- 2 files changed, 72 insertions(+), 72 deletions(-) diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index ce826ce2a2..b3f1f7af0e 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -501,8 +501,8 @@ msgstr "" #: lib/block_scout_web/templates/address_read_contract/index.html.eex:27 #: lib/block_scout_web/templates/address_transaction/index.html.eex:31 #: lib/block_scout_web/templates/address_transaction/index.html.eex:69 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:121 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:140 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:124 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:143 msgid "Code" msgstr "" @@ -842,25 +842,25 @@ msgid "Token Holdings" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:35 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:50 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:66 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:80 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:38 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:53 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:69 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:83 msgid "(query)" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:53 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:56 msgid "A string with the name of the action to be invoked." msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:38 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:41 msgid "A string with the name of the module to be invoked." msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:45 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:48 msgid "Action" msgstr "" @@ -870,95 +870,95 @@ msgid "Base URL:" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:19 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:22 msgid "Cancel" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:94 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:97 msgid "Clear" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:105 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:108 msgid "Curl" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:25 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:28 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:144 msgid "Description" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:122 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:125 msgid "Details" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:162 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:165 msgid "Example Value" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:91 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:94 msgid "Execute" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:5 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:7 msgid "GET" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:175 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:178 msgid "Model" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:30 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:33 msgid "Module" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:39 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:54 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:42 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:57 msgid "Must be set to:" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:24 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:27 msgid "Name" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:4 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:6 msgid "POST" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:17 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:20 msgid "Parameters" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:112 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:115 msgid "Request URL" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:128 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:131 msgid "Response Body" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:101 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:138 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:104 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 msgid "Responses" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:119 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:122 msgid "Server Response" msgstr "" @@ -968,19 +968,19 @@ msgid "This API is provided for developers transitioning their applications from msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:18 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:21 msgid "Try it out" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:32 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:47 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:63 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:35 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:50 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:66 msgid "required" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:35 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:50 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:38 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:53 msgid "string" msgstr "" diff --git a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po index 4562cb7e24..dca39416f7 100644 --- a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po +++ b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po @@ -513,8 +513,8 @@ msgstr "" #: lib/block_scout_web/templates/address_read_contract/index.html.eex:27 #: lib/block_scout_web/templates/address_transaction/index.html.eex:31 #: lib/block_scout_web/templates/address_transaction/index.html.eex:69 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:121 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:140 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:124 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:143 msgid "Code" msgstr "" @@ -854,25 +854,25 @@ msgid "Token Holdings" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:35 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:50 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:66 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:80 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:38 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:53 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:69 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:83 msgid "(query)" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:53 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:56 msgid "A string with the name of the action to be invoked." msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:38 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:41 msgid "A string with the name of the module to be invoked." msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:45 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:48 msgid "Action" msgstr "" @@ -882,95 +882,95 @@ msgid "Base URL:" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:19 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:22 msgid "Cancel" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:94 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:97 msgid "Clear" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:105 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:108 msgid "Curl" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:25 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:28 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:144 msgid "Description" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:122 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:125 msgid "Details" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:162 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:165 msgid "Example Value" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:91 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:94 msgid "Execute" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:5 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:7 msgid "GET" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:175 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:178 msgid "Model" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:30 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:33 msgid "Module" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:39 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:54 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:42 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:57 msgid "Must be set to:" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:24 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:27 msgid "Name" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:4 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:6 msgid "POST" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:17 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:20 msgid "Parameters" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:112 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:115 msgid "Request URL" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:128 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:131 msgid "Response Body" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:101 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:138 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:104 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:141 msgid "Responses" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:119 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:122 msgid "Server Response" msgstr "" @@ -980,19 +980,19 @@ msgid "This API is provided for developers transitioning their applications from msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:18 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:21 msgid "Try it out" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:32 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:47 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:63 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:35 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:50 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:66 msgid "required" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:35 -#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:50 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:38 +#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:53 msgid "string" msgstr ""