From cbce4528d0e0aace791ed2d9d16176d29596a615 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sun, 22 Jul 2012 14:31:42 +0200 Subject: [PATCH] Update links to commits --- app/views/commits/_commit.html.haml | 21 ++++++++++----------- app/views/events/_commit.html.haml | 4 ++-- app/views/refs/blame.html.haml | 5 ++--- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/app/views/commits/_commit.html.haml b/app/views/commits/_commit.html.haml index c77e22d9..63339d36 100644 --- a/app/views/commits/_commit.html.haml +++ b/app/views/commits/_commit.html.haml @@ -2,16 +2,15 @@ .browse_code_link_holder %p %strong= link_to "Browse Code ยป", tree_project_ref_path(@project, commit.id), :class => "right" - = link_to project_commit_path(@project, :id => commit.id) do - %p - %code.left= commit.short_id - %strong.cgray= commit.author_name - – - = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 - %span.row_title= truncate(commit.title, :length => 50) + %p + %code.left= link_to commit.short_id, project_commit_path(@project, :id => commit.id) + %strong.cgray= commit.author_name + – + = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 + = link_to truncate(commit.title, :length => 50), project_commit_path(@project, :id => commit.id), :class => "row_title" - %span.committed_ago - = time_ago_in_words(commit.committed_date) - ago -   + %span.committed_ago + = time_ago_in_words(commit.committed_date) + ago +   diff --git a/app/views/events/_commit.html.haml b/app/views/events/_commit.html.haml index b26b8f0a..ef57c1b6 100644 --- a/app/views/events/_commit.html.haml +++ b/app/views/events/_commit.html.haml @@ -2,9 +2,9 @@ %li.wll.commit = link_to project_commit_path(project, :id => commit.id) do %p - %code.left= commit.short_id + %code.left= link_to commit.short_id, project_commit_path(project, :id => commit.id) %strong.cgray= commit.author_name – = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 - %span.row_title= truncate(commit.title, :length => 50) rescue "--broken encoding" + = link_to truncate(commit.title, :length => 50), project_commit_path(project, :id => commit.id), :class => "row_title" rescue "--broken encoding" diff --git a/app/views/refs/blame.html.haml b/app/views/refs/blame.html.haml index 0f0b6927..0fc08e0c 100644 --- a/app/views/refs/blame.html.haml +++ b/app/views/refs/blame.html.haml @@ -32,9 +32,8 @@ = commit.author_name %td.blame_commit   - = link_to project_commit_path(@project, :id => commit.id) do - %code= commit.short_id - %span.row_title= truncate(commit.title, :length => 30) rescue "--broken encoding" + %code= link_to commit.short_id, project_commit_path(@project, :id => commit.id) + = link_to truncate(commit.title, :length => 30), project_commit_path(@project, :id => commit.id), :class => "row_title" rescue "--broken encoding" %td.lines = preserve do %pre