BigW Consortium Gitlab

Small UI improvements to git blame page

parent cf6e58b5
......@@ -90,12 +90,7 @@
border-right: none;
}
background: #fff;
padding: 5px;
}
.author,
.blame_commit {
background: $background-color;
vertical-align: top;
padding: 8px;
}
.lines {
pre {
......
......@@ -89,6 +89,10 @@
td.blame-commit {
background: #f9f9f9;
min-width: 350px;
.commit-author-link {
color: #888;
}
}
td.blame-numbers {
pre {
......
......@@ -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
......@@ -34,4 +39,4 @@
%code
:erb
<%= highlight(@blob.name, line, nowrap: true, continue: true).html_safe %>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment