Skip to content
Snippets Groups Projects
Unverified Commit 50b1f09a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Small UI improvements to git blame page

parent cf6e58b5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -90,12 +90,7 @@
border-right: none;
}
background: #fff;
padding: 5px;
}
.author,
.blame_commit {
background: $background-color;
vertical-align: top;
padding: 8px;
}
.lines {
pre {
Loading
Loading
Loading
Loading
@@ -89,6 +89,10 @@
td.blame-commit {
background: #f9f9f9;
min-width: 350px;
.commit-author-link {
color: #888;
}
}
td.blame-numbers {
pre {
Loading
Loading
Loading
Loading
@@ -16,14 +16,19 @@
- @blame.each do |raw_commit, line|
%tr
%td.blame-commit
%span.commit
.commit
- unless @prev_commit && @prev_commit.sha == raw_commit.sha
- commit = Commit.new(raw_commit, @project)
= link_to commit.short_id, namespace_project_commit_path(@project.namespace, @project, commit), class: "commit_short_id"
 
= commit_author_link(commit, avatar: true, size: 16)
 
= link_to_gfm truncate(commit.title, length: 20), namespace_project_commit_path(@project.namespace, @project, commit.id), class: "row_title"
.commit-row-title
%strong
= link_to_gfm truncate(commit.title, length: 35), namespace_project_commit_path(@project.namespace, @project, commit.id), class: "cdark"
.pull-right
= link_to commit.short_id, namespace_project_commit_path(@project.namespace, @project, commit), class: "monospace"
 
.light
= commit_author_link(commit, avatar: false)
authored
#{time_ago_with_tooltip(commit.committed_date)}
- @prev_commit = raw_commit
%td.lines.blame-numbers
%pre
Loading
Loading
@@ -34,4 +39,4 @@
%code
:erb
<%= highlight(@blob.name, line, nowrap: true, continue: true).html_safe %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment