From 50b1f09ab2b07c41819801b63a882d850954543d Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 11 Aug 2015 16:24:29 +0200 Subject: Small UI improvements to git blame page Signed-off-by: Dmitriy Zaporozhets --- app/views/projects/blame/show.html.haml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'app/views/projects/blame') diff --git a/app/views/projects/blame/show.html.haml b/app/views/projects/blame/show.html.haml index 1705bda3074..05d5db5d3fe 100644 --- a/app/views/projects/blame/show.html.haml +++ b/app/views/projects/blame/show.html.haml @@ -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 + -- cgit v1.2.3