Commit 6df7c2bf authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'JonstonChan-externalize-page-title-messages' into 'master'

Externalize page-title messages

See merge request gitlab-org/gitlab!69124
parents a62da73a 81870261
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- breadcrumb_title @application.name - breadcrumb_title @application.name
- page_title _("Edit"), @application.name, _("Applications") - page_title _("Edit"), @application.name, _("Applications")
%h3.page-title Edit application %h3.page-title
= _('Edit application')
- @url = admin_application_path(@application) - @url = admin_application_path(@application)
= render 'form', application: @application = render 'form', application: @application
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
.gl-alert-body .gl-alert-body
= @error = @error
%h3.page-title %h3.page-title
New Branch = _('New Branch')
%hr %hr
= form_tag namespace_project_branches_path, method: :post, id: "new-branch-form", class: "js-create-branch-form js-requires-input" do = form_tag namespace_project_branches_path, method: :post, id: "new-branch-form", class: "js-create-branch-form js-requires-input" do
......
- page_title _("Import repository") - page_title _("Import repository")
%h3.page-title %h3.page-title
Import repository = _('Import repository')
%hr %hr
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
- page_title _("Edit"), @label.name, _("Labels") - page_title _("Edit"), @label.name, _("Labels")
%h3.page-title %h3.page-title
Edit Label = _('Edit Label')
%hr %hr
= render 'shared/labels/form', url: project_label_path(@project, @label), back_path: project_labels_path(@project) = render 'shared/labels/form', url: project_label_path(@project, @label), back_path: project_labels_path(@project)
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
- page_title _("New Label") - page_title _("New Label")
%h3.page-title %h3.page-title
New Label = _('New Label')
%hr %hr
= render 'shared/labels/form', url: project_labels_path(@project), back_path: project_labels_path(@project) = render 'shared/labels/form', url: project_labels_path(@project), back_path: project_labels_path(@project)
%h3.page-title %h3.page-title
New merge request = _('New merge request')
= form_for [@project, @merge_request], url: project_new_merge_request_path(@project), method: :get, html: { class: "merge-request-form js-requires-input" } do |f| = form_for [@project, @merge_request], url: project_new_merge_request_path(@project), method: :get, html: { class: "merge-request-form js-requires-input" } do |f|
- if params[:nav_source].present? - if params[:nav_source].present?
......
%h3.page-title %h3.page-title
New merge request = _('New merge request')
= form_for [@project, @merge_request], html: { class: 'merge-request-form common-note-form js-requires-input js-quick-submit' } do |f| = form_for [@project, @merge_request], html: { class: 'merge-request-form common-note-form js-requires-input js-quick-submit' } do |f|
= render 'shared/issuable/form', f: f, issuable: @merge_request, commits: @commits, presenter: @mr_presenter = render 'shared/issuable/form', f: f, issuable: @merge_request, commits: @commits, presenter: @mr_presenter
= f.hidden_field :source_project_id = f.hidden_field :source_project_id
......
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