Skip to content

Commit

Permalink
Merge pull request #3174 from mzazrivec/add_missing_page_titles
Browse files Browse the repository at this point in the history
Add missing page titles
  • Loading branch information
martinpovolny committed Jan 10, 2018
2 parents b88b3b1 + b1e40c8 commit 8dca4f1
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions app/helpers/application_helper/title.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ def title_from_layout(layout)
return title if layout.blank? # no layout, leave title alone

title + case layout
when "automation_manager"
_(": Automation Managers")
when "catalogs"
_(": Catalogs")
when "configuration"
_(": My Settings")
when "configuration_job"
_(": Configuration Jobs")
when "container_dashboard"
_(": Container Dashboard")
when "container_topology"
_(": Container Topology")
when "dashboard"
_(": Dashboard")
when "chargeback"
Expand All @@ -29,18 +39,34 @@ def title_from_layout(layout)
_(": About")
when "ems_cluster"
": #{title_for_clusters}"
when "generic_object_definition"
_(": Generic Object Definitions")
when "host"
": #{title_for_hosts}"

# Specific titles for certain layouts
when "infra_topology"
_(": Infrastructure Topology")
when "miq_server"
_(": Servers")
when "monitor_alerts_list"
_(": Monitor Alerts")
when "monitor_alerts_most_recent"
_(": Most Recent Monitor Alerts")
when "monitor_alerts_overview"
_(": Monitor Alerts Overview")
when "network_topology"
_(": Network Topology")
when "physical_infra_topology"
_(": Physical Infrastructure Topology")
when "services"
_(": Services")
when "usage"
_(": VM Usage")
when "scan_profile"
_(": Analysis Profiles")
when "miq_policy_rsop"
_(": Policy Simulation")
when "report"
_(": Reports")
when "rss"
_(": RSS")
when "ops"
Expand All @@ -49,8 +75,12 @@ def title_from_layout(layout)
_(": Configuration Management")
when "pxe"
_(": PXE")
when "switch"
_(": Switches")
when "explorer"
": #{controller_model_name(params[:controller])} Explorer"
when "timeline"
_(": Timelines")
when "vm_cloud"
_(": Instances")
when "vm_infra"
Expand Down

0 comments on commit 8dca4f1

Please sign in to comment.