Skip to content

Instantly share code, notes, and snippets.

@mattfitzgerald
Created March 21, 2014 03:37

Revisions

  1. mattfitzgerald created this gist Mar 21, 2014.
    52 changes: 52 additions & 0 deletions index.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>TrelloView</title>

    <!-- Bootstrap -->

    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

    <!-- Optional theme -->
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">

    <!-- Latest compiled and minified JavaScript -->
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    </head>
    <body>

    <div class="container">
    <div class="page-header">
    <h1>TrelloView</h1>
    <p class="lead">The Squawkbox Universe as seen by Trello</p>
    </div>

    <% boards.each do |board| %>
    <h2><%=board[:name]%></h2>
    <hr>
    <% board[:lists].each do |list| %>
    <h3><%=list[:name]%></h3>
    <ul>
    <% list[:cards].each do |card| %>
    <li><%=card%></li>
    <% end %>
    </ul>
    <% end %>
    <% end %>

    </div> <!-- /container -->

    </body>
    </html>