Add a tooltip to badges.

Akinori MUSHA %!s(int64=10) %!d(string=hace) años
padre
commit
dcc72d9d98
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/helpers/dot_helper.rb

+ 1 - 0
app/helpers/dot_helper.rb

@@ -193,6 +193,7 @@ module DotHelper
193 193
           badge['class'] = 'badge'
194 194
           badge['href'] = events_path(agent: agent)
195 195
           badge['target'] = '_blank'
196
+          badge['title'] = "#{count} events created"
196 197
           badge.content = count.to_s
197 198
 
198 199
           node['data-badge-id'] = id