Sha256: 1811c5fe3a8d8bd010fef842b54aa50396abea52f38d0a817f90f0c6fa849860

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 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'}
      :javascript
        window.addEvent('domready', function() {
          var graph = new visageGraph('#{graph.id}', '#{graph.host}', '#{graph.plugin}', {
            width: 900,
            height: 220,
            gridWidth: 800,
            gridHeight: 200,
            shade: false,
            pluginInstance: '#{graph.instances.join(',')}',
            name: '#{graph.plugin} on #{graph.host}',
            start: '#{@start}',
            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

4 entries across 4 versions & 1 rubygems

Version Path
visage-app-0.3.3 lib/visage-app/views/profile.haml
visage-app-0.3.2 lib/visage/views/profile.haml
visage-app-0.3.1 lib/visage/views/profile.haml
visage-app-0.3.0 lib/visage/views/profile.haml