app/views/databases.erb in sqlui-0.1.18 vs app/views/databases.erb in sqlui-0.1.19

- old
+ new

@@ -48,18 +48,18 @@ } </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> + <h1><% config.name %> Databases</h1> + <% config.database_configs.each do |database_config| %> + <div class="database" onclick="window.location='<%= "#{database_config.url_path}/app" %>'"> + <h2 class='name'><%= database_config.display_name %></h2> + <a class='query-link' href="<%= database_config.url_path %>/app">query</a> + <a class='saved-link' href="<%= database_config.url_path %>/app?tab=saved">saved</a> + <a class='structure-link' href="<%= database_config.url_path %>/app?tab=structure">structure</a> <p class='description'> - <%= database['description'] %> + <%= database_config.description %> </p> </div> <% end %> </body> </html>