Commit 627236c9 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'i18n-extract-app/views/admin-labels' into 'master'

i18n: externalize strings from 'app/views/admin/labels'

See merge request gitlab-org/gitlab-ce!19926
parents ce69663b 82d35dc5
......@@ -10,16 +10,16 @@
.col-sm-10
= f.text_field :description, class: "form-control js-quick-submit"
.form-group.row
= f.label :color, "Background color", class: 'col-form-label col-sm-2'
= f.label :color, _("Background color"), class: 'col-form-label col-sm-2'
.col-sm-10
.input-group
.input-group-prepend
.input-group-text.label-color-preview  
= f.text_field :color, class: "form-control"
.form-text.text-muted
Choose any color.
= _('Choose any color.')
%br
Or you can choose one of the suggested colors below
= _("Or you can choose one of the suggested colors below")
.suggest-colors
- suggested_colors.each do |color|
......@@ -27,5 +27,5 @@
 
.form-actions
= f.submit 'Save', class: 'btn btn-save js-save-button'
= link_to "Cancel", admin_labels_path, class: 'btn btn-cancel'
= f.submit _('Save'), class: 'btn btn-save js-save-button'
= link_to _("Cancel"), admin_labels_path, class: 'btn btn-cancel'
......@@ -3,5 +3,5 @@
= render_colored_label(label, tooltip: false)
= markdown_field(label, :description)
.float-right
= link_to 'Edit', edit_admin_label_path(label), class: 'btn btn-sm'
= link_to 'Delete', admin_label_path(label), class: 'btn btn-sm btn-remove remove-row', method: :delete, remote: true, data: {confirm: "Delete this label? Are you sure?"}
= link_to _('Edit'), edit_admin_label_path(label), class: 'btn btn-sm'
= link_to _('Delete'), admin_label_path(label), class: 'btn btn-sm btn-remove remove-row', method: :delete, remote: true, data: {confirm: "Delete this label? Are you sure?"}
- add_to_breadcrumbs "Labels", admin_labels_path
- breadcrumb_title "Edit Label"
- page_title "Edit", @label.name, "Labels"
- add_to_breadcrumbs _("Labels"), admin_labels_path
- breadcrumb_title _("Edit Label")
- page_title _("Edit"), @label.name, _("Labels")
%h3.page-title
Edit Label
= _('Edit Label')
%hr
= render 'form'
- page_title "Labels"
- page_title _("Labels")
%div
= link_to new_admin_label_path, class: "float-right btn btn-nr btn-new" do
New label
= _('New label')
%h3.page-title
Labels
= _('Labels')
%hr
.labels
......@@ -14,5 +14,5 @@
= paginate @labels, theme: 'gitlab'
- else
.card.bg-light
.nothing-here-block There are no labels yet
.nothing-here-block= _('There are no labels yet')
- page_title "New Label"
- page_title _("New Label")
%h3.page-title
New Label
= _('New Label')
%hr
= render 'form'
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