Commit 01248876 authored by Jose's avatar Jose

Added shortcuts help, i18n

parent 99dea5fa
...@@ -179,6 +179,12 @@ ...@@ -179,6 +179,12 @@
%kbd e %kbd e
%td %td
Go to environments Go to environments
%tr
%td.shortcut
%kbd g
%kbd l
%td
Go to metrics
%tr %tr
%td.shortcut %td.shortcut
%kbd g %kbd g
......
...@@ -211,12 +211,12 @@ ...@@ -211,12 +211,12 @@
- if project_nav_tab? :environments - if project_nav_tab? :environments
= nav_link(controller: :environments, action: [:metrics, :metrics_redirect]) do = 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 %span
= _('Metrics') = _('Metrics')
= nav_link(controller: :environments, action: [:index, :folder, :show, :new, :edit, :create, :update, :stop, :terminal]) do = 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 %span
= _('Environments') = _('Environments')
......
- page_title "Metrics" - page_title _("Metrics")
.row .row
.col-sm-12 .col-sm-12
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
.state-description .state-description
= s_('Metrics|Check out the CI/CD documentation on deploying to an environment') = s_('Metrics|Check out the CI/CD documentation on deploying to an environment')
.prepend-top-10 .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'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment