Module: RedisWebManager::DashboardHelper
- Defined in:
- app/helpers/redis_web_manager/dashboard_helper.rb
Instance Method Summary collapse
Instance Method Details
#graph_canvas(data, id) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/redis_web_manager/dashboard_helper.rb', line 5 def graph_canvas(data, id) if data.nil? || data.empty? content_tag(:div, 'You don\'t have any RedisWebManager keys yet into your redis database', class: 'm-5 text-center') else content_tag(:canvas, nil, id: id, width: 800, height: 400, data: { canvas: data.to_json }) end end |