Remove Transaction index link from the header

pull/42/head
CJ Bryan and Matt Olenick 7 years ago
parent 720fd3c391
commit 7cc129912d
  1. 4
      lib/explorer_web/templates/layout/_header.html.eex
  2. 4
      test/explorer_web/features/contributor_browsing_test.exs

@ -7,10 +7,6 @@
</a>
</td>
<td class="header__cell header__cell--links" align="right">
<a href="<%= transaction_path(@conn, :index, Gettext.get_locale) %>" class="header__link">
<img class="header__link-image" src="<%= static_path(@conn, "/images/transaction.svg") %>" />
<div class="header__link-name header__link-name--transactions"><%= gettext("Transactions") %></div>
</a>
<a href="<%= block_path(@conn, :index, Gettext.get_locale) %>" class="header__link">
<img class="header__link-image" src="<%= static_path(@conn, "/images/block.svg") %>" />
<div class="header__link-name header__link-name--blocks"><%= gettext("Blocks") %></div>

@ -108,12 +108,12 @@ defmodule ExplorerWeb.UserListTest do
|> assert_has(css(".transactions__column--value", count: 5))
|> assert_has(css(".transactions__column--age", count: 5, visible: false))
|> click(css(".header__link-name--transactions", text: "Transactions"))
|> visit("/transactions")
|> click(css(".transactions__tab-link", text: "Pending"))
|> click(css(".transactions__link", text: "0xC001"))
|> assert_has(css(".transaction__item-value--status", text: "Pending"))
|> click(css(".header__link-name--transactions", text: "Transactions"))
|> visit("/transactions")
|> refute_has(css(".transactions__column--block", text: "Pending"))
|> click(link("0xSk8"))

Loading…
Cancel
Save