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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
5a836446
Commit
5a836446
authored
Jun 16, 2018
by
Tao Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n: externalize strings from 'app/views/shared/boards'
Signed-off-by:
Tao Wang
<
twang2218@gmail.com
>
parent
f733d4f8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
app/views/shared/boards/_show.html.haml
app/views/shared/boards/_show.html.haml
+2
-2
app/views/shared/boards/components/_board.html.haml
app/views/shared/boards/components/_board.html.haml
+3
-3
app/views/shared/boards/components/sidebar/_due_date.html.haml
...iews/shared/boards/components/sidebar/_due_date.html.haml
+6
-6
app/views/shared/boards/components/sidebar/_labels.html.haml
app/views/shared/boards/components/sidebar/_labels.html.haml
+4
-4
app/views/shared/boards/components/sidebar/_milestone.html.haml
...ews/shared/boards/components/sidebar/_milestone.html.haml
+6
-6
No files found.
app/views/shared/boards/_show.html.haml
View file @
5a836446
...
...
@@ -3,8 +3,8 @@
-
@no_breadcrumb_container
=
true
-
@no_container
=
true
-
@content_class
=
"issue-boards-content"
-
breadcrumb_title
"Issue Board"
-
page_title
"Boards"
-
breadcrumb_title
_
(
"Issue Board"
)
-
page_title
_
(
"Boards"
)
-
content_for
:page_specific_javascripts
do
...
...
app/views/shared/boards/components/_board.html.haml
View file @
5a836446
...
...
@@ -30,7 +30,7 @@
%board-delete
{
"inline-template"
=>
true
,
":list"
=>
"list"
,
"v-if"
=>
"!list.preset && list.id"
}
%button
.board-delete.has-tooltip.float-right
{
type:
"button"
,
title:
"Delete list"
,
"aria-label"
=>
"Delete list"
,
data:
{
placement:
"bottom"
},
"@click.stop"
=>
"deleteBoard"
}
%button
.board-delete.has-tooltip.float-right
{
type:
"button"
,
title:
_
(
"Delete list"
),
"aria-label"
=>
_
(
"Delete list"
)
,
data:
{
placement:
"bottom"
},
"@click.stop"
=>
"deleteBoard"
}
=
icon
(
"trash"
)
.issue-count-badge.clearfix
{
"v-if"
=>
'list.type !== "blank"'
}
%span
.issue-count-badge-count.float-left
{
":class"
=>
'
{
"has-btn"
:
list
.
type
!==
"closed"
&&
!
disabled
}
'
}
...
...
@@ -39,8 +39,8 @@
%button
.issue-count-badge-add-button.btn.btn-sm.btn-default.has-tooltip.js-no-trigger-collapse
{
type:
"button"
,
"@click"
=>
"showNewIssueForm"
,
"v-if"
=>
'list.type !== "closed"'
,
"aria-label"
=>
"New issue"
,
"title"
=>
"New issue"
,
"aria-label"
=>
_
(
"New issue"
)
,
"title"
=>
_
(
"New issue"
)
,
data:
{
placement:
"top"
,
container:
"body"
}
}
=
icon
(
"plus"
,
class:
"js-no-trigger-collapse"
)
...
...
app/views/shared/boards/components/sidebar/_due_date.html.haml
View file @
5a836446
.block.due_date
.title
Due date
=
_
(
"Due date"
)
-
if
can_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link float-right"
=
link_to
_
(
"Edit"
)
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link float-right"
.value
.value-content
%span
.no-value
{
"v-if"
=>
"!issue.dueDate"
}
No due date
=
_
(
"No due date"
)
%span
.bold
{
"v-if"
=>
"issue.dueDate"
}
{{ issue.dueDate | due-date }}
-
if
can_admin_issue?
%span
.no-value.js-remove-due-date-holder
{
"v-if"
=>
"issue.dueDate"
}
\-
%a
.js-remove-due-date
{
href:
"#"
,
role:
"button"
}
remove due date
=
_
(
'remove due date'
)
-
if
can_admin_issue?
.selectbox
%input
{
type:
"hidden"
,
...
...
@@ -23,9 +23,9 @@
.dropdown
%button
.dropdown-menu-toggle.js-due-date-select.js-issue-boards-due-date
{
type:
'button'
,
data:
{
toggle:
'dropdown'
,
field_name:
"issue[due_date]"
,
ability_name:
"issue"
}
}
%span
.dropdown-toggle-text
Due date
%span
.dropdown-toggle-text
=
_
(
"Due date"
)
=
icon
(
'chevron-down'
)
.dropdown-menu.dropdown-menu-due-date
=
dropdown_title
(
'Due date'
)
=
dropdown_title
(
_
(
'Due date'
)
)
=
dropdown_content
do
.js-due-date-calendar
app/views/shared/boards/components/sidebar/_labels.html.haml
View file @
5a836446
.block.labels
.title
Labels
=
_
(
"Labels"
)
-
if
can_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link float-right"
=
link_to
_
(
"Edit"
)
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link float-right"
.value.issuable-show-labels.dont-hide
%span
.no-value
{
"v-if"
=>
"issue.labels && issue.labels.length === 0"
}
None
=
_
(
"None"
)
%a
{
href:
"#"
,
"v-for"
=>
"label in issue.labels"
}
.badge.color-label.has-tooltip
{
":style"
=>
"{ backgroundColor: label.color, color: label.textColor }"
}
...
...
@@ -28,7 +28,7 @@
namespace_path:
@namespace_path
,
project_path:
@project
.
try
(
:path
)
}
}
%span
.dropdown-toggle-text
Label
=
_
(
"Label"
)
=
icon
(
'chevron-down'
)
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
=
render
partial:
"shared/issuable/label_page_default"
...
...
app/views/shared/boards/components/sidebar/_milestone.html.haml
View file @
5a836446
.block.milestone
.title
Milestone
=
_
(
"Milestone"
)
-
if
can_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link float-right"
=
link_to
_
(
"Edit"
)
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link float-right"
.value
%span
.no-value
{
"v-if"
=>
"!issue.milestone"
}
None
=
_
(
"None"
)
%span
.bold.has-tooltip
{
"v-if"
=>
"issue.milestone"
}
{{ issue.milestone.title }}
-
if
can_admin_issue?
...
...
@@ -19,10 +19,10 @@
%button
.dropdown-menu-toggle.js-milestone-select.js-issue-board-sidebar
{
type:
"button"
,
data:
{
toggle:
"dropdown"
,
show_no:
"true"
,
field_name:
"issue[milestone_id]"
,
milestones:
milestones_filter_path
(
format: :json
),
ability_name:
"issue"
,
use_id:
"true"
,
default_no:
"true"
},
":data-selected"
=>
"milestoneTitle"
,
":data-issuable-id"
=>
"issue.iid"
}
Milestone
=
_
(
"Milestone"
)
=
icon
(
"chevron-down"
)
.dropdown-menu.dropdown-select.dropdown-menu-selectable
=
dropdown_title
(
"Assign milestone"
)
=
dropdown_filter
(
"Search milestones"
)
=
dropdown_title
(
_
(
"Assign milestone"
)
)
=
dropdown_filter
(
_
(
"Search milestones"
)
)
=
dropdown_content
=
dropdown_loading
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