Sha256: a35c613961c7532a555883455f57fdd15612a8c526ee483386100540806e6b63

Contents?: true

Size: 1.35 KB

Versions: 10

Compression:

Stored size: 1.35 KB

Contents

#--
# WebROaR - Ruby Application Server - http://webroar.in/
# Copyright (C) 2009  Goonj LLC
#
# This file is part of WebROaR.
#
# WebROaR is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# WebROaR is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WebROaR.  If not, see <http://www.gnu.org/licenses/>.
#++

# Methods added to this helper will be available to all view files for the graph controller.
module GraphHelper
  #This method is used to get the name of the partial to be rendered on selecting the Graph from the select box in the Analytics page.
  def get_partial(url_type)
    case url_type
    when "URL-Calls"
      partial = 'url_calls_graph'
    when "Database-Usage"
      partial = 'database_usage_graph'
    when "URL-Breakup"
      partial = 'url_breakup_graph'
    when "Throughput"
      partial = 'throughput_graph'
    when "Resource-Usage"
      partial='resource_usage_graph_app'
    end
    return partial
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
webroar-0.7.0 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.6.1 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.5.0 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.4.0 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.3.1 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.3.0 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.2.6 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.2.5 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.2.4 src/admin_panel/app/helpers/graph_helper.rb
webroar-0.2.3 src/admin_panel/app/helpers/graph_helper.rb