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
Léo-Paul Géneau
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
Show 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 @@
...
@@ -3,8 +3,8 @@
-
@no_breadcrumb_container
=
true
-
@no_breadcrumb_container
=
true
-
@no_container
=
true
-
@no_container
=
true
-
@content_class
=
"issue-boards-content"
-
@content_class
=
"issue-boards-content"
-
breadcrumb_title
"Issue Board"
-
breadcrumb_title
_
(
"Issue Board"
)
-
page_title
"Boards"
-
page_title
_
(
"Boards"
)
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
...
...
app/views/shared/boards/components/_board.html.haml
View file @
5a836446
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
%board-delete
{
"inline-template"
=>
true
,
%board-delete
{
"inline-template"
=>
true
,
":list"
=>
"list"
,
":list"
=>
"list"
,
"v-if"
=>
"!list.preset && list.id"
}
"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"
)
=
icon
(
"trash"
)
.issue-count-badge.clearfix
{
"v-if"
=>
'list.type !== "blank"'
}
.issue-count-badge.clearfix
{
"v-if"
=>
'list.type !== "blank"'
}
%span
.issue-count-badge-count.float-left
{
":class"
=>
'
{
"has-btn"
:
list
.
type
!==
"closed"
&&
!
disabled
}
'
}
%span
.issue-count-badge-count.float-left
{
":class"
=>
'
{
"has-btn"
:
list
.
type
!==
"closed"
&&
!
disabled
}
'
}
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
%button
.issue-count-badge-add-button.btn.btn-sm.btn-default.has-tooltip.js-no-trigger-collapse
{
type:
"button"
,
%button
.issue-count-badge-add-button.btn.btn-sm.btn-default.has-tooltip.js-no-trigger-collapse
{
type:
"button"
,
"@click"
=>
"showNewIssueForm"
,
"@click"
=>
"showNewIssueForm"
,
"v-if"
=>
'list.type !== "closed"'
,
"v-if"
=>
'list.type !== "closed"'
,
"aria-label"
=>
"New issue"
,
"aria-label"
=>
_
(
"New issue"
)
,
"title"
=>
"New issue"
,
"title"
=>
_
(
"New issue"
)
,
data:
{
placement:
"top"
,
container:
"body"
}
}
data:
{
placement:
"top"
,
container:
"body"
}
}
=
icon
(
"plus"
,
class:
"js-no-trigger-collapse"
)
=
icon
(
"plus"
,
class:
"js-no-trigger-collapse"
)
...
...
app/views/shared/boards/components/sidebar/_due_date.html.haml
View file @
5a836446
.block.due_date
.block.due_date
.title
.title
Due date
=
_
(
"Due date"
)
-
if
can_admin_issue?
-
if
can_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
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
.value-content
.value-content
%span
.no-value
{
"v-if"
=>
"!issue.dueDate"
}
%span
.no-value
{
"v-if"
=>
"!issue.dueDate"
}
No due date
=
_
(
"No due date"
)
%span
.bold
{
"v-if"
=>
"issue.dueDate"
}
%span
.bold
{
"v-if"
=>
"issue.dueDate"
}
{{ issue.dueDate | due-date }}
{{ issue.dueDate | due-date }}
-
if
can_admin_issue?
-
if
can_admin_issue?
%span
.no-value.js-remove-due-date-holder
{
"v-if"
=>
"issue.dueDate"
}
%span
.no-value.js-remove-due-date-holder
{
"v-if"
=>
"issue.dueDate"
}
\-
\-
%a
.js-remove-due-date
{
href:
"#"
,
role:
"button"
}
%a
.js-remove-due-date
{
href:
"#"
,
role:
"button"
}
remove due date
=
_
(
'remove due date'
)
-
if
can_admin_issue?
-
if
can_admin_issue?
.selectbox
.selectbox
%input
{
type:
"hidden"
,
%input
{
type:
"hidden"
,
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
.dropdown
.dropdown
%button
.dropdown-menu-toggle.js-due-date-select.js-issue-boards-due-date
{
type:
'button'
,
%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"
}
}
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'
)
=
icon
(
'chevron-down'
)
.dropdown-menu.dropdown-menu-due-date
.dropdown-menu.dropdown-menu-due-date
=
dropdown_title
(
'Due date'
)
=
dropdown_title
(
_
(
'Due date'
)
)
=
dropdown_content
do
=
dropdown_content
do
.js-due-date-calendar
.js-due-date-calendar
app/views/shared/boards/components/sidebar/_labels.html.haml
View file @
5a836446
.block.labels
.block.labels
.title
.title
Labels
=
_
(
"Labels"
)
-
if
can_admin_issue?
-
if
can_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
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
.value.issuable-show-labels.dont-hide
%span
.no-value
{
"v-if"
=>
"issue.labels && issue.labels.length === 0"
}
%span
.no-value
{
"v-if"
=>
"issue.labels && issue.labels.length === 0"
}
None
=
_
(
"None"
)
%a
{
href:
"#"
,
%a
{
href:
"#"
,
"v-for"
=>
"label in issue.labels"
}
"v-for"
=>
"label in issue.labels"
}
.badge.color-label.has-tooltip
{
":style"
=>
"{ backgroundColor: label.color, color: label.textColor }"
}
.badge.color-label.has-tooltip
{
":style"
=>
"{ backgroundColor: label.color, color: label.textColor }"
}
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
namespace_path:
@namespace_path
,
namespace_path:
@namespace_path
,
project_path:
@project
.
try
(
:path
)
}
}
project_path:
@project
.
try
(
:path
)
}
}
%span
.dropdown-toggle-text
%span
.dropdown-toggle-text
Label
=
_
(
"Label"
)
=
icon
(
'chevron-down'
)
=
icon
(
'chevron-down'
)
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
=
render
partial:
"shared/issuable/label_page_default"
=
render
partial:
"shared/issuable/label_page_default"
...
...
app/views/shared/boards/components/sidebar/_milestone.html.haml
View file @
5a836446
.block.milestone
.block.milestone
.title
.title
Milestone
=
_
(
"Milestone"
)
-
if
can_admin_issue?
-
if
can_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
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
%span
.no-value
{
"v-if"
=>
"!issue.milestone"
}
%span
.no-value
{
"v-if"
=>
"!issue.milestone"
}
None
=
_
(
"None"
)
%span
.bold.has-tooltip
{
"v-if"
=>
"issue.milestone"
}
%span
.bold.has-tooltip
{
"v-if"
=>
"issue.milestone"
}
{{ issue.milestone.title }}
{{ issue.milestone.title }}
-
if
can_admin_issue?
-
if
can_admin_issue?
...
@@ -19,10 +19,10 @@
...
@@ -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"
},
%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-selected"
=>
"milestoneTitle"
,
":data-issuable-id"
=>
"issue.iid"
}
":data-issuable-id"
=>
"issue.iid"
}
Milestone
=
_
(
"Milestone"
)
=
icon
(
"chevron-down"
)
=
icon
(
"chevron-down"
)
.dropdown-menu.dropdown-select.dropdown-menu-selectable
.dropdown-menu.dropdown-select.dropdown-menu-selectable
=
dropdown_title
(
"Assign milestone"
)
=
dropdown_title
(
_
(
"Assign milestone"
)
)
=
dropdown_filter
(
"Search milestones"
)
=
dropdown_filter
(
_
(
"Search milestones"
)
)
=
dropdown_content
=
dropdown_content
=
dropdown_loading
=
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