Sha256: 331f19331e15a218d2f99c8f23f3ffe1fa3cffd378c1e84559f229562641dc33
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
- profile_name = @profile.options[:profile_name] - page_title(profile_name) %div#profile %h2#profile_name= profile_name - @profile.graphs.each do |graph| - id = URI.escape(graph.id) - host = URI.escape(graph.host) - plugin = URI.escape(graph.plugin) - instance = URI.escape(graph.instances.join(',')) %div{:id => id, :class => 'graph'} %img{:src => link_to("/images/loader.gif")} :javascript window.addEvent('domready', function() { var graph = new visageGraph('#{id}', '#{host}', '#{plugin}', { pluginInstance: '#{instance}', start: '#{@start}', finish: '#{@finish}', live: #{@live}, #{ "baseurl: '" + ENV['BASE_URL'].gsub(/^\//, '') if ENV['BASE_URL'] } }); }); - if @profile.graphs.size == 0 %div.graph %h4.error Oops! Looks like there aren't any graphs matching the specified patterns. %p These are the patterns: %pre :preserve Host: #{@profile.options[:hosts]} Metrics: #{@profile.options[:metrics]} %div#bottom_nav %a{:href => link_to("/profiles")} ← Back to profiles
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
visage-app-1.0.0 | lib/visage-app/views/profile.haml |
visage-app-0.9.6 | lib/visage-app/views/profile.haml |
visage-app-0.9.5 | lib/visage-app/views/profile.haml |