Sha256: 879fb1c09cdfd9969f07224dc056221ce89d0059b34c7c4a0a5ff62454cd11c8

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

- @xmains= xmains
%table{:id=>"pending-table", :width=>"100%"}
  %tr{:style=>"color:white; background-color:#97BF60;"}
    %th id
    %th task
    %th step
    %th starter
    %th begin
    %th cancel
  - @xmains.each do |xmain|
    - @xmain= xmain
    - next unless xmain.current_runseq
    - @runseq= Mindapp::Runseq.find(xmain.current_runseq)
    - next unless @runseq
    - next unless %w(form output pdf).include?(@runseq.action)
    - next if @xmain.runseqs.first==@xmain.current_runseq && @xmain.user!=current_user
    - next unless authorize?
    %tr
      %td= link_to xmain.xid, :controller=>"mindapp", :action=>"run", :id=>xmain.id
      %td= link_to xmain.name, :controller=>"mindapp", :action=>"run", :id=>xmain.id
      %td= @runseq.name
      %td{:align=>'center'}= xmain.user.try :code
      %td= xmain.start.strftime("%c")
      %td(align='center')= link_to image_tag('delete.png', style:'border:none; float:none;'), "#", :onclick=>"if (confirm('Please Confirm')) {location.hash='/mindapp/cancel/#{xmain.id}';}"

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mindapp2-0.1.1.3 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp2-0.1.1.2 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp2-0.1.1.1 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp2-0.1.0 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp-0.0.8 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp-0.0.7 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp-0.0.6 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp-0.0.5 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
mindapp-0.0.4 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml