Sha256: a20bfd2cfe20aa02f91c7efe93a24b51741b4b9b28e93ba2e7410d260ebc8590

Contents?: true

Size: 897 Bytes

Versions: 83

Compression:

Stored size: 897 Bytes

Contents

<%- d= Nokogiri::XML(service.xml) %>
<%- if service.code=="link" %>
#### งาน<%= service.name.split(':')[0] %>
  <%- if !(d/'node/node').blank? && (d/'node/node')[0]['TEXT'] %>
<%= uncomment (d/'node/node')[0]['TEXT'] %>
  <%- end %>
<%- else %>
#### งาน<%= service.name %>
  <%- md_file= "#{Rails.root}/app/views/#{service.module.code}/#{service.code}.md" %>

  <%= File.read md_file if File.exist?(md_file) %>
  <%- j= 1 %>
  <%- (d/'/node/node').each do |activity| %>
    <%- next unless (activity/'icon')[0] %>
    <%- action= freemind2action((activity/'icon')[0]['BUILTIN']) %>
    <%- next unless (action=='form') %>
    <%= render :partial=>'jinda/activity.md', :locals=>{:activity=>activity, :j=>j, :service=>service}  %>
    <%- j= j + 1 %>
  <%- end %>
<%- end %>

<!--%= #code_div File.read(model_file) %-->

<!--%= # code_div model.camelize.constantize.columns.to_yaml %-->

Version data entries

83 entries across 80 versions & 4 rubygems

Version Path
jinda-0.0.8 lib/generators/jinda/templates/app/views/jinda/_service.md
jinda-0.0.7 lib/generators/jinda/templates/app/views/jinda/_service.md
jinda-0.0.1 lib/generators/jinda/templates/app/views/jinda/_service.md