Home

Pages Classes Methods

    Pages

    • USAGE
    • README
    • manifest.js
    • application.js
    • application.js-jqm
    • cable.js
    • disable_enter_key.js-org
    • iscroll-wrapper.js
    • iscroll.js
    • jinda.js
    • jquery.mobile-1.2.1.js
    • jquery.mobile.datebox.js
    • jquery.mobile.splitview.js
    • app.scss
    • application.css.scss
    • articles.scss
    • thsarabunnew.css
    • jinda.css
    • jquery.mobile-1.2.1.css
    • jquery.mobile.datebox.css
    • jquery.mobile.grids.collapsible.css
    • jquery.mobile.splitview.css
    • kul-4.2.css
    • kul-4.2.min.css
    • sarabun.css
    • social.scss
    • ctrs_controller.rb-gem-test
    • index.mm
    • linkview.haml
    • content.haml
    • note.haml
    • edit.haml
    • index.haml
    • my.haml
    • show.html.haml
    • _adsense.haml
    • _activity
    • _menu.haml
    • _menu_mm.haml
    • _model
    • _modul
    • _pending_home.haml
    • _pending_page.haml
    • _service
    • _static.haml
    • doc-thai
    • doc
    • error_logs.haml
    • feed.rss.builder
    • help.haml
    • index.html.haml
    • logs.haml
    • notice_logs.haml
    • pending.haml
    • run_form.haml
    • run_output.haml
    • search.haml
    • status.haml
    • application.haml
    • _footer.haml
    • _header.haml
    • _menu.haml
    • _menu_mm.haml
    • _rightbar.haml
    • _sidebar.haml
    • application.haml-bsb
    • _full.haml
    • _page.haml
    • application.haml-jqm
    • mailer.html.haml
    • mailer.text.haml
    • gmail.html.haml
    • gmail.text.haml
    • index.haml
    • show.html.haml
    • my.haml
    • show.haml
    • index.xml.haml
    • password_reset.html.haml
    • password_reset.text.haml
    • index.haml
    • dot.env
    • 404.html
    • 422.html
    • 500.html
    • robots
    • _article.html.erb_spec.rbx
    • jinda.rake
    • process_services

    • Jinda::Module.all.asc(:seq).each do |m|

      • unless m.role.blank?

        • next unless login?

        • next unless current_ma_user.role

        -# next unless current_ma_user.role.upcase.split(',').include?(m.role.upcase) -# ####################### Remove w space in role ###################

        • next unless current_ma_user.role.upcase.split(“,”).map!(&:strip).include?(m.role.upcase)

      %li

      -# ########################### Main Display Menu ####################
      = m.name
      -# ##################################################################
      -# Code to display current login user role and required role for menu
      -# ##################################################################
      
      -# if defined?(current_ma_user.role) && !current_ma_user.role.blank?
        =# current_ma_user.role
      -# if m.role?
        =# m.role.upcase
      
      -# ##################################################################
      
      %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_ma_user.role
            - next unless current_ma_user.role.upcase.split(",").map!(&:strip).include?(s.role.upcase)
          - if s.code.downcase=="link"
            - name, url = s.name.split(":", 2)
            - url.strip!
          - else
            - name= s.name; url= "/jinda/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.3.1.

    Based on Darkfish by Michael Granger.