Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6304ab5f
Commit
6304ab5f
authored
Jan 29, 2019
by
George Tsiolis
Committed by
Kushal Pandya
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Externalize strings from `/app/views/projects/milestones`
parent
758f2941
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
75 additions
and
37 deletions
+75
-37
app/views/projects/milestones/_form.html.haml
app/views/projects/milestones/_form.html.haml
+9
-9
app/views/projects/milestones/edit.html.haml
app/views/projects/milestones/edit.html.haml
+5
-5
app/views/projects/milestones/index.html.haml
app/views/projects/milestones/index.html.haml
+4
-4
app/views/projects/milestones/new.html.haml
app/views/projects/milestones/new.html.haml
+5
-5
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+14
-14
changelogs/unreleased/gt-externalize-app-views-projects-milestones.yml
...released/gt-externalize-app-views-projects-milestones.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+33
-0
No files found.
app/views/projects/milestones/_form.html.haml
View file @
6304ab5f
...
...
@@ -5,23 +5,23 @@
.row
.col-md-6
.form-group.row
=
f
.
label
:title
,
"Title"
,
class:
"col-form-label col-sm-2"
=
f
.
label
:title
,
_
(
'Title'
),
class:
'col-form-label col-sm-2'
.col-sm-10
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"qa-milestone-title form-control"
,
required:
true
,
autofocus:
true
=
f
.
text_field
:title
,
maxlength:
255
,
class:
'qa-milestone-title form-control'
,
required:
true
,
autofocus:
true
.form-group.row.milestone-description
=
f
.
label
:description
,
"Description"
,
class:
"col-form-label col-sm-2"
=
f
.
label
:description
,
_
(
'Description'
),
class:
'col-form-label col-sm-2'
.col-sm-10
=
render
layout:
'projects/md_preview'
,
locals:
{
url:
preview_markdown_path
(
@project
)
}
do
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'qa-milestone-description note-textarea'
,
placeholder:
'Write milestone description...'
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'qa-milestone-description note-textarea'
,
placeholder:
_
(
'Write milestone description...'
)
=
render
'shared/notes/hints'
.clearfix
.error-alert
=
render
"shared/milestones/form_dates"
,
f:
f
=
render
'shared/milestones/form_dates'
,
f:
f
.form-actions
-
if
@milestone
.
new_record?
=
f
.
submit
'Create milestone'
,
class:
"btn-success btn qa-milestone-create-button"
=
link_to
"Cancel"
,
project_milestones_path
(
@project
),
class:
"btn btn-cancel"
=
f
.
submit
_
(
'Create milestone'
),
class:
'btn-create btn qa-milestone-create-button'
=
link_to
_
(
'Cancel'
),
project_milestones_path
(
@project
),
class:
'btn btn-cancel'
-
else
=
f
.
submit
'Save changes'
,
class:
"btn-success btn"
=
link_to
"Cancel"
,
project_milestone_path
(
@project
,
@milestone
),
class:
"btn btn-cancel"
=
f
.
submit
_
(
'Save changes'
),
class:
'btn-success btn'
=
link_to
_
(
'Cancel'
),
project_milestone_path
(
@project
,
@milestone
),
class:
'btn btn-cancel'
app/views/projects/milestones/edit.html.haml
View file @
6304ab5f
-
@no_container
=
true
-
breadcrumb_title
"Edit"
-
add_to_breadcrumbs
"Milestones"
,
project_milestones_path
(
@project
)
-
page_title
"Edit"
,
@milestone
.
title
,
"Milestones"
-
breadcrumb_title
_
(
'Edit'
)
-
add_to_breadcrumbs
_
(
'Milestones'
)
,
project_milestones_path
(
@project
)
-
page_title
_
(
'Edit'
),
@milestone
.
title
,
_
(
'Milestones'
)
%div
{
class:
container_class
}
%h3
.page-title
Edit Milestone
=
_
(
'Edit Milestone'
)
%hr
=
render
"form"
=
render
'form'
app/views/projects/milestones/index.html.haml
View file @
6304ab5f
-
@no_container
=
true
-
page_title
'Milestones'
-
page_title
_
(
'Milestones'
)
%div
{
class:
container_class
}
.top-area
...
...
@@ -9,8 +9,8 @@
=
render
'shared/milestones/search_form'
=
render
'shared/milestones_sort_dropdown'
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
=
link_to
new_project_milestone_path
(
@project
),
class:
"btn btn-success qa-new-project-milestone"
,
title:
'New milestone'
do
New milestone
=
link_to
new_project_milestone_path
(
@project
),
class:
'btn btn-success qa-new-project-milestone'
,
title:
_
(
'New milestone'
)
do
=
_
(
'New milestone'
)
.milestones
#delete-milestone-modal
...
...
@@ -21,6 +21,6 @@
-
if
@milestones
.
blank?
%li
.nothing-here-block
No milestones to show
.nothing-here-block
=
_
(
'No milestones to show'
)
=
paginate
@milestones
,
theme:
'gitlab'
app/views/projects/milestones/new.html.haml
View file @
6304ab5f
-
@no_container
=
true
-
add_to_breadcrumbs
"Milestones"
,
project_milestones_path
(
@project
)
-
breadcrumb_title
"New"
-
page_title
"New Milestone"
-
add_to_breadcrumbs
_
(
'Milestones'
)
,
project_milestones_path
(
@project
)
-
breadcrumb_title
_
(
'New'
)
-
page_title
_
(
'New Milestone'
)
%div
{
class:
container_class
}
%h3
.page-title
New Milestone
=
_
(
'New Milestone'
)
%hr
=
render
"form"
=
render
'form'
app/views/projects/milestones/show.html.haml
View file @
6304ab5f
-
@no_container
=
true
-
add_to_breadcrumbs
"Milestones"
,
project_milestones_path
(
@project
)
-
add_to_breadcrumbs
_
(
'Milestones'
)
,
project_milestones_path
(
@project
)
-
breadcrumb_title
@milestone
.
title
-
page_title
@milestone
.
title
,
"Milestones"
-
page_title
@milestone
.
title
,
_
(
'Milestones'
)
-
page_description
@milestone
.
description
%div
{
class:
container_class
}
.detail-page-header.milestone-page-header
.status-box
{
class:
status_box_class
(
@milestone
)
}
-
if
@milestone
.
closed?
Closed
=
_
(
'Closed'
)
-
elsif
@milestone
.
expired?
Past due
=
_
(
'Past due'
)
-
elsif
@milestone
.
upcoming?
Upcoming
=
_
(
'Upcoming'
)
-
else
Open
=
_
(
'Open'
)
.header-text-content
%span
.identifier
%strong
Milestone
=
_
(
'Milestone'
)
-
if
@milestone
.
due_date
||
@milestone
.
start_date
=
milestone_date_range
(
@milestone
)
.milestone-buttons
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
=
link_to
edit_project_milestone_path
(
@project
,
@milestone
),
class:
"btn btn-grouped btn-nr"
do
Edit
=
link_to
edit_project_milestone_path
(
@project
,
@milestone
),
class:
'btn btn-grouped btn-nr'
do
=
_
(
'Edit'
)
-
if
@project
.
group
%button
.js-promote-project-milestone-button.btn.btn-grouped
{
data:
{
toggle:
'modal'
,
...
...
@@ -39,13 +39,13 @@
#promote-milestone-modal
-
if
@milestone
.
active?
=
link_to
'Close milestone'
,
project_milestone_path
(
@project
,
@milestone
,
milestone:
{
state_event: :close
}),
method: :put
,
class:
"btn btn-close btn-nr btn-grouped"
=
link_to
_
(
'Close milestone'
),
project_milestone_path
(
@project
,
@milestone
,
milestone:
{
state_event: :close
}),
method: :put
,
class:
'btn btn-close btn-nr btn-grouped'
-
else
=
link_to
'Reopen milestone'
,
project_milestone_path
(
@project
,
@milestone
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-reopen btn-nr btn-grouped"
=
link_to
_
(
'Reopen milestone'
),
project_milestone_path
(
@project
,
@milestone
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
'btn btn-reopen btn-nr btn-grouped'
=
render
'shared/milestones/delete_button'
%a
.btn.btn-default.btn-grouped.float-right.d-block.d-sm-none.js-sidebar-toggle
{
href:
"#"
}
%a
.btn.btn-default.btn-grouped.float-right.d-block.d-sm-none.js-sidebar-toggle
{
href:
'#'
}
=
icon
(
'angle-double-left'
)
.detail-page-description.milestone-detail
...
...
@@ -62,10 +62,10 @@
-
if
can?
(
current_user
,
:read_issue
,
@project
)
&&
@milestone
.
total_items_count
(
current_user
).
zero?
.alert.alert-success.prepend-top-default
%span
Assign some issues to this milestone.
%span
=
_
(
'Assign some issues to this milestone.'
)
-
elsif
@milestone
.
complete?
(
current_user
)
&&
@milestone
.
active?
.alert.alert-success.prepend-top-default
%span
All issues for this milestone are closed. You may close this milestone now.
%span
=
_
(
'All issues for this milestone are closed. You may close this milestone now.'
)
=
render
'deprecation_message'
=
render
'shared/milestones/tabs'
,
milestone:
@milestone
...
...
changelogs/unreleased/gt-externalize-app-views-projects-milestones.yml
0 → 100644
View file @
6304ab5f
---
title
:
Externalize strings from `/app/views/projects/milestones`
merge_request
:
24726
author
:
George Tsiolis
type
:
other
locale/gitlab.pot
View file @
6304ab5f
...
...
@@ -616,6 +616,9 @@ msgstr ""
msgid "All features are enabled for blank projects, from templates, or when importing, but you can disable them afterward in the project settings."
msgstr ""
msgid "All issues for this milestone are closed. You may close this milestone now."
msgstr ""
msgid "All users"
msgstr ""
...
...
@@ -991,6 +994,9 @@ msgstr ""
msgid "Assign milestone"
msgstr ""
msgid "Assign some issues to this milestone."
msgstr ""
msgid "Assign to"
msgstr ""
...
...
@@ -1876,6 +1882,9 @@ msgstr ""
msgid "Close epic"
msgstr ""
msgid "Close milestone"
msgstr ""
msgid "Closed"
msgstr ""
...
...
@@ -2745,6 +2754,9 @@ msgstr ""
msgid "Create merge request and branch"
msgstr ""
msgid "Create milestone"
msgstr ""
msgid "Create new branch"
msgstr ""
...
...
@@ -3263,6 +3275,9 @@ msgstr ""
msgid "Edit Label"
msgstr ""
msgid "Edit Milestone"
msgstr ""
msgid "Edit Pipeline Schedule %{id}"
msgstr ""
...
...
@@ -6048,6 +6063,9 @@ msgstr[1] ""
msgid "New Label"
msgstr ""
msgid "New Milestone"
msgstr ""
msgid "New Pages Domain"
msgstr ""
...
...
@@ -6093,6 +6111,9 @@ msgstr ""
msgid "New merge request"
msgstr ""
msgid "New milestone"
msgstr ""
msgid "New pipelines will cancel older, pending pipelines on the same branch"
msgstr ""
...
...
@@ -6186,6 +6207,9 @@ msgstr ""
msgid "No messages were logged"
msgstr ""
msgid "No milestones to show"
msgstr ""
msgid "No other labels with such name or description"
msgstr ""
...
...
@@ -6533,6 +6557,9 @@ msgstr ""
msgid "Password"
msgstr ""
msgid "Past due"
msgstr ""
msgid "Paste epic link"
msgstr ""
...
...
@@ -7645,6 +7672,9 @@ msgstr ""
msgid "Reopen epic"
msgstr ""
msgid "Reopen milestone"
msgstr ""
msgid "Repair authentication"
msgstr ""
...
...
@@ -10428,6 +10458,9 @@ msgstr ""
msgid "Write a comment or drag your files here…"
msgstr ""
msgid "Write milestone description..."
msgstr ""
msgid "Yes"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment