BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
59610c42
Commit
59610c42
authored
Jun 12, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translate commit dialogs
parent
babe3342
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
18 deletions
+67
-18
_change.html.haml
app/views/projects/commit/_change.html.haml
+5
-2
_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+14
-14
gitlab.pot
locale/gitlab.pot
+48
-2
No files found.
app/views/projects/commit/_change.html.haml
View file @
59610c42
...
@@ -2,17 +2,20 @@
...
@@ -2,17 +2,20 @@
-
when
'revert'
-
when
'revert'
-
label
=
n_
(
'ChangeTypeAction|Revert'
)
-
label
=
n_
(
'ChangeTypeAction|Revert'
)
-
branch_label
=
s_
(
'ChangeTypeActionLabel|Revert in branch'
)
-
branch_label
=
s_
(
'ChangeTypeActionLabel|Revert in branch'
)
-
revert_merge_request
=
_
(
'Revert this merge-request'
)
-
revert_commit
=
_
(
'Revert this commit'
)
-
title
=
commit
.
merged_merge_request
(
current_user
)
?
revert_merge_request
:
revert_commit
-
when
'cherry-pick'
-
when
'cherry-pick'
-
label
=
s_
(
'ChangeTypeAction|Cherry-pick'
)
-
label
=
s_
(
'ChangeTypeAction|Cherry-pick'
)
-
branch_label
=
s_
(
'ChangeTypeActionLabel|Pick into branch'
)
-
branch_label
=
s_
(
'ChangeTypeActionLabel|Pick into branch'
)
-
change_type
=
commit
.
change_type_title
(
current_user
)
-
title
=
commit
.
merged_merge_request
(
current_user
)
?
_
(
'Cherry-pick this merge-request'
)
:
_
(
'Cherry-pick this commit'
)
.modal
{
id:
"modal-#{type}-commit"
}
.modal
{
id:
"modal-#{type}-commit"
}
.modal-dialog
.modal-dialog
.modal-content
.modal-content
.modal-header
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
.page-title
=
=
_("%{action} this %{change_type}")
%h3
.page-title
=
title
.modal-body
.modal-body
=
form_tag
[
type
.
underscore
,
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
commit
],
method: :post
,
remote:
false
,
class:
"form-horizontal js-
#{
type
}
-form js-requires-input"
do
=
form_tag
[
type
.
underscore
,
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
commit
],
method: :post
,
remote:
false
,
class:
"form-horizontal js-
#{
type
}
-form js-requires-input"
do
.form-group.branch
.form-group.branch
...
...
app/views/projects/commit/_commit_box.html.haml
View file @
59610c42
.page-content-header
.page-content-header
.header-main-content
.header-main-content
%strong
%strong
Commit
#{
_
(
'Commit'
)
}
%span
.commit-sha
=
@commit
.
short_id
%span
.commit-sha
=
@commit
.
short_id
=
clipboard_button
(
text:
@commit
.
id
,
title:
"Copy commit SHA to clipboard"
)
=
clipboard_button
(
text:
@commit
.
id
,
title:
_
(
"Copy commit SHA to clipboard"
)
)
%span
.hidden-xs
authored
%span
.hidden-xs
authored
#{
time_ago_with_tooltip
(
@commit
.
authored_date
)
}
#{
time_ago_with_tooltip
(
@commit
.
authored_date
)
}
%span
by
%span
=
_
(
'ByAuthor|by'
)
=
author_avatar
(
@commit
,
size:
24
)
=
author_avatar
(
@commit
,
size:
24
)
%strong
%strong
=
commit_author_link
(
@commit
,
avatar:
true
,
size:
24
)
=
commit_author_link
(
@commit
,
avatar:
true
,
size:
24
)
-
if
@commit
.
different_committer?
-
if
@commit
.
different_committer?
%span
.light
Committed by
%span
.light
=
_
(
'Committed by'
)
%strong
%strong
=
commit_committer_link
(
@commit
,
avatar:
true
,
size:
24
)
=
commit_committer_link
(
@commit
,
avatar:
true
,
size:
24
)
#{
time_ago_with_tooltip
(
@commit
.
committed_date
)
}
#{
time_ago_with_tooltip
(
@commit
.
committed_date
)
}
...
@@ -22,15 +22,15 @@
...
@@ -22,15 +22,15 @@
=
icon
(
'comment'
)
=
icon
(
'comment'
)
=
@notes_count
=
@notes_count
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"btn btn-default append-right-10 hidden-xs hidden-sm"
do
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"btn btn-default append-right-10 hidden-xs hidden-sm"
do
Browse files
#{
_
(
'Browse files'
)
}
.dropdown.inline
.dropdown.inline
%a
.btn.btn-default.dropdown-toggle
{
data:
{
toggle:
"dropdown"
}
}
%a
.btn.btn-default.dropdown-toggle
{
data:
{
toggle:
"dropdown"
}
}
%span
Options
%span
=
_
(
'Options'
)
=
icon
(
'caret-down'
)
=
icon
(
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-align-right
%ul
.dropdown-menu.dropdown-menu-align-right
%li
.visible-xs-block.visible-sm-block
%li
.visible-xs-block.visible-sm-block
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
)
do
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
)
do
Browse Files
_('Browse Files')
-
unless
@commit
.
has_been_reverted?
(
current_user
)
-
unless
@commit
.
has_been_reverted?
(
current_user
)
%li
.clearfix
%li
.clearfix
=
revert_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
=
revert_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
...
@@ -38,13 +38,13 @@
...
@@ -38,13 +38,13 @@
=
cherry_pick_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
=
cherry_pick_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
-
if
can_collaborate_with_project?
-
if
can_collaborate_with_project?
%li
.clearfix
%li
.clearfix
=
link_to
"Tag"
,
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
,
ref:
@commit
)
=
link_to
s_
(
"CreateTag|Tag"
)
,
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
,
ref:
@commit
)
%li
.divider
%li
.divider
%li
.dropdown-header
%li
.dropdown-header
Download
#{
_
(
'Download'
)
}
-
unless
@commit
.
parents
.
length
>
1
-
unless
@commit
.
parents
.
length
>
1
%li
=
link_to
"Email Patches"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
)
%li
=
link_to
_
(
"Email Patches"
)
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
)
%li
=
link_to
_
(
"Plain Diff"
)
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
)
.commit-box
.commit-box
%h3
.commit-title
%h3
.commit-title
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
.well-segment.branch-info
.well-segment.branch-info
.icon-container.commit-icon
.icon-container.commit-icon
=
custom_icon
(
"icon_commit"
)
=
custom_icon
(
"icon_commit"
)
%span
.cgray
=
pluralize
(
@commit
.
parents
.
count
,
"parent"
)
%span
.cgray
=
n_
(
'parent'
,
'parents'
,
@commit
.
parents
.
count
)
-
@commit
.
parents
.
each
do
|
parent
|
-
@commit
.
parents
.
each
do
|
parent
|
=
link_to
parent
.
short_id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
parent
),
class:
"commit-sha"
=
link_to
parent
.
short_id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
parent
),
class:
"commit-sha"
%span
.commit-info.branches
%span
.commit-info.branches
...
@@ -69,11 +69,11 @@
...
@@ -69,11 +69,11 @@
.status-icon-container
{
class:
"ci-status-icon-#{@commit.status}"
}
.status-icon-container
{
class:
"ci-status-icon-#{@commit.status}"
}
=
link_to
namespace_project_pipeline_path
(
@project
.
namespace
,
@project
,
last_pipeline
.
id
)
do
=
link_to
namespace_project_pipeline_path
(
@project
.
namespace
,
@project
,
last_pipeline
.
id
)
do
=
ci_icon_for_status
(
last_pipeline
.
status
)
=
ci_icon_for_status
(
last_pipeline
.
status
)
Pipeline
#{
_
(
'Pipeline'
)
}
=
link_to
"#
#{
last_pipeline
.
id
}
"
,
namespace_project_pipeline_path
(
@project
.
namespace
,
@project
,
last_pipeline
.
id
)
=
link_to
"#
#{
last_pipeline
.
id
}
"
,
namespace_project_pipeline_path
(
@project
.
namespace
,
@project
,
last_pipeline
.
id
)
=
ci_label_for_status
(
last_pipeline
.
status
)
=
ci_label_for_status
(
last_pipeline
.
status
)
-
if
last_pipeline
.
stages_count
.
nonzero?
-
if
last_pipeline
.
stages_count
.
nonzero?
with
#{
"stage"
.
pluralize
(
last_pipeline
.
stages_count
)
}
#{
n_
(
'with stage'
,
'with stages'
,
last_pipeline
.
stages_count
)
}
.mr-widget-pipeline-graph
.mr-widget-pipeline-graph
=
render
'shared/mini_pipeline_graph'
,
pipeline:
last_pipeline
,
klass:
'js-commit-pipeline-graph'
=
render
'shared/mini_pipeline_graph'
,
pipeline:
last_pipeline
,
klass:
'js-commit-pipeline-graph'
in
in
...
...
locale/gitlab.pot
View file @
59610c42
...
@@ -8,8 +8,8 @@ msgid ""
...
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: gitlab 1.0.0\n"
"Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-12 0
0:33-05
00\n"
"POT-Creation-Date: 2017-06-12 0
9:07+02
00\n"
"PO-Revision-Date: 2017-06-12 0
0:33-05
00\n"
"PO-Revision-Date: 2017-06-12 0
9:07+02
00\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"Language: \n"
...
@@ -65,6 +65,9 @@ msgstr ""
...
@@ -65,6 +65,9 @@ msgstr ""
msgid "Branches"
msgid "Branches"
msgstr ""
msgstr ""
msgid "Browse files"
msgstr ""
msgid "ByAuthor|by"
msgid "ByAuthor|by"
msgstr ""
msgstr ""
...
@@ -95,6 +98,12 @@ msgstr ""
...
@@ -95,6 +98,12 @@ msgstr ""
msgid "Charts"
msgid "Charts"
msgstr ""
msgstr ""
msgid "Cherry-pick this commit"
msgstr ""
msgid "Cherry-pick this merge-request"
msgstr ""
msgid "CiStatusLabel|canceled"
msgid "CiStatusLabel|canceled"
msgstr ""
msgstr ""
...
@@ -166,6 +175,9 @@ msgstr ""
...
@@ -166,6 +175,9 @@ msgstr ""
msgid "Commits|History"
msgid "Commits|History"
msgstr ""
msgstr ""
msgid "Committed by"
msgstr ""
msgid "Compare"
msgid "Compare"
msgstr ""
msgstr ""
...
@@ -199,6 +211,9 @@ msgstr ""
...
@@ -199,6 +211,9 @@ msgstr ""
msgid "CreateNewFork|Fork"
msgid "CreateNewFork|Fork"
msgstr ""
msgstr ""
msgid "CreateTag|Tag"
msgstr ""
msgid "Cron Timezone"
msgid "Cron Timezone"
msgstr ""
msgstr ""
...
@@ -261,6 +276,9 @@ msgstr ""
...
@@ -261,6 +276,9 @@ msgstr ""
msgid "Don't show again"
msgid "Don't show again"
msgstr ""
msgstr ""
msgid "Download"
msgstr ""
msgid "Download tar"
msgid "Download tar"
msgstr ""
msgstr ""
...
@@ -285,6 +303,9 @@ msgstr ""
...
@@ -285,6 +303,9 @@ msgstr ""
msgid "Edit Pipeline Schedule %{id}"
msgid "Edit Pipeline Schedule %{id}"
msgstr ""
msgstr ""
msgid "Email Patches"
msgstr ""
msgid "Every day (at 4:00am)"
msgid "Every day (at 4:00am)"
msgstr ""
msgstr ""
...
@@ -494,9 +515,15 @@ msgstr ""
...
@@ -494,9 +515,15 @@ msgstr ""
msgid "OpenedNDaysAgo|Opened"
msgid "OpenedNDaysAgo|Opened"
msgstr ""
msgstr ""
msgid "Options"
msgstr ""
msgid "Owner"
msgid "Owner"
msgstr ""
msgstr ""
msgid "Pipeline"
msgstr ""
msgid "Pipeline Health"
msgid "Pipeline Health"
msgstr ""
msgstr ""
...
@@ -533,6 +560,9 @@ msgstr ""
...
@@ -533,6 +560,9 @@ msgstr ""
msgid "PipelineSchedules|Target"
msgid "PipelineSchedules|Target"
msgstr ""
msgstr ""
msgid "Plain Diff"
msgstr ""
msgid "Project '%{project_name}' queued for deletion."
msgid "Project '%{project_name}' queued for deletion."
msgstr ""
msgstr ""
...
@@ -623,6 +653,12 @@ msgstr ""
...
@@ -623,6 +653,12 @@ msgstr ""
msgid "Request Access"
msgid "Request Access"
msgstr ""
msgstr ""
msgid "Revert this commit"
msgstr ""
msgid "Revert this merge-request"
msgstr ""
msgid "Save pipeline schedule"
msgid "Save pipeline schedule"
msgstr ""
msgstr ""
...
@@ -975,5 +1011,15 @@ msgstr[1] ""
...
@@ -975,5 +1011,15 @@ msgstr[1] ""
msgid "notification emails"
msgid "notification emails"
msgstr ""
msgstr ""
msgid "parent"
msgid_plural "parents"
msgstr[0] ""
msgstr[1] ""
msgid "pipeline schedules documentation"
msgid "pipeline schedules documentation"
msgstr ""
msgstr ""
msgid "with stage"
msgid_plural "with stages"
msgstr[0] ""
msgstr[1] ""
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