Sha256: 3cde267d5b325f3117cf79a04553e2a439a8b1b160be0b4114ebaa1fa3d197b1

Contents?: true

Size: 784 Bytes

Versions: 6

Compression:

Stored size: 784 Bytes

Contents

- if task.error_msg.blank?
  - event_class = "event"
  - event_onclick = ""
- else
  - event_class = "event pointer"
  - event_onclick = "jQuery('#task_#{task.id}_details').toggle(300);"

- if @expanded_events.include? task.id
  - event_style = ""
- else
  - event_style = "display:none"

%tr{:id => "task_#{task.id}", :class => event_class, :onclick => event_onclick }
  %td.qd_icon
    = icon_for_task task
    = "#{task.perc_finished}%" if task.running?
  %td.qd_date= task.updated_at.to_s :history
  %td.qd_prosa
    - if show_ids
      #{id_prefix}#{task.id}:
    = task.prosa
    - unless task.error_msg.blank?
      = image_tag 'icon_expand.gif'
      %div{:id => "task_#{task.id}_details", :class => 'qd_error_msg', :style => event_style}
        = task.error_msg
        %br

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
queue_dispatcher-2.5.3 app/views/queue_dispatcher_views/_task_event.html.haml
queue_dispatcher-2.3.0 app/views/queue_dispatcher_views/_task_event.html.haml
queue_dispatcher-2.1.0 app/views/queue_dispatcher_views/_task_event.html.haml
queue_dispatcher-1.5.1 app/views/queue_dispatcher_views/_task_event.html.haml
queue_dispatcher-1.3.1 app/views/queue_dispatcher_views/_task_event.html.haml
queue_dispatcher-1.3.0 app/views/queue_dispatcher_views/_task_event.html.haml