- if @sb[:active_tab] == "diagnostics_timelines"
  = render :partial => "layouts/flash_msg"
  - if @tl_record
    :javascript
      // Create from/to date JS vars to limit calendar selection range
      ManageIQ.calendar.calDateFrom = new Date(#{@tl_options[:sdate]});
      var ManageIQ.calendar.calDateTo = new Date(#{@tl_options[:edate]});
    = render :partial => 'layouts/tl_options'
    = render :partial => 'layouts/tl_detail'
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("This Server's Virtual Machine has not been identified.")}
  %div{:style => "padding-bottom: 20px"}

- if @sb[:active_tab] == "diagnostics_timelines"
  = render :partial => "layouts/flash_msg"
  - if @tl_record
    :javascript
      // Create from/to date JS vars to limit calendar selection range
      ManageIQ.calendar.calDateFrom = new Date(#{@tl_options[:sdate]});
      ManageIQ.calendar.calDateTo = new Date(#{@tl_options[:edate]});
    = render :partial => 'layouts/tl_options'
    = render :partial => 'layouts/tl_detail'
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("This Server's Virtual Machine has not been identified.")}
  %div{:style => "padding-bottom: 20px"}

Fix javascript error in diagnostics timelines tab
Fix javascript error in diagnostics timelines tab

We're accessing a hash / object, not a variable.

https://bugzilla.redhat.com/show_bug.cgi?id=1205492
