diff options
author | Shah El-Rahman <selrahman@gitlab.com> | 2018-04-06 13:35:07 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-04-06 13:35:07 +0000 |
commit | fccc09be2058fd2a8b4c6458830b55a854d3af8e (patch) | |
tree | f0786aa6ee2d8094dfacb5281f16679cef3e438a /app/views | |
parent | e5d32c2c0cf37d7feeabaadd4b7f2e8523a3cd03 (diff) | |
download | gitlab-ce-fccc09be2058fd2a8b4c6458830b55a854d3af8e.tar.gz |
Implement a new SHA partial for commit lists
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index 078bd0eee63..163432c9263 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -22,7 +22,10 @@ .commit-detail.flex-list .commit-content - = link_to_markdown_field(commit, :title, link, class: "commit-row-message item-title") + - if view_details && merge_request + = link_to commit.title, project_commit_path(project, commit.id, merge_request_iid: merge_request.iid), class: "commit-row-message item-title" + - else + = link_to_markdown_field(commit, :title, link, class: "commit-row-message item-title") %span.commit-row-message.visible-xs-inline · = commit.short_id @@ -52,9 +55,9 @@ = render_commit_status(commit, ref: ref) .js-commit-pipeline-status{ data: { endpoint: pipelines_project_commit_path(project, commit.id) } } - = link_to commit.short_id, link, class: "commit-sha btn btn-transparent btn-link" - = clipboard_button(text: commit.id, title: _("Copy commit SHA to clipboard")) - = link_to_browse_code(project, commit) - - if view_details && merge_request - = link_to "View details", project_commit_path(project, commit.id, merge_request_iid: merge_request.iid), class: "btn btn-default" + .commit-sha-group + .label.label-monospace + = commit.short_id + = clipboard_button(text: commit.id, title: _("Copy commit SHA to clipboard"), class: "btn btn-default", container: "body") + = link_to_browse_code(project, commit) |