From fcd92f9d958eab891e4a94ffa8b0aad93012acd0 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 9 Feb 2012 09:51:50 +0200 Subject: [PATCH] Browse button in commit list --- app/views/commits/_commit.html.haml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/app/views/commits/_commit.html.haml b/app/views/commits/_commit.html.haml index fb59abb3..a8a4446c 100644 --- a/app/views/commits/_commit.html.haml +++ b/app/views/commits/_commit.html.haml @@ -1,12 +1,17 @@ -%li.entry - = link_to project_commit_path(@project, :id => commit.id) do - %div - %code= commit.id.to_s[0..10] - – - = image_tag gravatar_icon(commit.author_email), :class => "", :width => 16 - = truncate(commit.safe_message, :length => 50) +%li + .row + .span12 + .entry + = link_to project_commit_path(@project, :id => commit.id) do + %p + %code= commit.id.to_s[0..10] + – + = image_tag gravatar_icon(commit.author_email), :class => "", :width => 16 + = truncate(commit.safe_message, :length => 50) - %span.right.cgray - = time_ago_in_words(commit.committed_date) - ago + %span.right.cgray + = time_ago_in_words(commit.committed_date) + ago + .span2 + = link_to "Browse Code", tree_project_ref_path(@project, commit.id), :class => "btn small"