Sha256: 7d179f8f5d6cbce3ebf884d7ae47a0ac203306b69f6b8a6d2cb200c7b97d3c63

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 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('กรุณายืนยัน')) {location.hash='/mindapp/cancel/#{xmain.id}';}"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mindapp-0.0.3 lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml