Permalink
Browse files

add tooltip description to saved queries page

  • Loading branch information...
1 parent fd2653f commit 0563dd3fe64956a7c3214f7e0f8109225be13120 Zach Morek committed Nov 13, 2013
Showing with 8 additions and 1 deletion.
  1. +2 −0 app/assets/javascripts/application.js
  2. +6 −1 app/views/saved_queries/_index.html.erb
@@ -18,6 +18,8 @@
//= require_tree .
$(function() {
+ $('[data-toggle="tooltip"]').tooltip();
+
window.editor = CodeMirror.fromTextArea($('#run_query_sql')[0], {
mode: 'text/x-sql',
indentWithTabs: true,
@@ -10,7 +10,12 @@
<% @saved_queries.each do |saved_query| %>
<tr>
<td><%= saved_query.query_count || 0 %></td>
- <td><%= link_to saved_query.name, saved_query_path(saved_query), :remote => true %></td>
+ <td><%= link_to saved_query.name,
+ saved_query_path(saved_query),
+ :remote => true,
+ :data => { :toggle => 'tooltip',
+ :placement => 'bottom',
+ :'original-title' => saved_query.description } %></td>
</tr>
<% end %>
</tbody>

0 comments on commit 0563dd3

Please sign in to comment.