Sha256: 6c068b618f6afa58211753510f6546c26028fc1db6ad7a6ab7c52731b95b48ab

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

- profile_name = @profile.options[:profile_name]
- page_title(profile_name)

%div#profile
  %h2#profile_name= profile_name
  - @profile.graphs.each do |graph|
    %div{:id => graph.id, :class => 'graph'}
      %img{:src => link_to("/images/loader.gif")}
      :javascript
        window.addEvent('domready', function() {
          var graph = new visageGraph('#{graph.id}', '#{graph.host}', '#{graph.plugin}', {
            pluginInstance: '#{graph.instances.join(',')}',
            name: '#{graph.plugin} on #{graph.host}',
            start: '#{@start}',
            #{ "baseurl: '" + ENV['VISAGE_APP_BASE_URL_PATH'].gsub(/^\//, '') + "'," if ENV['VISAGE_APP_BASE_URL_PATH'] }
            finish: '#{@finish}'
          });
        });
  - 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

1 entries across 1 versions & 1 rubygems

Version Path
visage-app-0.9.0.pre2 lib/visage-app/views/profile.haml