From 01248876d2a74e3a5eee5a55908c687da3b9600e Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 4 Jul 2018 10:56:36 -0500 Subject: Added shortcuts help, i18n --- app/views/help/_shortcuts.html.haml | 6 ++++++ app/views/layouts/nav/sidebar/_project.html.haml | 4 ++-- app/views/projects/environments/empty.html.haml | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/views/help/_shortcuts.html.haml b/app/views/help/_shortcuts.html.haml index c23fe0b5c49..37b56f92030 100644 --- a/app/views/help/_shortcuts.html.haml +++ b/app/views/help/_shortcuts.html.haml @@ -179,6 +179,12 @@ %kbd e %td Go to environments + %tr + %td.shortcut + %kbd g + %kbd l + %td + Go to metrics %tr %td.shortcut %kbd g diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml index e4fe82f7666..00d75b3399b 100644 --- a/app/views/layouts/nav/sidebar/_project.html.haml +++ b/app/views/layouts/nav/sidebar/_project.html.haml @@ -211,12 +211,12 @@ - if project_nav_tab? :environments = nav_link(controller: :environments, action: [:metrics, :metrics_redirect]) do - = link_to metrics_project_environments_path(@project), title: 'Metrics', class: 'shortcuts-metrics' do + = link_to metrics_project_environments_path(@project), title: _('Metrics'), class: 'shortcuts-metrics' do %span = _('Metrics') = nav_link(controller: :environments, action: [:index, :folder, :show, :new, :edit, :create, :update, :stop, :terminal]) do - = link_to project_environments_path(@project), title: 'Environments', class: 'shortcuts-environments' do + = link_to project_environments_path(@project), title: _('Environments'), class: 'shortcuts-environments' do %span = _('Environments') diff --git a/app/views/projects/environments/empty.html.haml b/app/views/projects/environments/empty.html.haml index b8ed6accecb..1413930ebdb 100644 --- a/app/views/projects/environments/empty.html.haml +++ b/app/views/projects/environments/empty.html.haml @@ -1,4 +1,4 @@ -- page_title "Metrics" +- page_title _("Metrics") .row .col-sm-12 @@ -11,4 +11,4 @@ .state-description = s_('Metrics|Check out the CI/CD documentation on deploying to an environment') .prepend-top-10 - = link_to "Learn about environments", help_page_path('ci/environments'), class: 'btn btn-success' + = link_to s_("Metrics|Learn about environments"), help_page_path('ci/environments'), class: 'btn btn-success' -- cgit v1.2.1