Skip to content

Instantly share code, notes, and snippets.

@9876691
Last active September 7, 2018 13:17
Show Gist options
  • Select an option

  • Save 9876691/c502f67844b68cb5da26e80a7660d493 to your computer and use it in GitHub Desktop.

Select an option

Save 9876691/c502f67844b68cb5da26e80a7660d493 to your computer and use it in GitHub Desktop.
class Bitcoins::IndexPage < MainLayout
needs addresses : Array(Tuple(String, String, String))
def content
h1 "Your Bitcoin Addresses"
table class: "table" do
thead do
tr do
th "Label"
th "Public Address"
th "Balance"
end
end
tbody do
@addresses.each do |label, public_key, balance|
tr do
td label
td public_key
td balance
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment