From f184b2c5a6325b7c257b488738ac53d50f0c18ad Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 22 May 2015 22:08:38 +0500 Subject: [PATCH] fix a commit link in Firefox --- app/views/projects/git/commits/_diff.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/projects/git/commits/_diff.html.slim b/app/views/projects/git/commits/_diff.html.slim index a885078ac..24ffd5581 100644 --- a/app/views/projects/git/commits/_diff.html.slim +++ b/app/views/projects/git/commits/_diff.html.slim @@ -16,8 +16,8 @@ =< diff_file_icon(diff).html_safe =< get_filename_in_diff(diff, diff.a_path) - if diff.b_path.present? - button.btn.btn-link.pull-right - = link_to "view file @ #{shortest_hash_id(commit_id)}", blob_path(@project, commit_id, diff.b_path) + = link_to "view file @ #{shortest_hash_id(commit_id)}", blob_path(@project, commit_id, diff.b_path), + class: 'btn btn-link pull-right' .clearfix .diff_data.collapse id= diff_counter_content class= is_file_open