Sha256: 2a33b945a0c6291c33e2c404fec18a44134ca3aebac8cb69ff6308bb8b73bf8f

Contents?: true

Size: 1.65 KB

Versions: 6

Compression:

Stored size: 1.65 KB

Contents

# encoding: utf-8
module Mutx
  module View
    class Sections

      @@sections = {

        "Admin Tasks" => "admin/tasks/index",
        "Admin Tasks New" => "admin/tasks/new",
        "Admin Tasks Edit" => "admin/tasks/edit",
        "Admin Task" => "admin/tasks/show",
        "Admin Tasks Delete" => "admin/tasks/delete",

        "Admin Custom Params" => "admin/custom-params/index",
        "Admin Custom Params New" => "admin/custom-params/new",
        "Admin Custom Params Edit" => "admin/custom-params/edit",
        "Admin Custom Params Delete" => "admin/custom-params/delete",

        "Admin Repositories New" => "admin/repositories/new",
        "Admin Repositories" => "admin/repositories/index",
        "Admin Repositories Edit" => "admin/repositories/edit",

        'Tests' => "tests/index",
        'Test' => "tests/show",
        'Tasks' => "tasks/index",
        'Task' => "tasks/show",
        
        'Alerts' => 'alerts/index',
        'Alert' => 'alerts/show',

        'Task Results' => 'task_results/index',

        "Results"=> "results/index",
        "Result Console" => "results/console",
        "Result Report" => "results/report",

        "Features" => "features/index",
        "Feature" => "features/file",

        "View Configuration" => "admin/config",
        "Edit Configuration" => "admin/config/edit",
        "Repo" => "",
        "Repositories" => "repositories/index",
        "Repository" => "repositories/show",
        "Logs" => "logs/index",
        "Log" => "logs/show",
        "Help" => "help/index",

        "Error" => "error_handler"
      }

      def self.path_for section
        @@sections[section]
      end


    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutx-0.2.9 lib/mutx/view/sections.rb
mutx-0.2.8 lib/mutx/view/sections.rb
mutx-0.2.7 lib/mutx/view/sections.rb
mutx-0.2.6 lib/mutx/view/sections.rb
mutx-0.2.5 lib/mutx/view/sections.rb
mutx-0.2.4 lib/mutx/view/sections.rb