Sha256: fcfbb6ac5b12ab3c88866b16b8924a8476bd906d5323118a465453bbeed3f273
Contents?: true
Size: 1.03 KB
Versions: 11
Compression:
Stored size: 1.03 KB
Contents
- process_services - Mindapp::Module.all.asc(:seq).each do |m| - unless m.role.blank? - next unless login? - next unless current_user.role - next unless current_user.role.upcase.split(',').include?(m.role.upcase) %li = m.name %ul - m.services.asc(:seq).each do |s| - next unless s.list - xml= REXML::Document.new(s.xml).root - unless s.rule.blank? - next if (!eval(s.rule)) - unless s.role.blank? - next unless login? - next unless current_user.role - next unless current_user.role.upcase.split(',').include?(s.role.upcase) - if s.code.downcase=="link" - name, url = s.name.split(":", 2) - url.strip! - else - name= s.name; url= "/mindapp/init?s=#{s.module_code}:#{s.code}" - if s.confirm %li %a{"data-panel"=>"main", :onclick=>"if (confirm('Please Confirm')) {location.hash='#{url}'};"}= name - else %li %a{"data-panel"=>"main", :href=> url}= name
Version data entries
11 entries across 11 versions & 2 rubygems