Sha256: 0673ec3dc0c6e725583fffc2c5c0133b3db42757dbcb06c2312e2254da6aa0d0

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

<!DOCTYPE html>
<html lang="en">
  <head>
    <title><%= @page_title %></title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
  </head>
  <body>
    <div class="container-fluid">
      <div class="navbar">
        <div class="navbar-inner">
          <a class="brand" href="#">DBAdmin</a>
          <ul class="nav">
            <li class="active"><a href="/tables">Tables</a></li>
            <li><a href="/query">Query</a></li>
          </ul>
        </div>
      </div>
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header">Tables</li>
              <% for table in @tables %>
                <li<%= ' class="active"' if table == @table %>>
                  <a href="/tables/<%= table %>/content"><%= table %></a>
                </li>
              <% end %>
            </ul>
          </div>
        </div>
        <div class="span9">
          <table class="table table-striped table-bordered">
            <tr>
              <% for column in @columns %>
                <th><%= column %></th>
              <% end %>
            </tr>

            <% for row in @rows %>
              <tr>
                <% for column in @columns %>
                  <td><%= row[column] %></td>
                <% end %>
              </tr>
            <% end %>
          </table>
        </div>
      </div>
    </div>
    <script src="/js/jquery-1.8.2.js"></script>
    <script src="/js/bootstrap.min.js"></script>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbadmin-0.1.0 lib/views/tables.erb