Sha256: 7c365bfaf9f9489b0ed3c65a0c53927f80798d5db39160f7248187a902f4558f

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

<html>
  <head>
    <title>Databases</title>

    <style>
      body {
        font-family: Helvetica;
        margin: 0px;
      }

      h1 {
        font-size: 30px;
        margin: 10px;

      }

      .database a {
        margin-right: 10px;
        color: darkblue;
        font-size: 16px;
      }

      .database h2 {
        margin: 0px;
        font-size: 20px;
        font-weight: bold;
      }

      .database p {
        margin: 0px;
        margin-top: 10px;
        font-size: 16px;
      }

      .database {
        margin: 0px;
        padding: 10px;
        cursor: pointer;
        border-bottom: 1px solid #eeeeee;
      }

      .database:last-child {
        border-bottom: none;
      }

      .database:hover {
        background: #eee;
      }
    </style>
  </head>

  <body>
    <h1>Databases</h1>
    <% databases.values.each do |database| %>
      <div class="database" onclick="window.location='<%= "/db/#{database['url_path']}/app" %>'">
      <h2 class='name'><%= database['name'] %></h2>
      <a class='query-link' href="/db/<%= database['url_path'] %>/app">query</a>
      <a class='saved-link' href="/db/<%= database['url_path'] %>/app?tab=saved">saved</a>
      <a class='structure-link' href="/db/<%= database['url_path'] %>/app?tab=structure">structure</a>
      <p class='description'>
        <%= database['description'] %>
      </p>
    </div>
    <% end %>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sqlui-0.1.18 app/views/databases.erb