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
f5ff5dc2
Commit
f5ff5dc2
authored
Jan 18, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clipboard-button-commit-sha' into 'master'
Copy commit SHA to clipboard See merge request !8547
parents
e2f0b830
b6c7e88d
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 @
f5ff5dc2
.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 @
f5ff5dc2
...
...
@@ -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 @
f5ff5dc2
...
...
@@ -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/clipboard-button-commit-sha.yml
0 → 100644
View file @
f5ff5dc2
---
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