Sha256: e4c5bcf0942e4e67ba808e6cefa863ecf78c62bf257e323758fbe0b0a8e0f2b2

Contents?: true

Size: 547 Bytes

Versions: 13

Compression:

Stored size: 547 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

13 entries across 13 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.9 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.8 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.6 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.5 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.4 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.3 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.2 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.1 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.3.0 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.2.1 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.2.0 app/helpers/redis_web_manager/dashboard_helper.rb
redis_web_manager-0.1.8 app/helpers/redis_web_manager/dashboard_helper.rb