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
d5c74d4c
Commit
d5c74d4c
authored
Jan 17, 2017
by
victorwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update clipboard_button text: Copy commit SHA to clipboard
parent
f185d9e9
Changes
4
Show 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-ee/clipboard-button-commit-sha-ee.yml
changelogs/unreleased-ee/clipboard-button-commit-sha-ee.yml
+3
-0
No files found.
app/views/projects/commit/_commit_box.html.haml
View file @
d5c74d4c
.page-content-header
.header-main-content
%strong
=
clipboard_button
(
clipboard_text:
@commit
.
id
)
=
clipboard_button
(
clipboard_text:
@commit
.
id
,
title:
"Copy commit SHA to clipboard"
)
=
@commit
.
short_id
%span
.hidden-xs
authored
#{
time_ago_with_tooltip
(
@commit
.
authored_date
)
}
...
...
app/views/projects/commits/_commit.html.haml
View file @
d5c74d4c
...
...
@@ -36,6 +36,6 @@
.table-list-cell.commit-actions.hidden-xs
-
if
commit
.
status
(
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_browse_code
(
project
,
commit
)
app/views/projects/tree/_tree_content.html.haml
View file @
d5c74d4c
...
...
@@ -8,7 +8,7 @@
.pull-left
Last commit
.last-commit.hidden-sm.pull-left
%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"
=
time_ago_with_tooltip
(
@commit
.
committed_date
)
=
@commit
.
full_title
...
...
changelogs/unreleased-ee/clipboard-button-commit-sha-ee.yml
0 → 100644
View file @
d5c74d4c
---
title
:
'
Copy
commit
SHA
to
clipboard'
merge_request
:
1066
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