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
b6c7e88d
Commit
b6c7e88d
authored
Jan 12, 2017
by
victorwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update clipboard_button text: Copy commit SHA to clipboard
parent
e2f0b830
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+1
-1
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
app/views/projects/tree/_tree_content.html.haml
app/views/projects/tree/_tree_content.html.haml
+1
-1
changelogs/unreleased/clipboard-button-commit-sha.yml
changelogs/unreleased/clipboard-button-commit-sha.yml
+3
-0
No files found.
app/views/projects/commit/_commit_box.html.haml
View file @
b6c7e88d
.page-content-header
.page-content-header
.header-main-content
.header-main-content
%strong
%strong
=
clipboard_button
(
clipboard_text:
@commit
.
id
)
=
clipboard_button
(
clipboard_text:
@commit
.
id
,
title:
"Copy commit SHA to clipboard"
)
=
@commit
.
short_id
=
@commit
.
short_id
%span
.hidden-xs
authored
%span
.hidden-xs
authored
#{
time_ago_with_tooltip
(
@commit
.
authored_date
)
}
#{
time_ago_with_tooltip
(
@commit
.
authored_date
)
}
...
...
app/views/projects/commits/_commit.html.haml
View file @
b6c7e88d
...
@@ -36,6 +36,6 @@
...
@@ -36,6 +36,6 @@
.table-list-cell.commit-actions.hidden-xs
.table-list-cell.commit-actions.hidden-xs
-
if
commit
.
status
(
ref
)
-
if
commit
.
status
(
ref
)
=
render_commit_status
(
commit
,
ref:
ref
)
=
render_commit_status
(
commit
,
ref:
ref
)
=
clipboard_button
(
clipboard_text:
commit
.
id
)
=
clipboard_button
(
clipboard_text:
commit
.
id
,
title:
"Copy commit SHA to clipboard"
)
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-short-id btn btn-transparent"
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-short-id btn btn-transparent"
=
link_to_browse_code
(
project
,
commit
)
=
link_to_browse_code
(
project
,
commit
)
app/views/projects/tree/_tree_content.html.haml
View file @
b6c7e88d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
.pull-left
Last commit
.pull-left
Last commit
.last-commit.hidden-sm.pull-left
.last-commit.hidden-sm.pull-left
%small
.light
%small
.light
=
clipboard_button
(
clipboard_text:
@commit
.
id
)
=
clipboard_button
(
clipboard_text:
@commit
.
id
,
title:
"Copy commit SHA to clipboard"
)
=
link_to
@commit
.
short_id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"monospace"
=
link_to
@commit
.
short_id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"monospace"
=
time_ago_with_tooltip
(
@commit
.
committed_date
)
=
time_ago_with_tooltip
(
@commit
.
committed_date
)
=
@commit
.
full_title
=
@commit
.
full_title
...
...
changelogs/unreleased/clipboard-button-commit-sha.yml
0 → 100644
View file @
b6c7e88d
---
title
:
'
Copy
commit
SHA
to
clipboard'
merge_request
:
8547
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