Home

Pages Classes Methods

    Pages

    • USAGE
    • admins.js.coffee
    • application.js
    • devs.js.coffee
    • disable_enter_key.js
    • iscroll-wrapper.js
    • iscroll.js
    • jquery-1.7.1.js
    • jquery.mobile.datebox.js
    • jquery.mobile.js
    • jquery.mobile.splitview.js
    • mindapp.js
    • users.js.coffee
    • admins.css.scss
    • application.css.scss
    • devs.css.scss
    • thsarabunnew.css
    • jquery.mobile.css
    • jquery.mobile.datebox.css
    • jquery.mobile.grids.collapsible.css
    • jquery.mobile.splitview.css
    • mindapp.css
    • sarabun.css
    • users.css.scss
    • index.mm
    • _full.haml
    • _page.haml
    • application.haml
    • _activity
    • _menu.haml
    • _menu_mm.haml
    • _model
    • _modul
    • _pending_home.haml
    • _pending_page.haml
    • _service
    • _static.haml
    • doc
    • error_logs.haml
    • feed.rss.builder
    • help.haml
    • index.html.haml
    • logs.haml
    • pending.haml
    • run_form.haml
    • run_output.haml
    • search.haml
    • status.haml
    • index.haml
    • mindapp.rake
    • 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

    Validate

    Generated by RDoc 6.4.0.

    Based on Darkfish by Michael Granger.