Class: Mutx::View::Sections

Inherits:
Object
  • Object
show all
Defined in:
lib/mutx/view/sections.rb

Constant Summary collapse

@@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"
}

Class Method Summary collapse

Class Method Details

.path_for(section) ⇒ Object



52
53
54
# File 'lib/mutx/view/sections.rb', line 52

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