Sha256: 1457218cb021d30893dd5400fa61e71b97ae5b22601cb56af0d99989aa977681
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true module RedisWebManager module DashboardHelper 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_web_manager-0.1.6 | app/helpers/redis_web_manager/dashboard_helper.rb |